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 | |
| 9 | include $(TOPDIR)/rules.mk |
| 10 | |
| 11 | PKG_NAME:=libunistring |
| 12 | PKG_VERSION:=0.9.2.1 |
| 13 | |
| 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 15 | PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/$(PKG_NAME)/ |
| 16 | |
| 17 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
| 18 | |
| 19 | include $(INCLUDE_DIR)/package.mk |
| 20 | |
| 21 | define 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/ |
| 28 | endef |
| 29 | |
| 30 | define Package/libunistring/description |
| 31 | This library implements Unicode strings, together with functions for Unicode characters and functions for string processing. |
| 32 | endef |
| 33 | |
| 34 | define Build/Compile |
| 35 | $(MAKE) -C "$(PKG_BUILD_DIR)"\ |
| 36 | DESTDIR="$(PKG_INSTALL_DIR)"\ |
| 37 | all install |
| 38 | endef |
| 39 | |
| 40 | define 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 |
| 54 | endef |
| 55 | |
| 56 | define Package/libunistring/install |
| 57 | $(INSTALL_DIR) $(1)/usr/lib |
| 58 | |
| 59 | $(CP) \ |
| 60 | $(PKG_INSTALL_DIR)/usr/lib/* \ |
| 61 | $(1)/usr/lib/ |
| 62 | endef |
| 63 | |
| 64 | $(eval $(call BuildPackage,libunistring)) |
libunistring/patches/0001-locale.patch |
| 1 | diff -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>. */ |
Download the corresponding diff file