| 1 | # |
| 2 | # Copyright (C) 2010 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=gettext |
| 11 | PKG_RELEASE:=2 |
| 12 | |
| 13 | PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org> |
| 14 | |
| 15 | include $(INCLUDE_DIR)/package.mk |
| 16 | include $(INCLUDE_DIR)/host-build.mk |
| 17 | |
| 18 | define Package/libintl |
| 19 | SECTION:=libs |
| 20 | CATEGORY:=Libraries |
| 21 | TITLE:=Stub header for the GNU Internationalization library |
| 22 | endef |
| 23 | |
| 24 | define Build/Prepare |
| 25 | $(INSTALL_DIR) $(PKG_BUILD_DIR) |
| 26 | $(CP) ./src/* $(PKG_BUILD_DIR)/ |
| 27 | endef |
| 28 | |
| 29 | define Build/Configure |
| 30 | endef |
| 31 | |
| 32 | define Build/Compile |
| 33 | endef |
| 34 | |
| 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/ |
| 38 | |
| 39 | $(INSTALL_DIR) $(1)/usr/share/aclocal |
| 40 | $(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/ |
| 41 | endef |
| 42 | |
| 43 | define Host/Prepare |
| 44 | mkdir -p $(HOST_BUILD_DIR) |
| 45 | endef |
| 46 | |
| 47 | define Host/Compile |
| 48 | |
| 49 | endef |
| 50 | |
| 51 | define Host/Install |
| 52 | $(INSTALL_DIR) $(STAGING_DIR_HOST)/include |
| 53 | $(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR_HOST)/include/ |
| 54 | |
| 55 | $(INSTALL_DIR) $(STAGING_DIR_HOST)/share/aclocal |
| 56 | $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOST)/share/aclocal/ |
| 57 | endef |
| 58 | |
| 59 | define Package/libintl/install |
| 60 | $(INSTALL_DIR) $(1)/tmp |
| 61 | touch $(1)/tmp/.libintl-placeholder |
| 62 | endef |
| 63 | |
| 64 | $(eval $(call HostBuild)) |
| 65 | $(eval $(call BuildPackage,libintl)) |
| 66 | |