Root/package/libs/gettext/Makefile

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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=gettext
11PKG_RELEASE:=2
12
13PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
14
15include $(INCLUDE_DIR)/package.mk
16include $(INCLUDE_DIR)/host-build.mk
17
18define Package/libintl
19  SECTION:=libs
20  CATEGORY:=Libraries
21  TITLE:=Stub header for the GNU Internationalization library
22endef
23
24define Build/Prepare
25    $(INSTALL_DIR) $(PKG_BUILD_DIR)
26    $(CP) ./src/* $(PKG_BUILD_DIR)/
27endef
28
29define Build/Configure
30endef
31
32define Build/Compile
33endef
34
35define 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/
41endef
42
43define Host/Prepare
44    mkdir -p $(HOST_BUILD_DIR)
45endef
46
47define Host/Compile
48
49endef
50
51define 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/
57endef
58
59define Package/libintl/install
60    $(INSTALL_DIR) $(1)/tmp
61    touch $(1)/tmp/.libintl-placeholder
62endef
63
64$(eval $(call HostBuild))
65$(eval $(call BuildPackage,libintl))
66

Archive Download this file



interactive