Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6dfb911a254a1b5ca8b534b98f2196aa
  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_DESCR_LIB:= a client-side URL transfer library
  15. PKG_SECTION_LIB:= libs
  16. PKG_DEPENDS_LIB:= libopenssl zlib
  17. PKG_DESCR_LIB_DEV:= development files for libcurl
  18. PKG_SECTION_LIB_DEV:= devel
  19. PKG_FLAVOURS:= WITH_IPV6
  20. PKGFD_WITH_IPV6:= enable IPv6 support
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,CURL,curl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. $(eval $(call PKG_template,LIBCURL,libcurl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_LIB},${PKG_DESCR_LIB},${PKG_SECTION_LIB}))
  24. $(eval $(call PKG_template,LIBCURL_DEV,libcurl-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_LIB_DEV},${PKG_SECTION_LIB_DEV}))
  25. SUB_INSTALLS-y:=
  26. SUB_INSTALLS-m:=
  27. SUB_INSTALLS-${ADK_PACKAGE_CURL}+= curl-install
  28. SUB_INSTALLS-${ADK_PACKAGE_LIBCURL_DEV}+= libcurl-dev-install
  29. CONFIGURE_ENV+= curl_typeof_curl_socklen_t=socklen_t
  30. CONFIGURE_ARGS+= --disable-thread \
  31. --enable-cookies \
  32. --enable-crypto-auth \
  33. --enable-nonblocking \
  34. --enable-file \
  35. --enable-ftp \
  36. --enable-http \
  37. --disable-ares \
  38. --disable-dict \
  39. --disable-gopher \
  40. --disable-ldap \
  41. --disable-manual \
  42. --disable-sspi \
  43. --disable-telnet \
  44. --disable-verbose \
  45. --with-random="/dev/urandom" \
  46. --with-ssl="${STAGING_DIR}/usr" \
  47. --without-ca-bundle \
  48. --without-gnutls \
  49. --without-libidn
  50. ifneq (${ADK_PACKAGE_CURL_WITH_IPV6},)
  51. CONFIGURE_ARGS+= --enable-ipv6
  52. else
  53. CONFIGURE_ARGS+= --disable-ipv6
  54. endif
  55. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  56. ${INSTALL_DIR} ${IDIR_LIBCURL}/usr/lib
  57. ${CP} ${WRKINST}/usr/lib/libcurl.so* ${IDIR_LIBCURL}/usr/lib/
  58. curl-install:
  59. ${INSTALL_DIR} ${IDIR_CURL}/usr/bin
  60. ${INSTALL_BIN} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin/
  61. libcurl-dev-install:
  62. ${INSTALL_DIR} ${IDIR_LIBCURL_DEV}/usr/include/curl
  63. ${CP} ${WRKINST}/usr/include/curl/*.h \
  64. ${IDIR_LIBCURL_DEV}/usr/include/curl/
  65. include ${TOPDIR}/mk/pkg-bottom.mk