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