Makefile 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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.28.0
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= cbdc0a79bdf6e657dd387c3d88d802e3
  8. PKG_DESCR:= a 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. PKG_SUBPKGS:= CURL LIBCURL
  17. PKGSD_LIBCURL:= a client-side URL transfer library
  18. PKGSC_LIBCURL:= libs
  19. PKGSS_LIBCURL:= zlib
  20. PKG_FLAVOURS_CURL:= WITH_IPV6
  21. PKGFD_WITH_IPV6:= enable IPv6 support
  22. PKG_CHOICES_LIBCURL:= WITH_GNUTLS WITH_OPENSSL WITHOUT_SSL
  23. PKGCD_WITHOUT_SSL:= use no SSL
  24. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  25. PKGCS_WITH_OPENSSL:= libopenssl ca-certificates libgmp
  26. PKGCB_WITH_OPENSSL:= openssl
  27. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  28. PKGCS_WITH_GNUTLS:= libgnutls ca-certificates libgmp
  29. PKGCB_WITH_GNUTLS:= gnutls
  30. ifeq ($(ADK_STATIC),y)
  31. PKG_OPTS+= libmix
  32. endif
  33. include ${TOPDIR}/mk/package.mk
  34. $(eval $(call PKG_template,CURL,curl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  35. $(eval $(call PKG_template,LIBCURL,libcurl,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBCURL},${PKGSD_LIBCURL},${PKGSC_LIBCURL},${PKG_OPTS}))
  36. ifeq (${ADK_PACKAGE_LIBCURL_WITHOUT_SSL},y)
  37. CONFIGURE_ARGS+= --without-ssl \
  38. --without-gnutls \
  39. --without-axtls
  40. endif
  41. ifeq (${ADK_PACKAGE_LIBCURL_WITH_OPENSSL},y)
  42. CONFIGURE_ARGS+= --with-ssl="${STAGING_TARGET_DIR}/usr" \
  43. --without-gnutls \
  44. --without-axtls
  45. endif
  46. ifeq (${ADK_PACKAGE_LIBCURL_WITH_GNUTLS},y)
  47. CONFIGURE_ARGS+= --with-gnutls="${STAGING_TARGET_DIR}/usr" \
  48. --without-ssl \
  49. --without-axtls
  50. endif
  51. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  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. --disable-ares \
  61. --disable-dict \
  62. --disable-gopher \
  63. --disable-ldap \
  64. --disable-manual \
  65. --disable-sspi \
  66. --disable-telnet \
  67. --disable-verbose \
  68. --with-random="/dev/urandom" \
  69. --with-ca-bundle="/etc/ssl/cert.pem" \
  70. --without-libidn
  71. ifneq (${ADK_PACKAGE_CURL_WITH_IPV6},)
  72. CONFIGURE_ARGS+= --enable-ipv6
  73. else
  74. CONFIGURE_ARGS+= --disable-ipv6
  75. endif
  76. curl-install:
  77. ${INSTALL_DIR} ${IDIR_CURL}/usr/bin
  78. ${INSTALL_BIN} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin
  79. libcurl-install:
  80. ${INSTALL_DIR} ${IDIR_LIBCURL}/usr/lib
  81. ${CP} ${WRKINST}/usr/lib/libcurl.so* ${IDIR_LIBCURL}/usr/lib
  82. include ${TOPDIR}/mk/pkg-bottom.mk