2 # Copyright (C) 2009-2010 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
:=a6af62602fa71bc1b90ce246dd208bd6
21 include $(INCLUDE_DIR
)/package.mk
26 TITLE
:=Stringprep
, Punycode and IDNA implementation
27 URL
:=http
://www.gnu.org
/software
/libidn
/
30 define Package
/libidn
/description
31 GNU Libidn is a fully documented implementation of the Stringprep
,
32 Punycode and IDNA specifications. Libidn
's purpose is to encode and
33 decode internationalized domain names.
36 TARGET_CFLAGS += $(FPIC)
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libidn.{a,so*} $(1)/usr/lib/
52 define Package/libidn/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libidn.so.* $(1)/usr/lib/
57 $(eval $(call BuildPackage,libidn))