nuke $Id$ in /packages as well
[packages.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gettext
11 PKG_VERSION:=0.16.1
12 PKG_RELEASE:=4
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
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libintl
23   SECTION:=libs
24   CATEGORY:=Libraries
25   TITLE:=GNU Internationalization library
26   URL:=http://www.gnu.org/software/gettext/
27 endef
28
29 TARGET_CFLAGS += $(FPIC)
30
31 CONFIGURE_ARGS += \
32         --enable-shared \
33         --enable-static \
34         --disable-rpath \
35         --enable-nls \
36         --disable-java \
37         --disable-native-java \
38         --disable-openmp \
39         --with-included-gettext \
40         --without-libintl-prefix \
41         --without-libexpat-prefix \
42         --without-emacs
43
44 define Build/Compile
45         $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all
46 endef
47
48 define Build/Install
49         $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
50 endef
51
52 define Build/InstallDev
53         mkdir -p $(1)/usr/lib/libintl/include
54         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl/include/
55         mkdir -p $(1)/usr/lib/libintl/lib
56         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl/lib/
57 endef
58
59 define Package/libintl/install
60         $(INSTALL_DIR) $(1)/usr/lib
61         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libintl))