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