Makefile 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.19.7
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ecb2e37e45c9933e2a963cabe03670ab
  8. PKG_DESCR:= a client-side URL transfer tool
  9. PKG_SECTION:= net
  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. http://www.mirrorspace.org/curl/ \
  15. http://curl.mirror.internet.tp/download/ \
  16. ftp://ftp.sunet.se/pub/www/utilities/curl/ \
  17. ftp://ftp.planetmirror.com/pub/curl/ \
  18. http://www.mirrormonster.com/curl/download/ \
  19. http://curl.mirrors.cyberservers.net/download/
  20. PKG_DESCR_LIB:= a client-side URL transfer library
  21. PKG_SECTION_LIB:= libs
  22. PKG_DEPENDS_LIB:= libopenssl zlib
  23. PKG_DESCR_LIB_DEV:= development files for libcurl
  24. PKG_SECTION_LIB_DEV:= devel
  25. include ${TOPDIR}/mk/package.mk
  26. $(eval $(call PKG_template,CURL,curl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. $(eval $(call PKG_template,LIBCURL,libcurl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_LIB},${PKG_DESCR_LIB},${PKG_SECTION_LIB}))
  28. $(eval $(call PKG_template,LIBCURL_DEV,libcurl-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_LIB_DEV},${PKG_SECTION_LIB_DEV}))
  29. CONFIGURE_STYLE:= gnu
  30. CONFIGURE_ENV+= curl_typeof_curl_socklen_t=socklen_t
  31. CONFIGURE_ARGS+= --disable-thread \
  32. --enable-cookies \
  33. --enable-crypto-auth \
  34. --enable-nonblocking \
  35. --enable-file \
  36. --enable-ftp \
  37. --enable-http \
  38. --disable-ares \
  39. --disable-dict \
  40. --disable-gopher \
  41. --disable-ldap \
  42. --disable-manual \
  43. --disable-sspi \
  44. --disable-telnet \
  45. --disable-verbose \
  46. --with-random="/dev/urandom" \
  47. --with-ssl="${STAGING_DIR}/usr" \
  48. --without-ca-bundle \
  49. --without-gnutls \
  50. --without-libidn
  51. BUILD_STYLE:= auto
  52. INSTALL_STYLE:= auto
  53. post-install:
  54. ${INSTALL_DIR} ${IDIR_CURL}/usr/bin ${IDIR_LIBCURL}/usr/lib
  55. ${CP} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin/
  56. ${CP} ${WRKINST}/usr/lib/libcurl.so* ${IDIR_LIBCURL}/usr/lib/
  57. ${INSTALL_DIR} ${IDIR_LIBCURL_DEV}/usr/include/curl
  58. ${CP} ${WRKINST}/usr/include/curl/*.h ${IDIR_LIBCURL_DEV}/usr/include/curl/
  59. include ${TOPDIR}/mk/pkg-bottom.mk