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.

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