1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_ExternalProject_ExternalProject
,curl
))
12 $(eval
$(call gb_ExternalProject_use_unpacked
,curl
,curl
))
14 $(eval
$(call gb_ExternalProject_register_targets
,curl
,\
20 $(call gb_ExternalProject_get_state_target
,curl
,build
):
21 cd
$(EXTERNAL_WORKDIR
) \
22 && PATH
=$(OUTDIR_FOR_BUILD
)/bin
:$$PATH .
/configure
--with-nss
--without-ssl \
23 --without-libidn
--enable-ftp
--enable-ipv6
--enable-http
--disable-gopher \
24 --disable-file
--disable-ldap
--disable-telnet
--disable-dict
--without-libssh2 \
25 $(if
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
26 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),--disable-shared
,--disable-static
) \
27 $(if
$(filter TRUE
,$(ENABLE_DEBUG
)),--enable-debug
) \
28 $(if
$(SYSBASE
),CPPFLAGS
="-I$(SYSBASE)/usr/include" LDFLAGS
="-L$(SYSBASE)/usr/lib") \
33 else ifeq ($(OS
)$(COM
),WNTGCC
)
35 $(call gb_ExternalProject_get_state_target
,curl
,build
):
36 cd
$(EXTERNAL_WORKDIR
) \
37 && PATH
=$(OUTDIR_FOR_BUILD
)/bin
:$$PATH .
/configure
--with-nss
--without-ssl
--enable-ftp
--enable-ipv6
--disable-http
--disable-gopher \
38 --disable-file
--disable-ldap
--disable-telnet
--disable-dict
--build
=i586-pc-mingw32
--host
=i586-pc-mingw32 \
39 $(if
$(filter TRUE
,$(ENABLE_DEBUG
)),--enable-debug
) \
40 CC
="$(CC) -mthreads $(if $(filter YES,$(MINGW_SHARED_GCCLIB)),-shared-libgcc)" \
41 LIBS
="-lws2_32 -lwinmm $(if $(filter YES,$(MINGW_SHARED_GXXLIB)),$(MINGW_SHARED_LIBSTDCPP))" \
42 LDFLAGS
="$(patsubst ;, -L,$(ILIB))" \
43 CPPFLAGS
="$(INCLUDE)" OBJDUMP
="objdump" \
48 else ifeq ($(COM
),MSC
)
50 $(call gb_ExternalProject_get_state_target
,curl
,build
):
51 cd
$(EXTERNAL_WORKDIR
)/lib \
52 && MAKEFLAGS
= LIB
="$(ILIB)" nmake
-f Makefile.vc9 cfg
=release-dll \
53 EXCFLAGS
="/EHa /Zc:wchar_t- /D_CRT_SECURE_NO_DEPRECATE /DUSE_WINDOWS_SSPI $(SOLARINC)" $(if
$(filter X86_64
,$(CPUNAME
)),MACHINE
=X64
) \
58 # vim: set noet sw=4 ts=4: