1
0

Makefile 2.4 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.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. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  27. CONFIGURE_ENV+= curl_typeof_curl_socklen_t=socklen_t
  28. CONFIGURE_ARGS+= --disable-thread \
  29. --enable-cookies \
  30. --enable-crypto-auth \
  31. --enable-nonblocking \
  32. --enable-file \
  33. --enable-ftp \
  34. --enable-http \
  35. --disable-ares \
  36. --disable-dict \
  37. --disable-gopher \
  38. --disable-ldap \
  39. --disable-manual \
  40. --disable-sspi \
  41. --disable-telnet \
  42. --disable-verbose \
  43. --with-random="/dev/urandom" \
  44. --with-ssl="${STAGING_TARGET_DIR}/usr" \
  45. --without-ca-bundle \
  46. --without-gnutls \
  47. --without-libidn
  48. ifneq (${ADK_PACKAGE_CURL_WITH_IPV6},)
  49. CONFIGURE_ARGS+= --enable-ipv6
  50. else
  51. CONFIGURE_ARGS+= --disable-ipv6
  52. endif
  53. curl-install:
  54. ${INSTALL_DIR} ${IDIR_CURL}/usr/bin
  55. ${INSTALL_BIN} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin
  56. libcurl-install:
  57. ${INSTALL_DIR} ${IDIR_LIBCURL}/usr/lib
  58. ${CP} ${WRKINST}/usr/lib/libcurl.so* ${IDIR_LIBCURL}/usr/lib
  59. libcurl-dev-install:
  60. ${INSTALL_DIR} ${IDIR_LIBCURL_DEV}/usr/include/curl
  61. ${CP} ${WRKINST}/usr/include/curl/*.h \
  62. ${IDIR_LIBCURL_DEV}/usr/include/curl
  63. ${INSTALL_DIR} ${IDIR_LIBCURL_DEV}/usr/bin
  64. ${INSTALL_BIN} ${WRKINST}/usr/bin/curl-config \
  65. ${IDIR_LIBCURL_DEV}/usr/bin
  66. include ${TOPDIR}/mk/pkg-bottom.mk