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.

90 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2009-2016 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:=libidn
  9. PKG_VERSION:=1.35
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/libidn
  13. PKG_HASH:=f11af1005b46b7b15d057d7f107315a1ad46935c7fcdf243c16e46ec14f0fe1e
  14. PKG_LICENSE:=GPL-2.0+ GPL-3.0+ LGPL-2.1+ LGPL-3.0+ Apache-2.0
  15. PKG_LICENSE_FILES:=COPYING COPYINGv2 COPYINGv3 COPYING.LESSERv2 COPYING.LESSERv3 java/LICENSE-2.0.txt
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/idn/Default
  19. SECTION:=net
  20. CATEGORY:=Network
  21. URL:=http://www.gnu.org/software/libidn/
  22. endef
  23. define Package/idn/Default/description
  24. GNU Libidn is a fully documented implementation of the Stringprep,
  25. Punycode and IDNA specifications. Libidn's purpose is to encode and
  26. decode internationalized domain names.
  27. endef
  28. define Package/idn
  29. $(call Package/idn/Default)
  30. SUBMENU:=IP Addresses and Names
  31. TITLE:=GNU IDN (Internationalized Domain Name) tool
  32. DEPENDS:=+libidn
  33. endef
  34. define Package/idn/description
  35. $(call Package/idn/Default/description)
  36. Command line tool using libidn
  37. endef
  38. define Package/libidn
  39. $(call Package/idn/Default)
  40. SECTION:=libs
  41. CATEGORY:=Libraries
  42. TITLE:=Stringprep, Punycode and IDNA implementation
  43. endef
  44. define Package/libidn/description
  45. $(call Package/idn/Default/description)
  46. Library only package
  47. endef
  48. TARGET_CFLAGS += $(FPIC)
  49. CONFIGURE_ARGS += \
  50. --disable-rpath \
  51. --disable-doc
  52. define Build/InstallDev
  53. $(INSTALL_DIR) $(1)/usr/include
  54. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libidn.{a,so*} $(1)/usr/lib/
  57. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libidn.pc $(1)/usr/lib/pkgconfig/
  59. endef
  60. define Package/idn/install
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  63. endef
  64. define Package/libidn/install
  65. $(INSTALL_DIR) $(1)/usr/lib
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libidn.so* $(1)/usr/lib/
  67. endef
  68. $(eval $(call BuildPackage,idn))
  69. $(eval $(call BuildPackage,libidn))