2012-10-10 17:57:59 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2010 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gettext
|
|
|
|
PKG_RELEASE:=2
|
|
|
|
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=FSFULLR
|
2012-10-19 15:34:28 +00:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
2016-06-07 09:42:32 +00:00
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
2012-10-10 17:57:59 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
define Package/libintl
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Stub header for the GNU Internationalization library
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/libintl-stub/include
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/include/libintl.h $(1)/usr/lib/libintl-stub/include/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/aclocal
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Prepare
|
|
|
|
mkdir -p $(HOST_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Compile
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
2017-01-10 17:43:57 +00:00
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/include
|
|
|
|
$(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR_HOSTPKG)/include/
|
2012-10-10 17:57:59 +00:00
|
|
|
|
2017-01-10 17:43:57 +00:00
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/aclocal
|
|
|
|
$(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOSTPKG)/share/aclocal/
|
2012-10-10 17:57:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libintl/install
|
|
|
|
$(INSTALL_DIR) $(1)/tmp
|
|
|
|
touch $(1)/tmp/.libintl-placeholder
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|
|
|
|
$(eval $(call BuildPackage,libintl))
|