Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.21.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 571a39f70c4c18521cbba5a60f2416c5
  8. PKG_DESCR:= a client-side URL transfer tool
  9. PKG_SECTION:= www
  10. PKG_DEPENDS:= libcurl
  11. PKG_BUILDDEP:= openssl zlib
  12. PKG_URL:= http://curl.haxx.se/
  13. PKG_SITES:= http://curl.haxx.se/download/
  14. PKG_SUBPKGS:= CURL LIBCURL LIBCURL_DEV
  15. PKGSD_LIBCURL:= a client-side URL transfer library
  16. PKGSC_LIBCURL:= libs
  17. PKGSS_LIBCURL:= libopenssl zlib
  18. PKGSD_LIBCURL_DEV:= development files for libcurl
  19. PKGSC_LIBCURL_DEV:= devel
  20. PKG_FLAVOURS_CURL:= WITH_IPV6
  21. PKGFD_WITH_IPV6:= enable IPv6 support
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,CURL,curl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,LIBCURL,libcurl,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBCURL},${PKGSD_LIBCURL},${PKGSC_LIBCURL}))
  25. $(eval $(call PKG_template,LIBCURL_DEV,libcurl-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBCURL_DEV},${PKGSC_LIBCURL_DEV}))
  26. CONFIGURE_ENV+= curl_typeof_curl_socklen_t=socklen_t
  27. CONFIGURE_ARGS+= --disable-thread \
  28. --enable-cookies \
  29. --enable-crypto-auth \
  30. --enable-nonblocking \
  31. --enable-file \
  32. --enable-ftp \
  33. --enable-http \
  34. --disable-ares \
  35. --disable-dict \
  36. --disable-gopher \
  37. --disable-ldap \
  38. --disable-manual \
  39. --disable-sspi \
  40. --disable-telnet \
  41. --disable-verbose \
  42. --with-random="/dev/urandom" \
  43. --with-ssl="${STAGING_TARGET_DIR}/usr" \
  44. --without-ca-bundle \
  45. --without-gnutls \
  46. --without-libidn
  47. ifneq (${ADK_PACKAGE_CURL_WITH_IPV6},)
  48. CONFIGURE_ARGS+= --enable-ipv6
  49. else
  50. CONFIGURE_ARGS+= --disable-ipv6
  51. endif
  52. curl-install:
  53. ${INSTALL_DIR} ${IDIR_CURL}/usr/bin
  54. ${INSTALL_BIN} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin
  55. libcurl-install:
  56. ${INSTALL_DIR} ${IDIR_LIBCURL}/usr/lib
  57. ${CP} ${WRKINST}/usr/lib/libcurl.so* ${IDIR_LIBCURL}/usr/lib
  58. libcurl-dev-install:
  59. ${INSTALL_DIR} ${IDIR_LIBCURL_DEV}/usr/include/curl
  60. ${CP} ${WRKINST}/usr/include/curl/*.h \
  61. ${IDIR_LIBCURL_DEV}/usr/include/curl
  62. ${INSTALL_DIR} ${IDIR_LIBCURL_DEV}/usr/bin
  63. ${INSTALL_BIN} ${WRKINST}/usr/bin/curl-config \
  64. ${IDIR_LIBCURL_DEV}/usr/bin
  65. include ${TOPDIR}/mk/pkg-bottom.mk