bind: update to 9.18.32
[openadk.git] / package / curl / Makefile
blobcfd7748f630746ae9097da993c6d387c41358d39
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
6 PKG_NAME:= curl
7 PKG_VERSION:= 8.10.1
8 PKG_RELEASE:= 1
9 PKG_HASH:= 73a4b0e99596a09fa5924a4fb7e4b995a85fda0d18a2c02ab9cf134bebce04ee
10 PKG_DESCR:= client-side url transfer tool
11 PKG_SECTION:= net/http
12 PKG_BUILDDEP:= zlib
13 PKG_NEEDS:= threads
14 PKG_URL:= https://curl.se/
15 PKG_SITES:= https://curl.se/download/
16 PKG_LIBNAME:= libcurl
17 PKG_OPTS:= dev
19 PKG_SUBPKGS:= LIBCURL CURL
20 PKGSD_LIBCURL:= client-side url transfer library
21 PKGSC_LIBCURL:= libs/net
22 PKGSS_LIBCURL:= zlib
23 PKGSD_CURL:= client-side url transfer utiity
24 PKGSC_CURL:= net/http
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 \
53 --without-libpsl
55 ifeq (${ADK_PACKAGE_LIBCURL_WITH_LIBRESSL},y)
56 CONFIGURE_ARGS+= --with-openssl="${STAGING_TARGET_DIR}/usr" \
57 --without-gnutls \
58 --without-wolfssl
59 endif
60 ifeq (${ADK_PACKAGE_LIBCURL_WITH_OPENSSL},y)
61 CONFIGURE_ARGS+= --with-openssl="${STAGING_TARGET_DIR}/usr" \
62 --without-gnutls \
63 --without-wolfssl
64 endif
65 ifeq (${ADK_PACKAGE_LIBCURL_WITH_GNUTLS},y)
66 CONFIGURE_ARGS+= --with-gnutls="${STAGING_TARGET_DIR}/usr" \
67 --without-openssl \
68 --without-wolfssl
69 endif
70 ifeq (${ADK_PACKAGE_LIBCURL_WITH_WOLFSSL},y)
71 CONFIGURE_ARGS+= --with-wolfssl="${STAGING_TARGET_DIR}/usr" \
72 --without-openssl \
73 --without-gnutls
74 endif
75 ifeq (${ADK_PACKAGE_LIBCURL_WITHOUT_SSL},y)
76 CONFIGURE_ARGS+= --without-ssl \
77 --without-gnutls \
78 --without-wolfssl
79 endif
81 CONFIGURE_ENV+= curl_typeof_curl_socklen_t=socklen_t \
82 LDFLAGS='$(TARGET_LDFLAGS) -latomic'
83 CONFIGURE_ARGS+= --enable-cookies \
84 --enable-file \
85 --enable-ftp \
86 --enable-http \
87 --enable-proxy \
88 --disable-curldebug \
89 --disable-ntlm \
90 --disable-ntlm-wb \
91 --disable-symbol-hiding \
92 --disable-ares \
93 --disable-dict \
94 --disable-gopher \
95 --disable-ldap \
96 --disable-smtp \
97 --disable-imap \
98 --disable-ldaps \
99 --disable-manual \
100 --disable-sspi \
101 --disable-telnet \
102 --disable-verbose \
103 --without-libssh2 \
104 --without-libpsl \
105 --without-librtmp \
106 --with-ca-path="/etc/ssl/certs" \
107 --with-random="/dev/urandom" \
108 --without-ca-bundle
110 ifneq (${ADK_PACKAGE_LIBCURL_WITH_IPV6},)
111 CONFIGURE_ARGS+= --enable-ipv6
112 else
113 CONFIGURE_ARGS+= --disable-ipv6
114 endif
116 curl-install:
117 ${INSTALL_DIR} ${IDIR_CURL}/usr/bin
118 ${INSTALL_BIN} ${WRKINST}/usr/bin/curl ${IDIR_CURL}/usr/bin
120 libcurl-install:
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