Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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.20.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= d7df0507db48546661b155b612cac19c
  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. 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. SUB_INSTALLS-y:=
  30. SUB_INSTALLS-m:=
  31. SUB_INSTALLS-${ADK_PACKAGE_CURL}+= curl-install
  32. SUB_INSTALLS-${ADK_PACKAGE_LIBCURL_DEV}+= libcurl-dev-install
  33. CONFIGURE_ENV+= curl_typeof_curl_socklen_t=socklen_t
  34. CONFIGURE_ARGS+= --disable-thread \
  35. --enable-cookies \
  36. --enable-crypto-auth \
  37. --enable-nonblocking \
  38. --enable-file \
  39. --enable-ftp \
  40. --enable-http \
  41. --disable-ares \
  42. --disable-dict \
  43. --disable-gopher \
  44. --disable-ldap \
  45. --disable-manual \
  46. --disable-sspi \
  47. --disable-telnet \
  48. --disable-verbose \
  49. --with-random="/dev/urandom" \
  50. --with-ssl="${STAGING_DIR}/usr" \
  51. --without-ca-bundle \
  52. --without-gnutls \
  53. --without-libidn
  54. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  55. ${INSTALL_DIR} ${IDIR_LIBCURL}/usr/lib
  56. ${CP} ${WRKINST}/usr/lib/libcurl.so* ${IDIR_LIBCURL}/usr/lib/
  57. curl-install:
  58. ${INSTALL_DIR} ${IDIR_CURL}/usr/bin
  59. ${INSTALL_BIN} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin/
  60. libcurl-dev-install:
  61. ${INSTALL_DIR} ${IDIR_LIBCURL_DEV}/usr/include/curl
  62. ${CP} ${WRKINST}/usr/include/curl/*.h \
  63. ${IDIR_LIBCURL_DEV}/usr/include/curl/
  64. include ${TOPDIR}/mk/pkg-bottom.mk