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.

62 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2009-2014 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.28
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/libidn
  13. PKG_MD5SUM:=43a6f14b16559e10a492acc65c4b0acc
  14. PKG_LICENSE:=GPLv2 GPLv3 LGPLv2.1 LGPLv3 APACHEv2
  15. PKG_LICENSE_FILES:=COPYING COPYINGv2 COPYINGv3 COPYING.LESSERv2 COPYING.LESSERv3 java/LICENSE-2.0.txt
  16. PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
  17. PKG_FIXUP:=autoreconf
  18. PKG_REMOVE_FILES:=GNUmakefile aclocal.m4
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libidn
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Stringprep, Punycode and IDNA implementation
  25. URL:=http://www.gnu.org/software/libidn/
  26. endef
  27. define Package/libidn/description
  28. GNU Libidn is a fully documented implementation of the Stringprep,
  29. Punycode and IDNA specifications. Libidn's purpose is to encode and
  30. decode internationalized domain names.
  31. endef
  32. TARGET_CFLAGS += $(FPIC)
  33. CONFIGURE_ARGS += \
  34. --enable-shared \
  35. --enable-static \
  36. MAKE_FLAGS += \
  37. CC="$(TARGET_CC)" \
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include
  40. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libidn.{a,so*} $(1)/usr/lib/
  43. endef
  44. define Package/libidn/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libidn.so.* $(1)/usr/lib/
  47. endef
  48. $(eval $(call BuildPackage,libidn))