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.

57 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2016 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:=20160618-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:=b6b159c0c6ec8a7f349ea2a75d8b960efa346c462c1ac4921f1ac0de85a9f5d6
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libedit
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=BSD editline and history library
  23. URL:=http://thrysoee.dk/editline/
  24. DEPENDS:=+libncurses
  25. endef
  26. define Package/libedit/description
  27. Generic line editing, history, and tokenization functions similar to GNU Readline.
  28. endef
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/usr/include
  31. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  32. $(INSTALL_DIR) $(1)/usr/include/editline
  33. $(CP) $(PKG_INSTALL_DIR)/usr/include/editline/*.h $(1)/usr/include/editline/
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.{a,so*} $(1)/usr/lib/
  36. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libedit.pc $(1)/usr/lib/pkgconfig
  38. endef
  39. define Package/libedit/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.so.* $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,libedit))