disable building of examples and tests, add libtool fixes
[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 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libintl
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=GNU Internationalization library
25 URL:=http://www.gnu.org/software/gettext/
26 endef
27
28 CONFIGURE_ARGS += \
29 --enable-shared \
30 --enable-static \
31 --disable-rpath \
32 --enable-nls \
33 --disable-java \
34 --disable-native-java \
35 --disable-openmp \
36 --with-included-gettext \
37 --without-libintl-prefix \
38 --without-libexpat-prefix \
39 --without-emacs
40
41 define Build/Configure
42 $(call Build/Configure/Default)
43 $(call libtool_disable_rpath)
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) all
48 $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
49 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
50 endef
51
52 define Build/InstallDev
53 mkdir -p $(STAGING_DIR)/usr/lib/libintl/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(STAGING_DIR)/usr/lib/libintl/include/
55 mkdir -p $(STAGING_DIR)/usr/lib/libintl/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(STAGING_DIR)/usr/lib/libintl/lib/
57 endef
58
59 define Build/UninstallDev
60 rm -rf $(STAGING_DIR)/usr/lib/libintl
61 endef
62
63 define Package/libintl/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 BuildPackage,libintl))