You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.5 KiB

  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.6
  10. PKG_RELEASE:=1
  11. PKG_HASH:=9625eec2507f4789ebb6fc48ebda98be0e0168979a2f68aa8b680bf8eeabbd47
  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))