Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / external / redland / ExternalProject_rasqal.mk
blob92e7adce08fffe33dc8e9a15f884cfef4cf41dca
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,rasqal))
12 $(eval $(call gb_ExternalProject_use_external,rasqal,libxml2))
14 $(eval $(call gb_ExternalProject_use_package,rasqal,raptor))
16 $(eval $(call gb_ExternalProject_register_targets,rasqal,\
17 build \
20 # note: this can intentionally only build against internal raptor (not system)
22 $(call gb_ExternalProject_get_state_target,rasqal,build):
23 $(call gb_ExternalProject_run,build,\
24 CFLAGS="$(CFLAGS) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
25 LDFLAGS=" \
26 $(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN") \
27 $(if $(SYSBASE),$(if $(filter LINUX SOLARIS,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
28 $(if $(SYSBASE),CPPFLAGS="-I$(SYSBASE)/usr/include") \
29 PKG_CONFIG="" \
30 RAPTOR2_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,raptor)/src" \
31 RAPTOR2_LIBS="-L$(call gb_UnpackedTarball_get_dir,raptor)/src/.libs -lraptor2" \
32 ./configure --disable-gtk-doc \
33 --with-regex-library=posix \
34 --with-decimal=none \
35 --with-uuid-library=internal \
36 --with-digest-library=internal \
37 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) \
38 $(if $(filter INTEL ARM,$(CPUNAME)),ac_cv_c_bigendian=no)) \
39 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
40 $(if $(DISABLE_DYNLOADING), \
41 --enable-static --disable-shared \
42 , \
43 --enable-shared --disable-static \
44 ) \
45 $(if $(SYSTEM_LIBXML),,--with-xml2-config=$(call gb_UnpackedTarball_get_dir,libxml2)/xml2-config) \
46 && $(MAKE) \
47 $(if $(filter MACOSX,$(OS)),&& $(PERL) \
48 $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
49 $(EXTERNAL_WORKDIR)/src/.libs/librasqal-lo.$(RASQAL_MAJOR).dylib) \
52 # vim: set noet sw=4 ts=4: