Date:2011-08-12 02:00:55 (12 years 7 months ago)
Author:Bart van Strien
Commit:bb2a84ca0e9eebc59b370d43d90275f104d2aa37
Message:Add libunistring

Files: libunistring/Makefile (1 diff)
libunistring/patches/0001-locale.patch (1 diff)

Change Details

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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=libunistring
12PKG_VERSION:=0.9.2.1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/$(PKG_NAME)/
16
17PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/libunistring
22    MAINTAINER:="Bart van Strien" <bart.bes@gmail.com>
23    TITLE:=libunistring
24    SECTION:=libs
25    CATEGORY:=Libraries
26    DEPENDS:=+libiconv
27    URL:=http://savannah.gnu.org/projects/libunistring/
28endef
29
30define Package/libunistring/description
31    This library implements Unicode strings, together with functions for Unicode characters and functions for string processing.
32endef
33
34define Build/Compile
35    $(MAKE) -C "$(PKG_BUILD_DIR)"\
36        DESTDIR="$(PKG_INSTALL_DIR)"\
37        all install
38endef
39
40define Build/InstallDev
41    $(INSTALL_DIR) \
42        $(1)/usr/include \
43        $(1)/usr/lib \
44        $(1)/usr/share
45    $(CP) \
46        $(PKG_INSTALL_DIR)/usr/lib/* \
47        $(1)/usr/lib/
48    $(CP) \
49        $(PKG_INSTALL_DIR)/usr/include/* \
50        $(1)/usr/include/
51    $(CP) \
52        $(PKG_INSTALL_DIR)/usr/share/* \
53        $(1)/usr/share
54endef
55
56define Package/libunistring/install
57    $(INSTALL_DIR) $(1)/usr/lib
58
59    $(CP) \
60        $(PKG_INSTALL_DIR)/usr/lib/* \
61        $(1)/usr/lib/
62endef
63
64$(eval $(call BuildPackage,libunistring))
libunistring/patches/0001-locale.patch
1diff -ruN libunistring-0.9.2.1/lib/localename.c libunistring-0.9.2.1m/lib/localename.c
2--- libunistring-0.9.2.1/lib/localename.c 2010-01-01 11:02:02.000000000 +0100
3@@ -2607,7 +2607,7 @@
4     locale_t thread_locale = uselocale (NULL);
5     if (thread_locale != LC_GLOBAL_LOCALE)
6       {
7-# if __GLIBC__ >= 2
8+# if __GLIBC__ >= 2 && 0
9         /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in
10            glibc < 2.12.
11            See <http://sourceware.org/bugzilla/show_bug.cgi?id=10968>. */

Archive Download the corresponding diff file



interactive