Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / libs / libunistring / Makefile
1 #
2 # Copyright (C) 2006-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libunistring
11 PKG_VERSION:=0.9.6
12 PKG_RELEASE:=1
13 PKG_HASH:=9625eec2507f4789ebb6fc48ebda98be0e0168979a2f68aa8b680bf8eeabbd47
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/libunistring
17 PKG_BUILD_PARALLEL:=1
18 PKG_INSTALL:=1
19
20 PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
21 PKG_LICENSE:=GPL-3.0
22 PKG_LICENSE_FILES:=COPYING
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libunistring
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=libunistring
30 URL:=http://www.gnu.org/software/libunistring/
31 endef
32
33 define Package/libunistring/description
34 This library provides functions for manipulating Unicode strings and for manipulating C strings according to the Unicode standard.
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 CONFIGURE_ARGS += \
40 --enable-shared \
41 --enable-static \
42 --without-libiconv-prefix \
43 --without-libpth-prefix
44
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/
52 endef
53
54 define Package/libunistring/install
55 $(INSTALL_DIR) $(1)/usr/lib
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunistring.so.* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,libunistring))