2 # Copyright (C) 2016-2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=20221030-3.1
14 PKG_MAINTAINER
:=Daniel Salzman
<daniel.salzman@nic.cz
>
15 PKG_LICENSE
:=BSD-3-Clause
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_URL
:=http
://thrysoee.dk
/editline
/
19 PKG_HASH
:=f0925a5adf4b1bf116ee19766b7daa766917aec198747943b1c4edf67a4be2bb
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libedit
28 TITLE
:=BSD editline and history library
29 URL
:=http
://thrysoee.dk
/editline
/
33 define Package
/libedit
/description
34 Generic line editing
, history
, and tokenization functions similar to GNU Readline.
37 define Build
/InstallDev
38 $(INSTALL_DIR
) $(1)/usr
/include
39 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include/
41 $(INSTALL_DIR
) $(1)/usr
/include/editline
42 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/editline
/*.h
$(1)/usr
/include/editline
/
44 $(INSTALL_DIR
) $(1)/usr
/lib
45 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libedit.
{a
,so
*} $(1)/usr
/lib
/
47 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libedit.
pc $(1)/usr
/lib
/pkgconfig
51 define Package
/libedit
/install
52 $(INSTALL_DIR
) $(1)/usr
/lib
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libedit.so.
* $(1)/usr
/lib
/
56 $(eval
$(call BuildPackage
,libedit
))