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.

120 lines
2.9 KiB

  1. #
  2. # Copyright (C) 2007-2015 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:=gnurl
  9. PKG_VERSION:=7.53.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://gnunet.org/sites/default/files
  13. PKG_HASH:=cdac891a3253022b7fd75f6c71b279b5f35cc109f0b61d8068c79bca081802aa
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_FIXUP:=autoreconf
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/gnurl/Default
  20. SECTION:=net
  21. CATEGORY:=Network
  22. URL:=https://gnunet.org/gnurl
  23. MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  24. endef
  25. define Package/gnurl
  26. $(call Package/gnurl/Default)
  27. SUBMENU:=File Transfer
  28. DEPENDS:=+libgnurl
  29. TITLE:=A client-side HTTP/HTTPS transfer utility
  30. endef
  31. define Package/libgnurl
  32. $(call Package/gnurl/Default)
  33. SECTION:=libs
  34. CATEGORY:=Libraries
  35. DEPENDS:=+libgnutls +libidn +zlib
  36. TITLE:=A client-side HTTP/HTTPS transfer library
  37. endef
  38. TARGET_CFLAGS += $(FPIC)
  39. CONFIGURE_ARGS += \
  40. $(call autoconf_bool,CONFIG_IPV6,ipv6) \
  41. --with-gnutls="$(STAGING_DIR)/usr" \
  42. --with-libidn="$(STAGING_DIR)/usr" \
  43. --with-zlib="$(STAGING_DIR)/usr" \
  44. --with-ca-path="/etc/ssl/certs/" \
  45. --enable-shared \
  46. --enable-static \
  47. --without-axtls \
  48. --without-libssh2 \
  49. --without-libmetalink \
  50. --without-winidn \
  51. --without-librtmp \
  52. --without-nghttp2 \
  53. --without-nss \
  54. --without-cyassl \
  55. --without-polarssl \
  56. --without-ssl \
  57. --without-winssl \
  58. --without-darwinssl \
  59. --disable-ares \
  60. --disable-sspi \
  61. --disable-ntlm-wb \
  62. --disable-ldap \
  63. --disable-ldaps \
  64. --disable-rtsp \
  65. --disable-dict \
  66. --disable-telnet \
  67. --disable-tftp \
  68. --disable-pop3 \
  69. --disable-imap \
  70. --disable-smtp \
  71. --disable-gopher \
  72. --disable-file \
  73. --disable-ftp \
  74. --disable-smb \
  75. --disable-debug \
  76. --disable-manual \
  77. --disable-verbose
  78. define Build/Compile
  79. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  80. DESTDIR="$(PKG_INSTALL_DIR)" \
  81. CC="$(TARGET_CC)" \
  82. install
  83. endef
  84. define Build/InstallDev
  85. $(INSTALL_DIR) $(2)/bin $(1)/usr/bin $(1)/usr/include/gnurl $(1)/usr/lib $(1)/usr/lib/pkgconfig
  86. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnurl-config $(1)/usr/bin/
  87. $(CP) $(PKG_INSTALL_DIR)/usr/include/curl/*.h $(1)/usr/include/gnurl
  88. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnurl.{a,so*} $(1)/usr/lib/
  89. $(CP) $(PKG_BUILD_DIR)/libgnurl.pc $(1)/usr/lib/pkgconfig/
  90. $(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/gnurl-config
  91. [ -n "$(TARGET_LDFLAGS)" ] && $(SED) 's#$(TARGET_LDFLAGS)##g' $(1)/usr/lib/pkgconfig/libgnurl.pc || true
  92. $(LN) $(STAGING_DIR)/usr/bin/gnurl-config $(2)/bin/
  93. endef
  94. define Package/gnurl/install
  95. $(INSTALL_DIR) $(1)/usr/bin
  96. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnurl $(1)/usr/bin/
  97. endef
  98. define Package/libgnurl/install
  99. $(INSTALL_DIR) $(1)/usr/lib
  100. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnurl.so.* $(1)/usr/lib/
  101. endef
  102. $(eval $(call BuildPackage,gnurl))
  103. $(eval $(call BuildPackage,libgnurl))