No Description

Makefile 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.29
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/libidn
  13. PKG_MD5SUM:=2b67bb507207af379f9461e1307dc84b
  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_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))