2007-01-21 22:15:32 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gettext
|
|
|
|
PKG_VERSION:=0.16.1
|
2009-01-04 00:06:33 +00:00
|
|
|
PKG_RELEASE:=4
|
2007-01-21 22:15:32 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@GNU/gettext
|
2007-07-03 09:41:45 +00:00
|
|
|
PKG_MD5SUM:=3d9ad24301c6d6b17ec30704a13fe127
|
2007-01-21 22:15:32 +00:00
|
|
|
|
2007-12-27 02:12:04 +00:00
|
|
|
PKG_FIXUP = libtool
|
|
|
|
|
2007-01-21 22:15:32 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libintl
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=GNU Internationalization library
|
|
|
|
URL:=http://www.gnu.org/software/gettext/
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-07-03 09:41:45 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-nls \
|
|
|
|
--disable-java \
|
|
|
|
--disable-native-java \
|
|
|
|
--disable-openmp \
|
|
|
|
--with-included-gettext \
|
|
|
|
--without-libintl-prefix \
|
|
|
|
--without-libexpat-prefix \
|
|
|
|
--without-emacs
|
2007-01-21 22:15:32 +00:00
|
|
|
|
2007-09-06 02:30:13 +00:00
|
|
|
define Build/Compile
|
2008-10-04 16:47:00 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Install
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
|
2007-09-06 02:30:13 +00:00
|
|
|
endef
|
2007-01-21 22:15:32 +00:00
|
|
|
|
2009-01-04 00:06:33 +00:00
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libintl/include
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libintl/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl/lib/
|
2007-01-21 22:15:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libintl/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
|
2007-01-21 22:15:32 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libintl))
|