1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-23 02:39:43 +02:00
openwrt-packages/libunistring/Makefile

69 lines
1.5 KiB
Makefile
Raw Normal View History

2011-08-12 03:00:55 +03:00
#
# Copyright (C) 2009 Qi Hardware Inc.
# Author: Bart van Strien <bart.bes@gmail.com>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
2012-02-21 16:08:20 +02:00
# modified 20/02/2012
# author: jnbagale@gmail.com
2011-08-12 03:00:55 +03:00
include $(TOPDIR)/rules.mk
PKG_NAME:=libunistring
2012-02-21 16:08:20 +02:00
PKG_VERSION:=0.9.3
2011-08-12 03:00:55 +03:00
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/$(PKG_NAME)/
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
2012-02-21 16:08:20 +02:00
include $(INCLUDE_DIR)/nls.mk
2011-08-12 03:00:55 +03:00
define Package/libunistring
MAINTAINER:="Bart van Strien" <bart.bes@gmail.com>
TITLE:=libunistring
SECTION:=libs
CATEGORY:=Libraries
2012-02-21 16:08:20 +02:00
DEPENDS:=$(ICONV_DEPENDS)
2011-08-12 03:00:55 +03:00
URL:=http://savannah.gnu.org/projects/libunistring/
endef
define Package/libunistring/description
This library implements Unicode strings, together with functions for Unicode characters and functions for string processing.
endef
define Build/Compile
$(MAKE) -C "$(PKG_BUILD_DIR)"\
DESTDIR="$(PKG_INSTALL_DIR)"\
all install
endef
define Build/InstallDev
$(INSTALL_DIR) \
$(1)/usr/include \
$(1)/usr/lib \
$(1)/usr/share
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/* \
$(1)/usr/lib/
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/* \
$(1)/usr/include/
$(CP) \
$(PKG_INSTALL_DIR)/usr/share/* \
$(1)/usr/share
endef
define Package/libunistring/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/* \
$(1)/usr/lib/
endef
$(eval $(call BuildPackage,libunistring))