1
0

Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libunistring
  9. PKG_VERSION:=0.9.8
  10. PKG_RELEASE:=1
  11. PKG_HASH:=b792f2bd05d0fa7b339e39e353da7232b2e514e0db2cf5ed95beeff3feb53cf5
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@GNU/libunistring
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_INSTALL:=1
  16. PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
  17. PKG_LICENSE:=GPL-3.0
  18. PKG_LICENSE_FILES:=COPYING
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libunistring
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=libunistring
  24. URL:=http://www.gnu.org/software/libunistring/
  25. endef
  26. define Package/libunistring/description
  27. This library provides functions for manipulating Unicode strings and for manipulating C strings according to the Unicode standard.
  28. endef
  29. TARGET_CFLAGS += $(FPIC)
  30. CONFIGURE_ARGS += \
  31. --enable-shared \
  32. --enable-static \
  33. --without-libiconv-prefix \
  34. --without-libpth-prefix
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/include
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  38. $(INSTALL_DIR) $(1)/usr/include/unistring
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/unistring/*.h $(1)/usr/include/unistring/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunistring.{a,so*} $(1)/usr/lib/
  42. endef
  43. define Package/libunistring/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunistring.so.* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libunistring))