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.

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