1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-19 08:06:16 +02:00
openwrt-xburst/package/libs/gettext/Makefile
hcg 58313fff71 licensing: Add licensing metadata to many packages
Two new variables are introduces to many packages, namely PKG_LICENSE and
PKG_LICENSE_FILES - there may be more than one license applied to packages,
and these are listed in the PKG_LICENSE variable and separated by spaces.
All relevant license files are also added to the PKG_LICENSE_FILES variable,
also space separated.

The licensing metadata is put into the bin/<platform>/packages/Packages file
for later parsing. A script for that is on it's way!


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33861 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-19 15:34:28 +00:00

69 lines
1.4 KiB
Makefile

#
# Copyright (C) 2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=gettext
PKG_RELEASE:=2
PKG_LICENSE:=FREE
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
define Package/libintl
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Stub header for the GNU Internationalization library
endef
define Build/Prepare
$(INSTALL_DIR) $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Build/Configure
endef
define Build/Compile
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib/libintl-stub/include
$(INSTALL_DATA) $(PKG_BUILD_DIR)/include/libintl.h $(1)/usr/lib/libintl-stub/include/
$(INSTALL_DIR) $(1)/usr/share/aclocal
$(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/
endef
define Host/Prepare
mkdir -p $(HOST_BUILD_DIR)
endef
define Host/Compile
endef
define Host/Install
$(INSTALL_DIR) $(STAGING_DIR_HOST)/include
$(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR_HOST)/include/
$(INSTALL_DIR) $(STAGING_DIR_HOST)/share/aclocal
$(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOST)/share/aclocal/
endef
define Package/libintl/install
$(INSTALL_DIR) $(1)/tmp
touch $(1)/tmp/.libintl-placeholder
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,libintl))