Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # Copyright (C) 2016-2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libedit
  9. PKG_VERSION:=20221030-3.1
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Daniel Salzman <daniel.salzman@nic.cz>
  12. PKG_LICENSE:=BSD-3-Clause
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=http://thrysoee.dk/editline/
  15. PKG_HASH:=f0925a5adf4b1bf116ee19766b7daa766917aec198747943b1c4edf67a4be2bb
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libedit
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=BSD editline and history library
  22. URL:=http://thrysoee.dk/editline/
  23. DEPENDS:=+libncurses
  24. endef
  25. define Package/libedit/description
  26. Generic line editing, history, and tokenization functions similar to GNU Readline.
  27. endef
  28. define Build/InstallDev
  29. $(INSTALL_DIR) $(1)/usr/include
  30. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  31. $(INSTALL_DIR) $(1)/usr/include/editline
  32. $(CP) $(PKG_INSTALL_DIR)/usr/include/editline/*.h $(1)/usr/include/editline/
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.{a,so*} $(1)/usr/lib/
  35. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libedit.pc $(1)/usr/lib/pkgconfig
  37. endef
  38. define Package/libedit/install
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.so.* $(1)/usr/lib/
  41. endef
  42. $(eval $(call BuildPackage,libedit))