diff options
Diffstat (limited to 'openldap/ExternalProject_openldap.mk')
-rw-r--r-- | openldap/ExternalProject_openldap.mk | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/openldap/ExternalProject_openldap.mk b/openldap/ExternalProject_openldap.mk new file mode 100644 index 000000000000..41a7b43b90e5 --- /dev/null +++ b/openldap/ExternalProject_openldap.mk @@ -0,0 +1,42 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_ExternalProject_ExternalProject,openldap)) + +$(eval $(call gb_ExternalProject_use_unpacked,openldap,openldap)) + +$(eval $(call gb_ExternalProject_register_targets,openldap,\ + build \ +)) + +$(call gb_ExternalProject_get_state_target,openldap,build) : + cd $(EXTERNAL_WORKDIR) \ + && ./configure \ + --disable-slapd \ + --with-pic \ + --with-tls=moznss \ + --without-cyrus-sasl \ + --disable-shared \ + --enable-static \ + $(if $(filter YES,$(CROSS_COMPILING)), \ + --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) \ + --with-yielding_select=yes \ + ac_cv_func_memcmp_working=yes \ + ) \ + $(if $(filter YES,$(SYSTEM_NSS)), \ + CPPFLAGS="$(NSS_CFLAGS)" CFLAGS="$(NSS_CFLAGS)" LDFLAGS="$(NSS_LIBS)" \ + , \ + CPPFLAGS="-I $(OUTDIR)/inc/mozilla/nss -I $(OUTDIR)/inc/mozilla/nspr" \ + CFLAGS="-I $(OUTDIR)/inc/mozilla/nss -I $(OUTDIR)/inc/mozilla/nspr" \ + LDFLAGS="-L$(OUTDIR)/lib" \ + ) \ + && unset MAKEFLAGS && $(GNUMAKE) -j$(GMAKE_PARALLELISM) \ + && touch $@ + +# vim: set noet sw=4 ts=4: |