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.

92 lines
2.3 KiB

  1. #
  2. # Copyright (C) 2017-2018 Daniel Engberg <daniel.engberg.lists@pyret.net>
  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:=libidn2
  9. PKG_VERSION:=2.0.5
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0-or-later LGPL-3.0-or-later
  12. PKG_LICENSE_FILES:=COPYING COPYINGv2 COPYING.LESSERv3
  13. PKG_SOURCE_URL:=@GNU/libidn
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_HASH:=53f69170886f1fa6fa5b332439c7a77a7d22626a82ef17e2c1224858bb4ca2b8
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. define Package/idn2/Default
  20. SECTION:=net
  21. CATEGORY:=Network
  22. URL:=http://www.gnu.org/software/libidn/
  23. endef
  24. define Package/idn2/Default/description
  25. Libidn2 is a free software implementation of IDNA2008,
  26. Punycode and TR46 in library form. It contains
  27. functionality to convert internationalized domain
  28. names to and from ASCII Compatible Encoding (ACE),
  29. following the IDNA2008 and TR46 standards.
  30. endef
  31. define Package/idn2
  32. $(call Package/idn2/Default)
  33. SUBMENU:=IP Addresses and Names
  34. TITLE:=GNU IDN2 (Internationalized Domain Name) tool
  35. DEPENDS:=+libidn2
  36. endef
  37. define Package/idn2/description
  38. $(call Package/idn2/Default/description)
  39. Command line tool using libidn2
  40. endef
  41. define Package/libidn2
  42. SECTION:=libs
  43. CATEGORY:=Libraries
  44. DEPENDS:=+libunistring $(ICONV_DEPENDS) $(INTL_DEPENDS)
  45. TITLE:=International domain name library (IDNA2008, Punycode and TR46)
  46. URL:=https://www.gnu.org/software/libidn/#libidn2
  47. endef
  48. define Package/libidn2/description
  49. $(call Package/idn2/Default/description)
  50. Library only package
  51. endef
  52. CONFIGURE_ARGS += \
  53. --disable-rpath \
  54. --disable-doc
  55. define Build/InstallDev
  56. $(INSTALL_DIR) $(1)/usr/include
  57. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/idn2.h $(1)/usr/include
  58. $(INSTALL_DIR) $(1)/usr/lib
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so}* $(1)/usr/lib/
  60. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libidn2.pc $(1)/usr/lib/pkgconfig/
  62. endef
  63. define Package/idn2/install
  64. $(INSTALL_DIR) $(1)/usr/bin
  65. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  66. endef
  67. define Package/libidn2/install
  68. $(INSTALL_DIR) $(1)/usr/lib/
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  70. endef
  71. $(eval $(call BuildPackage,idn2))
  72. $(eval $(call BuildPackage,libidn2))