Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_MD5SUM:=b6e60f326a3fce91bea1a6fe4700af58
  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. endef
  37. define Package/libedit/install
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.so.* $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,libedit))