2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_LICENSE_FILES:=LICENSE
16 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/host-build.mk
21 define Package/libintl
24 TITLE:=Stub header for the GNU Internationalization library
27 define Build/Configure
33 define Build/InstallDev
34 $(INSTALL_DIR) $(1)/usr/lib/libintl-stub/include
35 $(INSTALL_DATA) $(PKG_BUILD_DIR)/include/libintl.h $(1)/usr/lib/libintl-stub/include/
37 $(INSTALL_DIR) $(1)/usr/share/aclocal
38 $(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/
42 mkdir -p $(HOST_BUILD_DIR)
50 $(INSTALL_DIR) $(STAGING_DIR)/host/include
51 $(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR)/host/include/
53 $(INSTALL_DIR) $(STAGING_DIR)/host/share/aclocal
54 $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR)/host/share/aclocal/
57 define Package/libintl/install
58 $(INSTALL_DIR) $(1)/tmp
59 touch $(1)/tmp/.libintl-placeholder
62 $(eval $(call HostBuild))
63 $(eval $(call BuildPackage,libintl))