libmad: update to 0.16.4
[feed/packages.git] / libs / libidn2 / Makefile
1 #
2 # Copyright (C) 2017-2018 Daniel Engberg <daniel.engberg.lists@pyret.net>
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:=libidn2
11 PKG_VERSION:=2.3.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=@GNU/libidn
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_HASH:=93caba72b4e051d1f8d4f5a076ab63c99b77faee019b72b9783b267986dbb45f
17
18 PKG_MAINTAINER:=
19 PKG_CPE_ID:=cpe:/a:libidn2_project:libidn2
20
21 PKG_INSTALL:=1
22 PKG_BUILD_PARALLEL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/nls.mk
26
27 define Package/idn2/Default
28 SECTION:=net
29 CATEGORY:=Network
30 URL:=http://www.gnu.org/software/libidn/
31 endef
32
33 define Package/idn2/Default/description
34 Libidn2 is a free software implementation of IDNA2008,
35 Punycode and TR46 in library form. It contains
36 functionality to convert internationalized domain
37 names to and from ASCII Compatible Encoding (ACE),
38 following the IDNA2008 and TR46 standards.
39 endef
40
41 define Package/idn2
42 $(call Package/idn2/Default)
43 SUBMENU:=IP Addresses and Names
44 TITLE:=GNU IDN2 (Internationalized Domain Name) tool
45 DEPENDS:=+libidn2
46 LICENSE:=GPL-2.0-or-later
47 LICENSE_FILES:=COPYINGv2
48 endef
49
50 define Package/idn2/description
51 $(call Package/idn2/Default/description)
52
53 Command line tool using libidn2
54
55 endef
56
57 define Package/libidn2
58 SECTION:=libs
59 CATEGORY:=Libraries
60 DEPENDS:=+libunistring $(ICONV_DEPENDS) $(INTL_DEPENDS)
61 TITLE:=International domain name library (IDNA2008, Punycode and TR46)
62 URL:=https://www.gnu.org/software/libidn/#libidn2
63 LICENSE:=LGPL-3.0-or-later
64 LICENSE_FILES:=COPYING.LESSERv3
65 endef
66
67 define Package/libidn2/description
68 $(call Package/idn2/Default/description)
69
70 Library only package
71
72 endef
73
74 CONFIGURE_ARGS += \
75 --disable-rpath \
76 --disable-doc
77
78 define Build/InstallDev
79 $(INSTALL_DIR) $(1)/usr/include
80 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/idn2.h $(1)/usr/include
81 $(INSTALL_DIR) $(1)/usr/lib
82 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so}* $(1)/usr/lib/
83 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
84 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libidn2.pc $(1)/usr/lib/pkgconfig/
85 endef
86
87 define Package/idn2/install
88 $(INSTALL_DIR) $(1)/usr/bin
89 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
90 endef
91
92 define Package/libidn2/install
93 $(INSTALL_DIR) $(1)/usr/lib/
94 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
95 endef
96
97 $(eval $(call BuildPackage,idn2))
98 $(eval $(call BuildPackage,libidn2))