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 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
15 include $(INCLUDE_DIR)/package.mk
16 include $(INCLUDE_DIR)/host-build.mk
18 define Package/libintl
21 TITLE:=Stub header for the GNU Internationalization library
25 $(INSTALL_DIR) $(PKG_BUILD_DIR)
26 $(CP) ./src/* $(PKG_BUILD_DIR)/
29 define Build/Configure
35 define Build/InstallDev
36 $(INSTALL_DIR) $(1)/usr/lib/libintl-stub/include
37 $(INSTALL_DATA) $(PKG_BUILD_DIR)/include/libintl.h $(1)/usr/lib/libintl-stub/include/
39 $(INSTALL_DIR) $(1)/usr/share/aclocal
40 $(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/
44 mkdir -p $(HOST_BUILD_DIR)
52 $(INSTALL_DIR) $(STAGING_DIR_HOST)/include
53 $(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR_HOST)/include/
55 $(INSTALL_DIR) $(STAGING_DIR_HOST)/share/aclocal
56 $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOST)/share/aclocal/
59 define Package/libintl/install
60 $(INSTALL_DIR) $(1)/tmp
61 touch $(1)/tmp/.libintl-placeholder
64 $(eval $(call HostBuild))
65 $(eval $(call BuildPackage,libintl))