[packages_10.03.2] libosip2: merge r27886, r28099
[10.03/packages.git] / 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 include $(INCLUDE_DIR)/package.mk
14 include $(INCLUDE_DIR)/host-build.mk
15
16 define Package/libintl
17   SECTION:=libs
18   CATEGORY:=Libraries
19   TITLE:=Stub header for the GNU Internationalization library
20 endef
21
22 define Build/Prepare
23         $(INSTALL_DIR) $(PKG_BUILD_DIR)
24         $(CP) ./src/* $(PKG_BUILD_DIR)/
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))