Makefile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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:= 7.40.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= c2e0705a13e53f8f924d1eaeb2ab94f59a9e162007c489b9ab0c96238bddf84b
  8. PKG_DESCR:= client-side url transfer tool
  9. PKG_SECTION:= net/http
  10. PKG_DEPENDS:= libcurl
  11. PKG_BUILDDEP:= zlib
  12. PKG_URL:= http://curl.haxx.se/
  13. PKG_SITES:= http://curl.haxx.se/download/
  14. PKG_LIBNAME:= libcurl
  15. PKG_OPTS:= dev
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  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_LIBCURL:= WITHOUT_SSL WITH_GNUTLS WITH_OPENSSL WITH_CYASSL
  24. PKGCD_WITHOUT_SSL:= use no ssl
  25. PKGCD_WITH_OPENSSL:= use openssl for crypto
  26. PKGCS_WITH_OPENSSL:= libopenssl ca-certificates libgmp
  27. PKGCB_WITH_OPENSSL:= openssl
  28. PKGCD_WITH_GNUTLS:= use gnutls for crypto
  29. PKGCS_WITH_GNUTLS:= libgnutls ca-certificates libgmp
  30. PKGCB_WITH_GNUTLS:= gnutls
  31. PKGCD_WITH_CYASSL:= use cyassl for crypto
  32. PKGCS_WITH_CYASSL:= cyassl ca-certificates
  33. PKGCB_WITH_CYASSL:= cyassl
  34. include ${ADK_TOPDIR}/mk/package.mk
  35. $(eval $(call PKG_template,CURL,curl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  36. $(eval $(call PKG_template,LIBCURL,libcurl,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBCURL},${PKGSD_LIBCURL},${PKGSC_LIBCURL},${PKG_OPTS}))
  37. ifeq (${ADK_PACKAGE_LIBCURL_WITHOUT_SSL},y)
  38. CONFIGURE_ARGS+= --without-ssl \
  39. --without-gnutls \
  40. --without-axtls
  41. endif
  42. ifeq (${ADK_PACKAGE_LIBCURL_WITH_OPENSSL},y)
  43. CONFIGURE_ARGS+= --with-ssl="${STAGING_TARGET_DIR}/usr" \
  44. --without-gnutls \
  45. --without-axtls
  46. endif
  47. ifeq (${ADK_PACKAGE_LIBCURL_WITH_GNUTLS},y)
  48. CONFIGURE_ARGS+= --with-gnutls="${STAGING_TARGET_DIR}/usr" \
  49. --without-ssl \
  50. --without-axtls
  51. endif
  52. ifeq (${ADK_PACKAGE_LIBCURL_WITH_CYASSL},y)
  53. CONFIGURE_ARGS+= --with-cyassl="${STAGING_TARGET_DIR}/usr" \
  54. --without-ssl \
  55. --without-gnutls \
  56. --without-axtls
  57. endif
  58. CONFIGURE_ENV+= curl_typeof_curl_socklen_t=socklen_t
  59. CONFIGURE_ARGS+= --enable-cookies \
  60. --enable-crypto-auth \
  61. --enable-nonblocking \
  62. --enable-file \
  63. --enable-ftp \
  64. --enable-http \
  65. --enable-proxy \
  66. --disable-symbol-hiding \
  67. --disable-ares \
  68. --disable-dict \
  69. --disable-gopher \
  70. --disable-ldap \
  71. --disable-smtp \
  72. --disable-imap \
  73. --disable-ldaps \
  74. --disable-manual \
  75. --disable-sspi \
  76. --disable-telnet \
  77. --disable-verbose \
  78. --without-libssh2 \
  79. --without-librtmp \
  80. --without-libidn \
  81. --with-random="/dev/urandom" \
  82. --with-ca-bundle="/etc/ssl/cert.pem"
  83. ifneq (${ADK_PACKAGE_CURL_WITH_IPV6},)
  84. CONFIGURE_ARGS+= --enable-ipv6
  85. else
  86. CONFIGURE_ARGS+= --disable-ipv6
  87. endif
  88. curl-install:
  89. ${INSTALL_DIR} ${IDIR_CURL}/usr/bin
  90. ${INSTALL_BIN} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin
  91. libcurl-install:
  92. ${INSTALL_DIR} ${IDIR_LIBCURL}/usr/lib
  93. ${CP} ${WRKINST}/usr/lib/libcurl.so* ${IDIR_LIBCURL}/usr/lib
  94. include ${ADK_TOPDIR}/mk/pkg-bottom.mk