aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/curl
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2024-04-28 14:26:39 +1000
committerfuzzard <fuzzard@kodi.tv>2024-05-09 09:09:47 +1000
commit25e182d340dcaee53439c208b25f548601dc78d2 (patch)
tree62a7422b3aec4206c83745123aeccb0edb5c00ee /tools/depends/target/curl
parentbb8fef6b73949672deb89d6955907f6db849d0a2 (diff)
[tools/depends][target] Curl change to cmake instead of autotools build
Diffstat (limited to 'tools/depends/target/curl')
-rw-r--r--tools/depends/target/curl/Makefile71
1 files changed, 27 insertions, 44 deletions
diff --git a/tools/depends/target/curl/Makefile b/tools/depends/target/curl/Makefile
index d4f002df3d..1b5a4c1ab2 100644
--- a/tools/depends/target/curl/Makefile
+++ b/tools/depends/target/curl/Makefile
@@ -1,65 +1,48 @@
include ../../Makefile.include CURL-VERSION ../../download-files.include
DEPS = ../../Makefile.include Makefile CURL-VERSION ../../download-files.include
-# configuration settings
-CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) .; \
- ./configure --prefix=$(PREFIX) \
- --disable-shared \
- --disable-docs \
- --disable-ldap \
- --without-libssh2 \
- --disable-ntlm-wb \
- --enable-ipv6 \
- --without-librtmp \
- --without-libidn2 \
- --with-ca-fallback \
- --with-ssl=$(PREFIX) \
- --with-brotli=$(PREFIX) \
- --with-nghttp2=$(PREFIX) \
- --with-zlib \
- --without-libpsl \
- --without-zstd \
- --without-gssapi \
- --without-gsasl \
- --without-hyper \
- --without-ngtcp2 \
- --without-nghttp3 \
- --without-quiche \
- --without-msh3 \
- --without-gnutls \
- --without-nss \
- --without-mbedtls \
- --without-wolfssl
-
-LIBDYLIB=$(PLATFORM)/lib/.libs/$(BYPRODUCT)
+CMAKE_OPTIONS=-DCMAKE_INSTALL_PREFIX=$(PREFIX) \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_CURL_EXE=OFF \
+ -DBUILD_SHARED_LIBS=OFF \
+ -DBUILD_STATIC_LIBS=ON \
+ -DBUILD_LIBCURL_DOCS=OFF \
+ -DENABLE_CURL_MANUAL=OFF \
+ -DCURL_DISABLE_TESTS=OFF \
+ -DCURL_DISABLE_LDAP=ON \
+ -DCURL_DISABLE_LDAPS=ON \
+ -DCURL_DISABLE_SMB=OFF \
+ -DCURL_USE_OPENSSL=ON \
+ -DOPENSSL_ROOT_DIR=$(PREFIX) \
+ -DCURL_BROTLI=ON \
+ -DUSE_NGHTTP2=ON \
+ -DUSE_LIBIDN2=OFF \
+ -DCURL_USE_LIBSSH2=OFF \
+ -DCURL_USE_GSSAPI=OFF \
+ -DCURL_CA_FALLBACK=ON
+
+LIBDYLIB=$(PLATFORM)/build/lib/$(BYPRODUCT)
all: .installed-$(PLATFORM)
$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
- rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
+ rm -rf $(PLATFORM); mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
- cd $(PLATFORM); $(AUTORECONF) -vif
- cd $(PLATFORM); $(CONFIGURE)
+ cd $(PLATFORM)/build; $(CMAKE) ${CMAKE_OPTIONS} ..
$(LIBDYLIB): $(PLATFORM)
- $(MAKE) -C $(PLATFORM)/lib
+ $(MAKE) -C $(PLATFORM)/build
.installed-$(PLATFORM): $(LIBDYLIB)
- # install only libcurl and includes
- $(MAKE) -C $(PLATFORM)/lib install
- $(MAKE) -C $(PLATFORM)/include install
- # make sure to also install libcurl.pc, we need to do
- # this because we are selectively installing only libcurl
- $(MAKE) -C $(PLATFORM) install-pkgconfigDATA
+ $(MAKE) -C $(PLATFORM)/build install
touch $@
clean:
- $(MAKE) -C $(PLATFORM) clean
- rm -f .installed-$(PLATFORM)
+ rm -rf $(PLATFORM) .installed-$(PLATFORM)
distclean::
rm -rf $(PLATFORM) .installed-$(PLATFORM)
.PHONY: update-cacert
update-cacert: $(PLATFORM)
- $(PLATFORM)/lib/mk-ca-bundle.pl -u $(CMAKE_SOURCE_DIR)/system/certs/cacert.pem
+ $(PLATFORM)/scripts/mk-ca-bundle.pl -u $(CMAKE_SOURCE_DIR)/system/certs/cacert.pem