1# $Id$ 2 3include $(TOPDIR)/rules.mk 4 5PKG_NAME:=libunistring 6PKG_VERSION:=0.9.3 7PKG_RELEASE:=1 8PKG_MD5SUM:=db8eca3b64163abadf8c40e5cecc261f 9 10PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/libunistring 11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 12PKG_FIXUP:=libtool 13 14PKG_BUILD_DIR:=$(BUILD_DIR)/libunistring-$(PKG_VERSION) 15PKG_BUILD_PARALLEL:=1 16 17include $(INCLUDE_DIR)/package.mk 18 19# This package is built without depending on libiconv-full, which is probably a mistake 20define Package/libunistring 21SECTION:=libs 22CATEGORY:=Libraries 23TITLE:=libunistring 24URL:=http://www.gnu.org/software/libunistring/ 25MAINTAINER:=Espen J��rgensen <espenjurgensen+openwrt@gmail.com> 26endef 27 28define Package/libunistring/description 29 This library provides functions for manipulating Unicode strings and for manipulating C strings according to the Unicode standard. 30endef 31 32TARGET_CFLAGS += $(FPIC) 33 34define Build/Configure 35 $(call Build/Configure/Default, \ 36 --enable-shared \ 37 --enable-static \ 38 ) 39endef 40 41define Build/Compile 42 $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install 43endef 44 45define 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.* $(1)/usr/lib/ 52endef 53 54define Package/libunistring/install 55 $(INSTALL_DIR) $(1)/usr/include 56 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/ 57 $(INSTALL_DIR) $(1)/usr/include/unistring 58 $(CP) $(PKG_INSTALL_DIR)/usr/include/unistring/*.h $(1)/usr/include/unistring/ 59 $(INSTALL_DIR) $(1)/usr/lib 60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunistring.so* $(1)/usr/lib/ 61endef 62 63$(eval $(call BuildPackage,libunistring)) 64