Merge pull request #22055 from pprindeville/modem-manager-fix-no-mbim-install
[feed/packages.git] / libs / libedit / Makefile
1 #
2 # Copyright (C) 2016-2018 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:=20230828-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_HASH:=4ee8182b6e569290e7d1f44f0f78dac8716b35f656b76528f699c69c98814dad
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libedit
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=BSD editline and history library
29 URL:=http://thrysoee.dk/editline/
30 DEPENDS:=+libncurses
31 endef
32
33 define Package/libedit/description
34 Generic line editing, history, and tokenization functions similar to GNU Readline.
35 endef
36
37 define Build/InstallDev
38 $(INSTALL_DIR) $(1)/usr/include
39 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
40
41 $(INSTALL_DIR) $(1)/usr/include/editline
42 $(CP) $(PKG_INSTALL_DIR)/usr/include/editline/*.h $(1)/usr/include/editline/
43
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.{a,so*} $(1)/usr/lib/
46
47 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libedit.pc $(1)/usr/lib/pkgconfig
49 endef
50
51 define Package/libedit/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libedit.so.* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libedit))