2 # Copyright (C) 2017-2018 Daniel Engberg <daniel.engberg.lists@pyret.net>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
:=@GNU
/libidn
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_HASH
:=4c21a791b610b9519b9d0e12b8097bf2f359b12f8dd92647611a929e6bfd7d64
19 PKG_CPE_ID
:=cpe
:/a
:gnu
:libidn2
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/nls.mk
27 define Package
/idn2
/Default
30 URL
:=http
://www.gnu.org
/software
/libidn
/
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.
42 $(call Package
/idn2
/Default
)
43 SUBMENU
:=IP Addresses and Names
44 TITLE
:=GNU IDN2
(Internationalized Domain Name
) tool
46 LICENSE
:=GPL-2.0
-or-later
47 LICENSE_FILES
:=COPYINGv2
50 define Package
/idn2
/description
51 $(call Package
/idn2
/Default
/description
)
53 Command line tool using libidn2
57 define Package
/libidn2
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
67 define Package
/libidn2
/description
68 $(call Package
/idn2
/Default
/description
)
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
/
87 define Package
/idn2
/install
88 $(INSTALL_DIR
) $(1)/usr
/bin
89 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
92 define Package
/libidn2
/install
93 $(INSTALL_DIR
) $(1)/usr
/lib
/
94 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
97 $(eval
$(call BuildPackage
,idn2
))
98 $(eval
$(call BuildPackage
,libidn2
))