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
|
2016-10-12 14:14:45 +00:00
|
|
|
PKG_VERSION:=0.19.8.1
|
|
|
|
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
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=105556dbc5c3fbbc2aa0edb46d22d055748b6f5c7cd7a8d99f8e7eb84e938be4
|
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)
|
|
|
|
|
2016-05-30 13:05:03 +00:00
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0+
|
2017-09-28 02:55:46 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:gnu:gettext
|
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)
|
2017-01-10 17:43:57 +00:00
|
|
|
TARGET_CFLAGS += -I$(STAGING_DIR_HOSTPKG)/include
|
2013-07-06 14:49:20 +00:00
|
|
|
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 \
|
2016-10-12 14:14:45 +00:00
|
|
|
--disable-libasprintf \
|
2012-10-10 17:58:23 +00:00
|
|
|
--disable-rpath \
|
|
|
|
--enable-nls \
|
|
|
|
--disable-java \
|
|
|
|
--disable-native-java \
|
|
|
|
--disable-openmp \
|
2016-05-10 14:01:38 +00:00
|
|
|
--disable-curses \
|
2012-10-10 17:58:23 +00:00
|
|
|
--with-included-gettext \
|
|
|
|
--without-libintl-prefix \
|
|
|
|
--without-libexpat-prefix \
|
|
|
|
--without-emacs
|
|
|
|
|
2012-11-28 21:02:53 +00:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
2016-12-12 12:20:58 +00:00
|
|
|
--disable-shared \
|
|
|
|
--enable-static \
|
2016-10-12 14:14:45 +00:00
|
|
|
--disable-libasprintf \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-java \
|
|
|
|
--disable-native-java \
|
|
|
|
--disable-openmp \
|
|
|
|
--without-emacs \
|
|
|
|
--without-libxml2-prefix
|
|
|
|
|
2012-11-28 21:02:53 +00:00
|
|
|
|
2016-05-30 13:05:03 +00:00
|
|
|
HOST_CONFIGURE_VARS += \
|
2017-01-11 02:44:51 +00:00
|
|
|
EMACS="no" \
|
|
|
|
am_cv_lib_iconv=no \
|
|
|
|
am_cv_func_iconv=no \
|
|
|
|
ac_cv_header_iconv_h=no \
|
2016-05-30 13:05:03 +00:00
|
|
|
|
2018-08-07 15:46:42 +00:00
|
|
|
HOST_CFLAGS += $(HOST_FPIC)
|
|
|
|
|
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/
|
2016-10-12 14:14:45 +00:00
|
|
|
|
2017-01-10 17:43:57 +00:00
|
|
|
$(SED) '/read dummy/d' $(STAGING_DIR_HOSTPKG)/bin/gettextize
|
2012-10-10 17:58:23 +00:00
|
|
|
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))
|