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