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_LICENSE:=FREE
14PKG_LICENSE_FILES:=LICENSE
15
16PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
17
18include $(INCLUDE_DIR)/package.mk
19include $(INCLUDE_DIR)/host-build.mk
20
21define Package/libintl
22  SECTION:=libs
23  CATEGORY:=Libraries
24  TITLE:=Stub header for the GNU Internationalization library
25endef
26
27define Build/Prepare
28    $(INSTALL_DIR) $(PKG_BUILD_DIR)
29    $(CP) ./src/* $(PKG_BUILD_DIR)/
30endef
31
32define Build/Configure
33endef
34
35define Build/Compile
36endef
37
38define Build/InstallDev
39    $(INSTALL_DIR) $(1)/usr/lib/libintl-stub/include
40    $(INSTALL_DATA) $(PKG_BUILD_DIR)/include/libintl.h $(1)/usr/lib/libintl-stub/include/
41
42    $(INSTALL_DIR) $(1)/usr/share/aclocal
43    $(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/
44endef
45
46define Host/Prepare
47    mkdir -p $(HOST_BUILD_DIR)
48endef
49
50define Host/Compile
51
52endef
53
54define Host/Install
55    $(INSTALL_DIR) $(STAGING_DIR_HOST)/include
56    $(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR_HOST)/include/
57
58    $(INSTALL_DIR) $(STAGING_DIR_HOST)/share/aclocal
59    $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOST)/share/aclocal/
60endef
61
62define Package/libintl/install
63    $(INSTALL_DIR) $(1)/tmp
64    touch $(1)/tmp/.libintl-placeholder
65endef
66
67$(eval $(call HostBuild))
68$(eval $(call BuildPackage,libintl))
69

Archive Download this file



interactive