1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 73a4b0e99596a09fa5924a4fb7e4b995a85fda0d18a2c02ab9cf134bebce04ee
10 PKG_DESCR
:= client-side url transfer tool
11 PKG_SECTION
:= net
/http
14 PKG_URL
:= https
://curl.se
/
15 PKG_SITES
:= https
://curl.se
/download
/
19 PKG_SUBPKGS
:= LIBCURL CURL
20 PKGSD_LIBCURL
:= client-side url transfer library
21 PKGSC_LIBCURL
:= libs
/net
23 PKGSD_CURL
:= client-side url transfer utiity
25 PKGSS_CURL
:= zlib libcurl
27 PKG_FLAVOURS_LIBCURL
:= WITH_IPV6
28 PKGFD_WITH_IPV6
:= enable ipv6 support
30 PKG_CHOICES_LIBCURL
:= WITH_OPENSSL WITH_LIBRESSL WITH_GNUTLS WITH_WOLFSSL WITHOUT_SSL
31 PKGCD_WITH_LIBRESSL
:= use libressl for crypto
32 PKGCS_WITH_LIBRESSL
:= libressl ca-certificates
33 PKGCB_WITH_LIBRESSL
:= libressl
34 PKGCD_WITH_OPENSSL
:= use libopenssl for crypto
35 PKGCS_WITH_OPENSSL
:= libopenssl ca-certificates
36 PKGCB_WITH_OPENSSL
:= openssl
37 PKGCD_WITH_GNUTLS
:= use gnutls for crypto
38 PKGCS_WITH_GNUTLS
:= libgnutls ca-certificates
39 PKGCB_WITH_GNUTLS
:= gnutls
40 PKGCD_WITH_WOLFSSL
:= use wolfssl for crypto
41 PKGCS_WITH_WOLFSSL
:= wolfssl ca-certificates
42 PKGCB_WITH_WOLFSSL
:= wolfssl
43 PKGCD_WITHOUT_SSL
:= use no ssl
45 include ${ADK_TOPDIR}/mk
/host.mk
46 include ${ADK_TOPDIR}/mk
/package.mk
48 $(eval
$(call HOST_template
,CURL
,curl
,${PKG_VERSION}-${PKG_RELEASE}))
49 $(eval
$(call PKG_template
,LIBCURL
,libcurl
,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBCURL},${PKGSD_LIBCURL},${PKGSC_LIBCURL},${PKG_OPTS}))
50 $(eval
$(call PKG_template
,CURL
,curl
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
52 HOST_CONFIGURE_ARGS
+= --without-ssl \
55 ifeq (${ADK_PACKAGE_LIBCURL_WITH_LIBRESSL},y
)
56 CONFIGURE_ARGS
+= --with-openssl
="${STAGING_TARGET_DIR}/usr" \
60 ifeq (${ADK_PACKAGE_LIBCURL_WITH_OPENSSL},y
)
61 CONFIGURE_ARGS
+= --with-openssl
="${STAGING_TARGET_DIR}/usr" \
65 ifeq (${ADK_PACKAGE_LIBCURL_WITH_GNUTLS},y
)
66 CONFIGURE_ARGS
+= --with-gnutls
="${STAGING_TARGET_DIR}/usr" \
70 ifeq (${ADK_PACKAGE_LIBCURL_WITH_WOLFSSL},y
)
71 CONFIGURE_ARGS
+= --with-wolfssl
="${STAGING_TARGET_DIR}/usr" \
75 ifeq (${ADK_PACKAGE_LIBCURL_WITHOUT_SSL},y
)
76 CONFIGURE_ARGS
+= --without-ssl \
81 CONFIGURE_ENV
+= curl_typeof_curl_socklen_t
=socklen_t \
82 LDFLAGS
='$(TARGET_LDFLAGS) -latomic'
83 CONFIGURE_ARGS
+= --enable-cookies \
91 --disable-symbol-hiding \
106 --with-ca-path
="/etc/ssl/certs" \
107 --with-random
="/dev/urandom" \
110 ifneq (${ADK_PACKAGE_LIBCURL_WITH_IPV6},)
111 CONFIGURE_ARGS
+= --enable-ipv6
113 CONFIGURE_ARGS
+= --disable-ipv6
117 ${INSTALL_DIR} ${IDIR_CURL}/usr
/bin
118 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/curl
${IDIR_CURL}/usr
/bin
121 ${INSTALL_DIR} ${IDIR_LIBCURL}/usr
/lib
122 ${CP} ${WRKINST}/usr
/lib
/libcurl.so
* ${IDIR_LIBCURL}/usr
/lib
124 include ${ADK_TOPDIR}/mk
/host-bottom.mk
125 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk