diff options
author | Daniel Salzman <daniel.salzman@nic.cz> | 2016-05-06 15:15:38 +0200 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2016-05-06 15:15:38 +0200 |
commit | b366588c95f10044fafac3d8883281ccafc9e6b6 (patch) | |
tree | 70cc4ba3b65f3bb792150b24779ab3a20631544f /libs/libedit | |
parent | d2c513153145d47603deeef450a0d0fcdb305697 (diff) |
libedit: add new package
Signed-off-by: Daniel Salzman <daniel.salzman@nic.cz>
Diffstat (limited to 'libs/libedit')
-rw-r--r-- | libs/libedit/Makefile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/libs/libedit/Makefile b/libs/libedit/Makefile new file mode 100644 index 000000000..f1d62fad4 --- /dev/null +++ b/libs/libedit/Makefile @@ -0,0 +1,54 @@ +# +# Copyright (C) 2016 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libedit +PKG_VERSION:=20150325-3.1 +PKG_RELEASE:=1 + +PKG_MAINTAINER:=Daniel Salzman <daniel.salzman@nic.cz> +PKG_LICENSE:=BSD-3-Clause + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://thrysoee.dk/editline/ +PKG_MD5SUM:=43cdb5df3061d78b5e9d59109871b4f6 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libedit + SECTION:=libs + CATEGORY:=Libraries + TITLE:=BSD editline and history library + URL:=http://thrysoee.dk/editline/ + DEPENDS:=+libncurses +endef + +define Package/libedit/description + Generic line editing, history, and tokenization functions similar to GNU Readline. +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/ + + $(INSTALL_DIR) $(1)/usr/include/editline + $(CP) $(PKG_INSTALL_DIR)/usr/include/editline/*.h $(1)/usr/include/editline/ + + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.{a,so*} $(1)/usr/lib/ +endef + +define Package/libedit/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libedit)) |