[packages] Add missing libtool fixups
[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:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/libidn
16 PKG_MD5SUM:=a6af62602fa71bc1b90ce246dd208bd6
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libidn
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Stringprep, Punycode and IDNA implementation
27 URL:=http://www.gnu.org/software/libidn/
28 endef
29
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.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 CONFIGURE_ARGS += \
39 --enable-shared \
40 --enable-static \
41
42 MAKE_FLAGS += \
43 CC="$(TARGET_CC)" \
44
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/
50 endef
51
52 define Package/libidn/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libidn.so.* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libidn))