You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB

  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:=20191025-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:=6dff036660d478bfaa14e407fc5de26d22da1087118c897b1a3ad2e90cb7bf39
  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))