fix getext libtool fsckups
[openwrt/svn-archive/archive.git] / libs / gettext / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gettext
12 PKG_VERSION:=0.16.1
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/gettext
17 PKG_MD5SUM:=3d9ad24301c6d6b17ec30704a13fe127
18
19 PKG_FIXUP = libtool
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/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all
47 endef
48
49 define Build/Install
50 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
51 endef
52
53 define Build/InstallDev
54 mkdir -p $(1)/usr/lib/libintl/include
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl/include/
56 mkdir -p $(1)/usr/lib/libintl/lib
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl/lib/
58 endef
59
60 define Package/libintl/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libintl))