gettext-full: move to trunk and add myself as maintainer
[openwrt/svn-archive/archive.git] / package / libs / gettext-full / Makefile
1 #
2 # Copyright (C) 2006-2012 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.1.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=gettext-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/gettext
16 PKG_MD5SUM:=3dd55b952826d2b32f51308f2f91aa89
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
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=0
25 PKG_BUILD_DEPENDS:=gettext-full/host
26
27 include $(INCLUDE_DIR)/package.mk
28 include $(INCLUDE_DIR)/host-build.mk
29
30 define Package/libintl-full
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=GNU Internationalization library
34 URL:=http://www.gnu.org/software/gettext/
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 CONFIGURE_ARGS += \
40 --enable-shared \
41 --enable-static \
42 --disable-rpath \
43 --enable-nls \
44 --disable-java \
45 --disable-native-java \
46 --disable-openmp \
47 --with-included-gettext \
48 --without-libintl-prefix \
49 --without-libexpat-prefix \
50 --without-emacs
51
52 define Build/InstallDev
53 $(INSTALL_DIR) $(1)/usr/lib/libintl-full/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl-full/include/
55
56 $(INSTALL_DIR) $(1)/usr/lib/libintl-full/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl-full/lib/
58
59 $(INSTALL_DIR) $(1)/usr/share/aclocal
60 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
61 endef
62
63 define Package/libintl-full/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so* $(1)/usr/lib/
66 endef
67
68 $(eval $(call HostBuild))
69 $(eval $(call BuildPackage,libintl-full))