[packages] libidn: update to 1.16
[openwrt/svn-archive/archive.git] / libs / libidn / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
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:=libidn
11 PKG_VERSION:=1.16
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/libidn
16 PKG_MD5SUM:=a6af62602fa71bc1b90ce246dd208bd6
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libidn
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=Stringprep, Punycode and IDNA implementation
26 URL:=http://www.gnu.org/software/libidn/
27 endef
28
29 define Package/libidn/description
30 GNU Libidn is a fully documented implementation of the Stringprep,
31 Punycode and IDNA specifications. Libidn's purpose is to encode and
32 decode internationalized domain names.
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 CONFIGURE_ARGS += \
38 --enable-shared \
39 --enable-static \
40
41 MAKE_FLAGS += \
42 CC="$(TARGET_CC)" \
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libidn.{a,so*} $(1)/usr/lib/
49 endef
50
51 define Package/libidn/install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libidn.so.* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libidn))