1
0

Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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_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:= 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. SUB_INSTALLS-y:=
  27. SUB_INSTALLS-m:=
  28. SUB_INSTALLS-${ADK_PACKAGE_CURL}+= curl-install
  29. SUB_INSTALLS-${ADK_PACKAGE_LIBCURL_DEV}+= libcurl-dev-install
  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. ifneq (${ADK_PACKAGE_CURL_WITH_IPV6},)
  52. CONFIGURE_ARGS+= --enable-ipv6
  53. else
  54. CONFIGURE_ARGS+= --disable-ipv6
  55. endif
  56. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  57. ${INSTALL_DIR} ${IDIR_LIBCURL}/usr/lib
  58. ${CP} ${WRKINST}/usr/lib/libcurl.so* ${IDIR_LIBCURL}/usr/lib/
  59. curl-install:
  60. ${INSTALL_DIR} ${IDIR_CURL}/usr/bin
  61. ${INSTALL_BIN} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin/
  62. libcurl-dev-install:
  63. ${INSTALL_DIR} ${IDIR_LIBCURL_DEV}/usr/include/curl
  64. ${CP} ${WRKINST}/usr/include/curl/*.h \
  65. ${IDIR_LIBCURL_DEV}/usr/include/curl/
  66. include ${TOPDIR}/mk/pkg-bottom.mk