libs/gettext: drop Build/Prepare rule in favor of default one
[openwrt/staging/yousong.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 <jo@mein.io>
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/Configure
28 endef
29
30 define Build/Compile
31 endef
32
33 define Build/InstallDev
34 $(INSTALL_DIR) $(1)/usr/lib/libintl-stub/include
35 $(INSTALL_DATA) $(PKG_BUILD_DIR)/include/libintl.h $(1)/usr/lib/libintl-stub/include/
36
37 $(INSTALL_DIR) $(1)/usr/share/aclocal
38 $(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/
39 endef
40
41 define Host/Prepare
42 mkdir -p $(HOST_BUILD_DIR)
43 endef
44
45 define Host/Compile
46
47 endef
48
49 define Host/Install
50 $(INSTALL_DIR) $(STAGING_DIR)/host/include
51 $(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR)/host/include/
52
53 $(INSTALL_DIR) $(STAGING_DIR)/host/share/aclocal
54 $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR)/host/share/aclocal/
55 endef
56
57 define Package/libintl/install
58 $(INSTALL_DIR) $(1)/tmp
59 touch $(1)/tmp/.libintl-placeholder
60 endef
61
62 $(eval $(call HostBuild))
63 $(eval $(call BuildPackage,libintl))