2 # Copyright (C) 2009-2015 OpenWrt.org
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
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@GNU
/libidn
16 PKG_MD5SUM
:=4dd8356ba577287ea7076bfa1554b534
18 PKG_LICENSE
:=GPL-2.0
+ GPL-3.0
+ LGPL-2.1
+ LGPL-3.0
+ Apache-2.0
19 PKG_LICENSE_FILES
:=COPYING COPYINGv2 COPYINGv3 COPYING.LESSERv2 COPYING.LESSERv3 java
/LICENSE-2.0.txt
22 PKG_REMOVE_FILES
:=GNUmakefile aclocal.m4
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/idn
/Default
30 URL
:=http
://www.gnu.org
/software
/libidn
/
31 MAINTAINER
:=Marcel Denia
<naoir@gmx.net
>
34 define Package
/idn
/Default
/description
35 GNU Libidn is a fully documented implementation of the Stringprep
,
36 Punycode and IDNA specifications. Libidn
's purpose is to encode and
37 decode internationalized domain names.
41 $(call Package/idn/Default)
42 SUBMENU:=IP Addresses and Names
43 TITLE:=GNU IDN (Internationalized Domain Name) tool
47 define Package/idn/description
48 $(call Package/idn/Default/description)
50 Command line tool using libidn
55 $(call Package/idn/Default)
58 TITLE:=Stringprep, Punycode and IDNA implementation
61 define Package/libidn/description
62 $(call Package/idn/Default/description)
68 TARGET_CFLAGS += $(FPIC)
77 define Build/InstallDev
78 $(INSTALL_DIR) $(1)/usr/include
79 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
80 $(INSTALL_DIR) $(1)/usr/lib
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libidn.{a,so*} $(1)/usr/lib/
84 define Package/idn/install
85 $(INSTALL_DIR) $(1)/usr/bin
86 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
89 define Package/libidn/install
90 $(INSTALL_DIR) $(1)/usr/lib
91 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libidn.so.* $(1)/usr/lib/
94 $(eval $(call BuildPackage,idn))
95 $(eval $(call BuildPackage,libidn))