license info - revert r43155
[openwrt.git] / package / libs / gettext-full / Makefile
1 #
2 # Copyright (C) 2006-2013 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:=gettext-full
11 PKG_VERSION:=0.18.2.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=gettext-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/gettext
16 PKG_MD5SUM:=034c8103b14654ebd300fadac44d6f14
17 PKG_BUILD_DIR:=$(BUILD_DIR)/gettext-$(PKG_VERSION)
18 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/gettext-$(PKG_VERSION)
19
20 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
21 PKG_LICENSE:=GPL-3.0+
22
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:=1
25 PKG_BUILD_PARALLEL:=0
26 PKG_BUILD_DEPENDS:=gettext-full/host
27 PKG_CHECK_FORMAT_SECURITY:=0
28
29 include $(INCLUDE_DIR)/package.mk
30 include $(INCLUDE_DIR)/host-build.mk
31
32 define Package/libintl-full
33   SECTION:=libs
34   CATEGORY:=Libraries
35   TITLE:=GNU Internationalization library
36   URL:=http://www.gnu.org/software/gettext/
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40 ifneq ($(HOST_OS),Linux)
41   TARGET_CFLAGS += -I$(STAGING_DIR_HOST)/include
42 endif
43 ifdef CONFIG_USE_MUSL
44   TARGET_CFLAGS += -D__UCLIBC__
45 endif
46
47 CONFIGURE_ARGS += \
48         --enable-shared \
49         --enable-static \
50         --disable-rpath \
51         --enable-nls \
52         --disable-java \
53         --disable-native-java \
54         --disable-openmp \
55         --with-included-gettext \
56         --without-libintl-prefix \
57         --without-libexpat-prefix \
58         --without-emacs
59
60 HOST_CONFIGURE_ARGS += \
61         --with-included-libxml --without-libxml2-prefix --with-included-libcroco
62
63 define Build/InstallDev
64         $(INSTALL_DIR) $(1)/usr/lib/libintl-full/include
65         $(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl-full/include/
66
67         $(INSTALL_DIR) $(1)/usr/lib/libintl-full/lib
68         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl-full/lib/
69
70         $(INSTALL_DIR) $(1)/usr/share/aclocal
71         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
72 endef
73
74 define Package/libintl-full/install
75         $(INSTALL_DIR) $(1)/usr/lib
76         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so* $(1)/usr/lib/
77 endef
78
79 $(eval $(call HostBuild))
80 $(eval $(call BuildPackage,libintl-full))