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