bump product version to 4.1.6.2
[LibreOffice.git] / postgresql / ExternalProject_postgresql.mk
blob428ededc2457aac492e9066c3e5328825f4aae67
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,postgresql))
12 $(eval $(call gb_ExternalProject_use_package,postgresql,openldap))
14 $(eval $(call gb_ExternalProject_use_externals,postgresql,\
15 openssl \
16 zlib \
19 $(eval $(call gb_ExternalProject_register_targets,postgresql,\
20 build \
23 ifeq ($(OS)$(COM),WNTMSC)
25 $(call gb_ExternalProject_get_state_target,postgresql,build) :
26 $(call gb_ExternalProject_run,build,\
27 MAKEFLAGS= && nmake -f win32.mak USE_SSL=1 USE_LDAP=1 \
28 ,src)
30 else
32 $(call gb_ExternalProject_get_state_target,postgresql,build) :
33 $(call gb_ExternalProject_run,build,\
34 ./configure \
35 --without-readline --disable-shared --with-ldap \
36 $(if $(filter-out YES,$(DISABLE_OPENSSL)),--with-openssl) \
37 $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
38 $(if $(and $(filter YES,$(WITH_KRB5)), $(filter-out YES,$(DISABLE_OPENSSL))),--with-krb5) \
39 $(if $(and $(filter YES,$(WITH_GSSAPI)), $(filter-out YES,$(DISABLE_OPENSSL))),--with-gssapi) \
40 CPPFLAGS="$(ZLIB_CFLAGS) \
41 $(if $(filter NO,$(SYSTEM_OPENLDAP)),\
42 -I$(call gb_UnpackedTarball_get_dir,openldap/include)) \
43 $(if $(and $(filter NO,$(SYSTEM_OPENSSL)), $(filter-out YES,$(DISABLE_OPENSSL))),\
44 -I$(call gb_UnpackedTarball_get_dir,openssl/include))" \
45 $(if $(filter NO,$(SYSTEM_OPENLDAP)), \
46 LDFLAGS="-L$(OUTDIR)/lib" \
47 EXTRA_LDAP_LIBS="-llber -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4" \
48 ) \
49 && cd src/interfaces/libpq \
50 && MAKEFLAGS= && $(MAKE) all-static-lib)
52 endif
54 # vim: set noet sw=4 ts=4: