Makefile 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= curl
  5. PKG_VERSION:= 8.1.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 08a948e061929645597c1ef7194e07b308b22084ff03fa7400b465e6c05149e5
  8. PKG_DESCR:= client-side url transfer tool
  9. PKG_SECTION:= net/http
  10. PKG_DEPENDS:= libcurl
  11. PKG_BUILDDEP:= zlib
  12. PKG_NEEDS:= threads
  13. PKG_URL:= https://curl.se/
  14. PKG_SITES:= https://curl.se/download/
  15. PKG_LIBNAME:= libcurl
  16. PKG_OPTS:= dev
  17. PKG_SUBPKGS:= CURL LIBCURL
  18. PKGSD_LIBCURL:= client-side url transfer library
  19. PKGSC_LIBCURL:= libs/net
  20. PKGSS_LIBCURL:= zlib
  21. PKG_FLAVOURS_CURL:= WITH_IPV6
  22. PKGFD_WITH_IPV6:= enable ipv6 support
  23. PKG_CHOICES_CURL:= WITH_LIBRESSL WITH_GNUTLS WITH_WOLFSSL WITHOUT_SSL
  24. PKGCD_WITH_LIBRESSL:= use libressl for crypto
  25. PKGCS_WITH_LIBRESSL:= libressl ca-certificates
  26. PKGCB_WITH_LIBRESSL:= libressl
  27. PKGCD_WITH_GNUTLS:= use gnutls for crypto
  28. PKGCS_WITH_GNUTLS:= libgnutls ca-certificates
  29. PKGCB_WITH_GNUTLS:= gnutls
  30. PKGCD_WITH_WOLFSSL:= use wolfssl for crypto
  31. PKGCS_WITH_WOLFSSL:= wolfssl ca-certificates
  32. PKGCB_WITH_WOLFSSL:= wolfssl
  33. PKGCD_WITHOUT_SSL:= use no ssl
  34. include ${ADK_TOPDIR}/mk/host.mk
  35. include ${ADK_TOPDIR}/mk/package.mk
  36. $(eval $(call HOST_template,CURL,curl,${PKG_VERSION}-${PKG_RELEASE}))
  37. $(eval $(call PKG_template,CURL,curl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  38. $(eval $(call PKG_template,LIBCURL,libcurl,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBCURL},${PKGSD_LIBCURL},${PKGSC_LIBCURL},${PKG_OPTS}))
  39. HOST_CONFIGURE_ARGS+= --without-ssl
  40. ifeq (${ADK_PACKAGE_CURL_WITH_LIBRESSL},y)
  41. CONFIGURE_ARGS+= --with-openssl="${STAGING_TARGET_DIR}/usr" \
  42. --without-gnutls \
  43. --without-axtls
  44. endif
  45. ifeq (${ADK_PACKAGE_CURL_WITH_GNUTLS},y)
  46. CONFIGURE_ARGS+= --with-gnutls="${STAGING_TARGET_DIR}/usr" \
  47. --without-openssl \
  48. --without-axtls
  49. endif
  50. ifeq (${ADK_PACKAGE_CURL_WITH_WOLFSSL},y)
  51. CONFIGURE_ARGS+= --with-cyassl="${STAGING_TARGET_DIR}/usr" \
  52. --without-openssl \
  53. --without-gnutls \
  54. --without-axtls
  55. endif
  56. ifeq (${ADK_PACKAGE_CURL_WITHOUT_SSL},y)
  57. CONFIGURE_ARGS+= --without-ssl \
  58. --without-gnutls \
  59. --without-axtls
  60. endif
  61. CONFIGURE_ENV+= curl_typeof_curl_socklen_t=socklen_t
  62. CONFIGURE_ARGS+= --enable-cookies \
  63. --enable-crypto-auth \
  64. --enable-nonblocking \
  65. --enable-file \
  66. --enable-ftp \
  67. --enable-http \
  68. --enable-proxy \
  69. --disable-curldebug \
  70. --disable-ntlm-wb \
  71. --disable-symbol-hiding \
  72. --disable-ares \
  73. --disable-dict \
  74. --disable-gopher \
  75. --disable-ldap \
  76. --disable-smtp \
  77. --disable-imap \
  78. --disable-ldaps \
  79. --disable-manual \
  80. --disable-sspi \
  81. --disable-telnet \
  82. --disable-verbose \
  83. --without-libssh2 \
  84. --without-librtmp \
  85. --without-libidn \
  86. --with-ca-path="/etc/ssl/certs" \
  87. --with-random="/dev/urandom" \
  88. --without-ca-bundle
  89. ifneq (${ADK_PACKAGE_CURL_WITH_IPV6},)
  90. CONFIGURE_ARGS+= --enable-ipv6
  91. else
  92. CONFIGURE_ARGS+= --disable-ipv6
  93. endif
  94. curl-install:
  95. ${INSTALL_DIR} ${IDIR_CURL}/usr/bin
  96. ${INSTALL_BIN} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin
  97. libcurl-install:
  98. ${INSTALL_DIR} ${IDIR_LIBCURL}/usr/lib
  99. ${CP} ${WRKINST}/usr/lib/libcurl.so* ${IDIR_LIBCURL}/usr/lib
  100. include ${ADK_TOPDIR}/mk/host-bottom.mk
  101. include ${ADK_TOPDIR}/mk/pkg-bottom.mk