aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/gettext/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-10-10 17:57:59 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-10-10 17:57:59 +0000
commit971ae637f195e2d5ffe30a801b5725b83cc6391b (patch)
tree79dd50c10a1aa61c0337a93b99e33a3118dea721 /package/libs/gettext/Makefile
parenta8587b5d422bf0d5488895bf564151a37223fdb1 (diff)
downloadupstream-971ae637f195e2d5ffe30a801b5725b83cc6391b.tar.gz
upstream-971ae637f195e2d5ffe30a801b5725b83cc6391b.tar.bz2
upstream-971ae637f195e2d5ffe30a801b5725b83cc6391b.zip
gettext: move to trunk and add myself as maintainer
SVN-Revision: 33712
Diffstat (limited to 'package/libs/gettext/Makefile')
-rw-r--r--package/libs/gettext/Makefile65
1 files changed, 65 insertions, 0 deletions
diff --git a/package/libs/gettext/Makefile b/package/libs/gettext/Makefile
new file mode 100644
index 0000000000..c2f4e756f9
--- /dev/null
+++ b/package/libs/gettext/Makefile
@@ -0,0 +1,65 @@
+#
+# 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
+
+PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
+
+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/Prepare
+ $(INSTALL_DIR) $(PKG_BUILD_DIR)
+ $(CP) ./src/* $(PKG_BUILD_DIR)/
+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
+ $(INSTALL_DIR) $(STAGING_DIR_HOST)/include
+ $(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR_HOST)/include/
+
+ $(INSTALL_DIR) $(STAGING_DIR_HOST)/share/aclocal
+ $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOST)/share/aclocal/
+endef
+
+define Package/libintl/install
+ $(INSTALL_DIR) $(1)/tmp
+ touch $(1)/tmp/.libintl-placeholder
+endef
+
+$(eval $(call HostBuild))
+$(eval $(call BuildPackage,libintl))