1
0

Makefile 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= curl
  5. PKG_VERSION:= 7.36.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 643a7030b27449e76413d501d4b8eb57
  8. PKG_DESCR:= client-side URL transfer tool
  9. PKG_SECTION:= www
  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
  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. ifeq ($(ADK_STATIC),y)
  32. PKG_OPTS+= libmix
  33. endif
  34. include ${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. CONFIGURE_ENV+= curl_typeof_curl_socklen_t=socklen_t
  53. CONFIGURE_ARGS+= --disable-thread \
  54. --enable-cookies \
  55. --enable-crypto-auth \
  56. --enable-nonblocking \
  57. --enable-file \
  58. --enable-ftp \
  59. --enable-http \
  60. --enable-proxy \
  61. --disable-symbol-hiding \
  62. --disable-ares \
  63. --disable-dict \
  64. --disable-gopher \
  65. --disable-ldap \
  66. --disable-smtp \
  67. --disable-imap \
  68. --disable-ldaps \
  69. --disable-manual \
  70. --disable-sspi \
  71. --disable-telnet \
  72. --disable-verbose \
  73. --without-libssh2 \
  74. --without-librtmp \
  75. --without-libidn \
  76. --with-random="/dev/urandom" \
  77. --with-ca-bundle="/etc/ssl/cert.pem"
  78. ifneq (${ADK_PACKAGE_CURL_WITH_IPV6},)
  79. CONFIGURE_ARGS+= --enable-ipv6
  80. else
  81. CONFIGURE_ARGS+= --disable-ipv6
  82. endif
  83. curl-install:
  84. ${INSTALL_DIR} ${IDIR_CURL}/usr/bin
  85. ${INSTALL_BIN} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin
  86. libcurl-install:
  87. ${INSTALL_DIR} ${IDIR_LIBCURL}/usr/lib
  88. ${CP} ${WRKINST}/usr/lib/libcurl.so* ${IDIR_LIBCURL}/usr/lib
  89. include ${TOPDIR}/mk/pkg-bottom.mk