-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add README and fix hostbuild warnings
- Loading branch information
1 parent
25d6d08
commit 2377b9e
Showing
3 changed files
with
73 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (C) 2006-2012 OpenWrt.org | ||
# Copyright (C) 2006-2015 OpenWrt.org | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
|
@@ -8,19 +8,26 @@ | |
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=gettext-full | ||
PKG_VERSION:=0.18.1.1 | ||
PKG_RELEASE:=2 | ||
PKG_VERSION:=0.19.8.1 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=gettext-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE:=gettext-$(PKG_VERSION).tar.xz | ||
PKG_SOURCE_URL:=@GNU/gettext | ||
PKG_MD5SUM:=3dd55b952826d2b32f51308f2f91aa89 | ||
PKG_HASH:=105556dbc5c3fbbc2aa0edb46d22d055748b6f5c7cd7a8d99f8e7eb84e938be4 | ||
PKG_BUILD_DIR:=$(BUILD_DIR)/gettext-$(PKG_VERSION) | ||
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/gettext-$(PKG_VERSION) | ||
|
||
PKG_MAINTAINER:=Jo-Philipp Wich <[email protected]> | ||
PKG_LICENSE:=GPL-3.0+ | ||
PKG_CPE_ID:=cpe:/a:gnu:gettext | ||
|
||
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 | ||
|
@@ -30,20 +37,46 @@ define Package/libintl-full | |
endef | ||
|
||
TARGET_CFLAGS += $(FPIC) | ||
ifneq ($(HOST_OS),Linux) | ||
TARGET_CFLAGS += -I$(STAGING_DIR_HOSTPKG)/include | ||
endif | ||
ifdef CONFIG_USE_MUSL | ||
TARGET_CFLAGS += -D__UCLIBC__ | ||
endif | ||
|
||
CONFIGURE_ARGS += \ | ||
--enable-shared \ | ||
--enable-static \ | ||
--disable-libasprintf \ | ||
--disable-rpath \ | ||
--enable-nls \ | ||
--disable-java \ | ||
--disable-native-java \ | ||
--disable-openmp \ | ||
--disable-curses \ | ||
--with-included-gettext \ | ||
--without-libintl-prefix \ | ||
--without-libexpat-prefix \ | ||
--without-emacs | ||
|
||
HOST_CONFIGURE_ARGS += \ | ||
--disable-shared \ | ||
--enable-static \ | ||
--disable-libasprintf \ | ||
--disable-rpath \ | ||
--disable-java \ | ||
--disable-native-java \ | ||
--disable-openmp \ | ||
--without-emacs \ | ||
--without-libxml2-prefix | ||
|
||
|
||
HOST_CONFIGURE_VARS += \ | ||
EMACS="no" \ | ||
am_cv_lib_iconv=no \ | ||
am_cv_func_iconv=no \ | ||
ac_cv_header_iconv_h=no \ | ||
|
||
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/ | ||
|
@@ -53,11 +86,14 @@ define Build/InstallDev | |
|
||
$(INSTALL_DIR) $(1)/usr/share/aclocal | ||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/ | ||
|
||
$(SED) '/read dummy/d' $(STAGING_DIR_HOSTPKG)/bin/gettextize | ||
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 BuildPackage,libintl-full)) | ||
$(eval $(call HostBuild)) | ||
$(eval $(call BuildPackage,libintl-full)) |
This file was deleted.
Oops, something went wrong.