2012-10-10 17:58:23 +00:00
|
|
|
#
|
2015-01-09 14:51:29 +00:00
|
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
2012-10-10 17:58:23 +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-full
|
2015-11-22 14:17:11 +00:00
|
|
|
PKG_VERSION:=0.19.6
|
2013-04-23 10:29:49 +00:00
|
|
|
PKG_RELEASE:=1
|
2012-10-10 17:58:23 +00:00
|
|
|
|
2015-01-09 14:51:29 +00:00
|
|
|
PKG_SOURCE:=gettext-$(PKG_VERSION).tar.xz
|
2012-10-10 17:58:23 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/gettext
|
2015-11-22 14:17:11 +00:00
|
|
|
PKG_MD5SUM:=69d79254ee3b41df23f41c2f4fd720d9
|
2012-10-10 17:58:23 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/gettext-$(PKG_VERSION)
|
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/gettext-$(PKG_VERSION)
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0+
|
2012-10-10 17:58:23 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=0
|
|
|
|
PKG_BUILD_DEPENDS:=gettext-full/host
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
define Package/libintl-full
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=GNU Internationalization library
|
|
|
|
URL:=http://www.gnu.org/software/gettext/
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2013-07-06 14:49:20 +00:00
|
|
|
ifneq ($(HOST_OS),Linux)
|
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR_HOST)/include
|
|
|
|
endif
|
2014-06-29 22:25:43 +00:00
|
|
|
ifdef CONFIG_USE_MUSL
|
|
|
|
TARGET_CFLAGS += -D__UCLIBC__
|
|
|
|
endif
|
2012-10-10 17:58:23 +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
|
|
|
|
|
2012-11-28 21:02:53 +00:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
2013-07-01 11:03:02 +00:00
|
|
|
--with-included-libxml --without-libxml2-prefix --with-included-libcroco
|
2012-11-28 21:02:53 +00:00
|
|
|
|
2012-10-10 17:58:23 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libintl-full/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl-full/include/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libintl-full/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.{a,so*} $(1)/usr/lib/libintl-full/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/aclocal
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libintl-full/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|
|
|
|
$(eval $(call BuildPackage,libintl-full))
|