2007-01-21 22:15:32 +00:00
|
|
|
#
|
2010-02-12 20:30:10 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2007-01-21 22:15:32 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gettext
|
2010-12-06 18:06:09 +00:00
|
|
|
PKG_VERSION:=0.18.1.1
|
2010-02-20 04:39:41 +00:00
|
|
|
PKG_RELEASE:=1
|
2007-01-21 22:15:32 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@GNU/gettext
|
2010-12-06 18:06:09 +00:00
|
|
|
PKG_MD5SUM:=3dd55b952826d2b32f51308f2f91aa89
|
2007-01-21 22:15:32 +00:00
|
|
|
|
2010-12-15 19:05:15 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2010-02-12 20:30:10 +00:00
|
|
|
PKG_INSTALL:=1
|
2010-12-06 23:06:56 +00:00
|
|
|
PKG_BUILD_PARALLEL:=0
|
2007-12-27 02:12:04 +00:00
|
|
|
|
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
|
|
|
|
2009-01-04 00:06:33 +00:00
|
|
|
define Build/InstallDev
|
2010-12-15 02:24:59 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/include/
|
2010-02-20 04:39:41 +00:00
|
|
|
|
2010-12-15 02:24:59 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib
|
2010-02-12 20:30:10 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/aclocal
|
2010-02-20 04:39:41 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
|
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))
|