2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/gettext
17 PKG_MD5SUM:=3d9ad24301c6d6b17ec30704a13fe127
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libintl
26 TITLE:=GNU Internationalization library
27 URL:=http://www.gnu.org/software/gettext/
30 TARGET_CFLAGS += $(FPIC)
38 --disable-native-java \
40 --with-included-gettext \
41 --without-libintl-prefix \
42 --without-libexpat-prefix \
46 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all
50 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
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/
60 define Package/libintl/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
65 $(eval $(call BuildPackage,libintl))