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
|
2020-07-25 01:18:14 +00:00
|
|
|
PKG_VERSION:=0.21
|
2021-03-06 22:16:55 +00:00
|
|
|
PKG_RELEASE:=2
|
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
|
2020-07-25 01:18:14 +00:00
|
|
|
PKG_HASH:=d20fcbb537e02dcf1383197ba05bd0734ef7bf5db06bdb241eb69b7d16b73192
|
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>
|
2020-07-25 01:18:14 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
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_DEPENDS:=gettext-full/host
|
2020-07-25 01:18:14 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
HOST_BUILD_PARALLEL:=1
|
2012-10-10 17:58:23 +00:00
|
|
|
|
|
|
|
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/
|
2019-01-22 18:17:32 +00:00
|
|
|
ABI_VERSION:=8
|
2012-10-10 17:58:23 +00:00
|
|
|
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
|
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-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-openmp \
|
|
|
|
--without-emacs \
|
|
|
|
--without-libxml2-prefix
|
|
|
|
|
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
|
2019-01-22 18:17:32 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
|
2012-10-10 17:58:23 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|
|
|
|
$(eval $(call BuildPackage,libintl-full))
|