procd: update to latest git HEAD
[openwrt/staging/wigyori.git] / package / libs / gettext-full / Makefile
1 #
2 # Copyright (C) 2006-2015 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.19.8.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=gettext-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@GNU/gettext
16 PKG_HASH:=105556dbc5c3fbbc2aa0edb46d22d055748b6f5c7cd7a8d99f8e7eb84e938be4
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 <jo@mein.io>
21 PKG_LICENSE:=GPL-3.0+
22 PKG_CPE_ID:=cpe:/a:gnu:gettext
23
24 PKG_FIXUP:=autoreconf
25 PKG_INSTALL:=1
26 PKG_BUILD_PARALLEL:=0
27 PKG_BUILD_DEPENDS:=gettext-full/host
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_HOSTPKG)/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-libasprintf \
51 --disable-rpath \
52 --enable-nls \
53 --disable-java \
54 --disable-native-java \
55 --disable-openmp \
56 --disable-curses \
57 --with-included-gettext \
58 --without-libintl-prefix \
59 --without-libexpat-prefix \
60 --without-emacs
61
62 HOST_CONFIGURE_ARGS += \
63 --disable-shared \
64 --enable-static \
65 --disable-libasprintf \
66 --disable-rpath \
67 --disable-java \
68 --disable-native-java \
69 --disable-openmp \
70 --without-emacs \
71 --without-libxml2-prefix
72
73
74 HOST_CONFIGURE_VARS += \
75 EMACS="no" \
76 am_cv_lib_iconv=no \
77 am_cv_func_iconv=no \
78 ac_cv_header_iconv_h=no \
79
80 define Build/InstallDev
81 $(INSTALL_DIR) $(1)/usr/lib/libintl-full/include
82 $(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl-full/include/
83
84 $(INSTALL_DIR) $(1)/usr/lib/libintl-full/lib
85 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl-full/lib/
86
87 $(INSTALL_DIR) $(1)/usr/share/aclocal
88 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
89
90 $(SED) '/read dummy/d' $(STAGING_DIR_HOSTPKG)/bin/gettextize
91 endef
92
93 define Package/libintl-full/install
94 $(INSTALL_DIR) $(1)/usr/lib
95 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so* $(1)/usr/lib/
96 endef
97
98 $(eval $(call HostBuild))
99 $(eval $(call BuildPackage,libintl-full))