Root/libunistring/Makefile

1#
2# Copyright (C) 2009 Qi Hardware Inc.
3# Author: Bart van Strien <bart.bes@gmail.com>
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7#
8
9# modified 20/02/2012
10# author: jnbagale@gmail.com
11
12include $(TOPDIR)/rules.mk
13
14PKG_NAME:=libunistring
15PKG_VERSION:=0.9.3
16
17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/$(PKG_NAME)/
19
20PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22include $(INCLUDE_DIR)/package.mk
23include $(INCLUDE_DIR)/nls.mk
24
25define Package/libunistring
26    MAINTAINER:="Bart van Strien" <bart.bes@gmail.com>
27    TITLE:=libunistring
28    SECTION:=libs
29    CATEGORY:=Libraries
30    DEPENDS:=$(ICONV_DEPENDS)
31    URL:=http://savannah.gnu.org/projects/libunistring/
32endef
33
34define Package/libunistring/description
35    This library implements Unicode strings, together with functions for Unicode characters and functions for string processing.
36endef
37
38define Build/Compile
39    $(MAKE) -C "$(PKG_BUILD_DIR)"\
40        DESTDIR="$(PKG_INSTALL_DIR)"\
41        all install
42endef
43
44define Build/InstallDev
45    $(INSTALL_DIR) \
46        $(1)/usr/include \
47        $(1)/usr/lib \
48        $(1)/usr/share
49    $(CP) \
50        $(PKG_INSTALL_DIR)/usr/lib/* \
51        $(1)/usr/lib/
52    $(CP) \
53        $(PKG_INSTALL_DIR)/usr/include/* \
54        $(1)/usr/include/
55    $(CP) \
56        $(PKG_INSTALL_DIR)/usr/share/* \
57        $(1)/usr/share
58endef
59
60define Package/libunistring/install
61    $(INSTALL_DIR) $(1)/usr/lib
62
63    $(CP) \
64        $(PKG_INSTALL_DIR)/usr/lib/* \
65        $(1)/usr/lib/
66endef
67
68$(eval $(call BuildPackage,libunistring))
69

Archive Download this file



interactive