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.

119 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.40.0
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://gnunet.org/sites/default/files
  13. PKG_MD5SUM:=f816deb0c1401c841780ec6b91985a14
  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. --enable-shared \
  45. --enable-static \
  46. --without-axtls \
  47. --without-libssh2 \
  48. --without-libmetalink \
  49. --without-winidn \
  50. --without-librtmp \
  51. --without-nghttp2 \
  52. --without-nss \
  53. --without-cyassl \
  54. --without-polarssl \
  55. --without-ssl \
  56. --without-winssl \
  57. --without-darwinssl \
  58. --disable-ares \
  59. --disable-sspi \
  60. --disable-ntlm-wb \
  61. --disable-ldap \
  62. --disable-ldaps \
  63. --disable-rtsp \
  64. --disable-dict \
  65. --disable-telnet \
  66. --disable-tftp \
  67. --disable-pop3 \
  68. --disable-imap \
  69. --disable-smtp \
  70. --disable-gopher \
  71. --disable-file \
  72. --disable-ftp \
  73. --disable-smb \
  74. --disable-debug \
  75. --disable-manual \
  76. --disable-verbose
  77. define Build/Compile
  78. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  79. DESTDIR="$(PKG_INSTALL_DIR)" \
  80. CC="$(TARGET_CC)" \
  81. install
  82. endef
  83. define Build/InstallDev
  84. $(INSTALL_DIR) $(2)/bin $(1)/usr/bin $(1)/usr/include/gnurl $(1)/usr/lib $(1)/usr/lib/pkgconfig
  85. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnurl-config $(1)/usr/bin/
  86. $(CP) $(PKG_INSTALL_DIR)/usr/include/curl/*.h $(1)/usr/include/gnurl
  87. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnurl.{a,so*} $(1)/usr/lib/
  88. $(CP) $(PKG_BUILD_DIR)/libgnurl.pc $(1)/usr/lib/pkgconfig/
  89. $(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/gnurl-config
  90. [ -n "$(TARGET_LDFLAGS)" ] && $(SED) 's#$(TARGET_LDFLAGS)##g' $(1)/usr/lib/pkgconfig/libgnurl.pc || true
  91. $(LN) $(STAGING_DIR)/usr/bin/gnurl-config $(2)/bin/
  92. endef
  93. define Package/gnurl/install
  94. $(INSTALL_DIR) $(1)/usr/bin
  95. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnurl $(1)/usr/bin/
  96. endef
  97. define Package/libgnurl/install
  98. $(INSTALL_DIR) $(1)/usr/lib
  99. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnurl.so.* $(1)/usr/lib/
  100. endef
  101. $(eval $(call BuildPackage,gnurl))
  102. $(eval $(call BuildPackage,libgnurl))