libs/gettext: update to version 1.18.1.1
[openwrt/svn-archive/archive.git] / libs / gettext / Makefile
1 #
2 # Copyright (C) 2006-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:=gettext
11 PKG_VERSION:=0.18.1.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/gettext
16 PKG_MD5SUM:=3dd55b952826d2b32f51308f2f91aa89
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libintl
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=GNU Internationalization library
27 URL:=http://www.gnu.org/software/gettext/
28 endef
29
30 TARGET_CFLAGS += $(FPIC)
31
32 CONFIGURE_ARGS += \
33 --enable-shared \
34 --enable-static \
35 --disable-rpath \
36 --enable-nls \
37 --disable-java \
38 --disable-native-java \
39 --disable-openmp \
40 --with-included-gettext \
41 --without-libintl-prefix \
42 --without-libexpat-prefix \
43 --without-emacs
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/lib/libintl/include
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl/include/
48
49 $(INSTALL_DIR) $(1)/usr/lib/libintl/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl/lib/
51
52 $(INSTALL_DIR) $(1)/usr/share/aclocal
53 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
54 endef
55
56 define Package/libintl/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,libintl))