Makefile 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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.37.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a944b069ac70c3e574c25def6e1d6b2f
  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:= WITH_GNUTLS WITH_OPENSSL WITHOUT_SSL
  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. include ${ADK_TOPDIR}/mk/package.mk
  32. $(eval $(call PKG_template,CURL,curl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  33. $(eval $(call PKG_template,LIBCURL,libcurl,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBCURL},${PKGSD_LIBCURL},${PKGSC_LIBCURL},${PKG_OPTS}))
  34. ifeq (${ADK_PACKAGE_LIBCURL_WITHOUT_SSL},y)
  35. CONFIGURE_ARGS+= --without-ssl \
  36. --without-gnutls \
  37. --without-axtls
  38. endif
  39. ifeq (${ADK_PACKAGE_LIBCURL_WITH_OPENSSL},y)
  40. CONFIGURE_ARGS+= --with-ssl="${STAGING_TARGET_DIR}/usr" \
  41. --without-gnutls \
  42. --without-axtls
  43. endif
  44. ifeq (${ADK_PACKAGE_LIBCURL_WITH_GNUTLS},y)
  45. CONFIGURE_ARGS+= --with-gnutls="${STAGING_TARGET_DIR}/usr" \
  46. --without-ssl \
  47. --without-axtls
  48. endif
  49. CONFIGURE_ENV+= curl_typeof_curl_socklen_t=socklen_t
  50. CONFIGURE_ARGS+= --disable-thread \
  51. --enable-cookies \
  52. --enable-crypto-auth \
  53. --enable-nonblocking \
  54. --enable-file \
  55. --enable-ftp \
  56. --enable-http \
  57. --enable-proxy \
  58. --disable-symbol-hiding \
  59. --disable-ares \
  60. --disable-dict \
  61. --disable-gopher \
  62. --disable-ldap \
  63. --disable-smtp \
  64. --disable-imap \
  65. --disable-ldaps \
  66. --disable-manual \
  67. --disable-sspi \
  68. --disable-telnet \
  69. --disable-verbose \
  70. --without-libssh2 \
  71. --without-librtmp \
  72. --without-libidn \
  73. --with-random="/dev/urandom" \
  74. --with-ca-bundle="/etc/ssl/cert.pem"
  75. ifneq (${ADK_PACKAGE_CURL_WITH_IPV6},)
  76. CONFIGURE_ARGS+= --enable-ipv6
  77. else
  78. CONFIGURE_ARGS+= --disable-ipv6
  79. endif
  80. curl-install:
  81. ${INSTALL_DIR} ${IDIR_CURL}/usr/bin
  82. ${INSTALL_BIN} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin
  83. libcurl-install:
  84. ${INSTALL_DIR} ${IDIR_LIBCURL}/usr/lib
  85. ${CP} ${WRKINST}/usr/lib/libcurl.so* ${IDIR_LIBCURL}/usr/lib
  86. include ${ADK_TOPDIR}/mk/pkg-bottom.mk