Makefile (1408B)
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 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=libedit 11 PKG_VERSION:=20160618-3.1 12 PKG_RELEASE:=1 13 14 PKG_MAINTAINER:=Daniel Salzman <daniel.salzman@nic.cz> 15 PKG_LICENSE:=BSD-3-Clause 16 17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 18 PKG_SOURCE_URL:=http://thrysoee.dk/editline/ 19 PKG_MD5SUM:=b6e60f326a3fce91bea1a6fe4700af58 20 21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 22 PKG_INSTALL:=1 23 24 include $(INCLUDE_DIR)/package.mk 25 26 define Package/libedit 27 SECTION:=libs 28 CATEGORY:=Libraries 29 TITLE:=BSD editline and history library 30 URL:=http://thrysoee.dk/editline/ 31 DEPENDS:=+libncurses 32 endef 33 34 define Package/libedit/description 35 Generic line editing, history, and tokenization functions similar to GNU Readline. 36 endef 37 38 define Build/InstallDev 39 $(INSTALL_DIR) $(1)/usr/include 40 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/ 41 42 $(INSTALL_DIR) $(1)/usr/include/editline 43 $(CP) $(PKG_INSTALL_DIR)/usr/include/editline/*.h $(1)/usr/include/editline/ 44 45 $(INSTALL_DIR) $(1)/usr/lib 46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.{a,so*} $(1)/usr/lib/ 47 endef 48 49 define Package/libedit/install 50 $(INSTALL_DIR) $(1)/usr/lib 51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.so.* $(1)/usr/lib/ 52 endef 53 54 $(eval $(call BuildPackage,libedit))