2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/gettext
16 PKG_MD5SUM:=3dd55b952826d2b32f51308f2f91aa89
22 include $(INCLUDE_DIR)/package.mk
24 define Package/libintl
27 TITLE:=GNU Internationalization library
28 URL:=http://www.gnu.org/software/gettext/
31 TARGET_CFLAGS += $(FPIC)
39 --disable-native-java \
41 --with-included-gettext \
42 --without-libintl-prefix \
43 --without-libexpat-prefix \
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/include/
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib
53 $(INSTALL_DIR) $(1)/usr/share/aclocal
54 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
57 define Package/libintl/install
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
62 $(eval $(call BuildPackage,libintl))