Update vpnc to 0.4.0, thanks to Swen Kuhnlein
[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:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/gettext
17 PKG_MD5SUM:=
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libintl
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=GNU Internationalization library
29 URL:=http://www.gnu.org/software/gettext/
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default, \
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 endef
47
48 define Build/Compile
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 all install
52 endef
53
54 define Build/InstallDev
55 mkdir -p $(STAGING_DIR)/usr/lib/libintl/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(STAGING_DIR)/usr/lib/libintl/include/
57 mkdir -p $(STAGING_DIR)/usr/lib/libintl/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(STAGING_DIR)/usr/lib/libintl/lib/
59 endef
60
61 define Build/UninstallDev
62 rm -rf $(STAGING_DIR)/usr/lib/libintl
63 endef
64
65 define Package/libintl/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
68 endef
69
70 $(eval $(call BuildPackage,libintl))