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
13 include $(INCLUDE_DIR)/package.mk
14 include $(INCLUDE_DIR)/host-build.mk
16 define Package/libintl
19 TITLE:=Stub header for the GNU Internationalization library
23 $(INSTALL_DIR) $(PKG_BUILD_DIR)
24 $(CP) ./src/* $(PKG_BUILD_DIR)/
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))