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
13 PKG_MAINTAINER
:=Kevin Darbyshire-Bryant
<ldir@darbyshire-bryant.me.uk
>
14 PKG_LICENSE
:=GPL-2.0
-or-later LGPL-3.0
-or-later
15 PKG_LICENSE_FILES
:=COPYING COPYINGv2 COPYING.LESSERv3
17 PKG_SOURCE_URL
:=@GNU
/libidn
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 PKG_HASH
:=644b6b03b285fb0ace02d241d59483d98bc462729d8bb3608d5cad5532f3d2f0
23 include $(INCLUDE_DIR
)/package.mk
24 include $(INCLUDE_DIR
)/nls.mk
26 define Package
/idn2
/Default
29 URL
:=http
://www.gnu.org
/software
/libidn
/
32 define Package
/idn2
/Default
/description
33 Libidn2 is a free software implementation of IDNA2008
,
34 Punycode and TR46 in library form. It contains
35 functionality to convert internationalized domain
36 names to and from ASCII Compatible Encoding
(ACE
),
37 following the IDNA2008 and TR46 standards.
41 $(call Package
/idn2
/Default
)
42 SUBMENU
:=IP Addresses and Names
43 TITLE
:=GNU IDN2
(Internationalized Domain Name
) tool
47 define Package
/idn2
/description
48 $(call Package
/idn2
/Default
/description
)
50 Command line tool using libidn2
54 define Package
/libidn2
57 DEPENDS
:=+libunistring
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
58 TITLE
:=International domain name library
(IDNA2008
, Punycode and TR46
)
59 URL
:=https
://www.gnu.org
/software
/libidn
/#libidn2
62 define Package
/libidn2
/description
63 $(call Package
/idn2
/Default
/description
)
73 define Build
/InstallDev
74 $(INSTALL_DIR
) $(1)/usr
/include
75 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/idn2.h
$(1)/usr
/include
76 $(INSTALL_DIR
) $(1)/usr
/lib
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{la
,so
}* $(1)/usr
/lib
/
78 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libidn2.
pc $(1)/usr
/lib
/pkgconfig
/
82 define Package
/idn2
/install
83 $(INSTALL_DIR
) $(1)/usr
/bin
84 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
87 define Package
/libidn2
/install
88 $(INSTALL_DIR
) $(1)/usr
/lib
/
89 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
92 $(eval
$(call BuildPackage
,idn2
))
93 $(eval
$(call BuildPackage
,libidn2
))