move curl back to packages
[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 CONFIGURE_ARGS += \
31 --enable-shared \
32 --enable-static \
33 --disable-rpath \
34 --enable-nls \
35 --disable-java \
36 --disable-native-java \
37 --disable-openmp \
38 --with-included-gettext \
39 --without-libintl-prefix \
40 --without-libexpat-prefix \
41 --without-emacs
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
45 endef
46
47 define Build/InstallDev
48 mkdir -p $(1)/usr/lib/libintl/include
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl/include/
50 mkdir -p $(1)/usr/lib/libintl/lib
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl/lib/
52 endef
53
54 define Package/libintl/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libintl))