2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=libunistring
13 PKG_MD5SUM:=dfae4ff5583649ed24d8f368f1d0543b
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/libunistring
20 PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
22 PKG_LICENSE_FILES:=COPYING
24 include $(INCLUDE_DIR)/package.mk
26 define Package/libunistring
30 URL:=http://www.gnu.org/software/libunistring/
33 define Package/libunistring/description
34 This library provides functions for manipulating Unicode strings and for manipulating C strings according to the Unicode standard.
37 TARGET_CFLAGS += $(FPIC)
42 --without-libiconv-prefix \
43 --without-libpth-prefix
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
48 $(INSTALL_DIR) $(1)/usr/include/unistring
49 $(CP) $(PKG_INSTALL_DIR)/usr/include/unistring/*.h $(1)/usr/include/unistring/
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunistring.{a,so*} $(1)/usr/lib/
54 define Package/libunistring/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunistring.so.* $(1)/usr/lib/
59 $(eval $(call BuildPackage,libunistring))