Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / external / redland / ExternalProject_rasqal.mk
blobe7d1fdb1195d46a4eb5fdc5d6e349053c38fe599
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_Trace_StartRange,rasqal,EXTERNAL)
24 $(call gb_ExternalProject_run,build,\
25 CFLAGS="$(CFLAGS) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) $(call gb_ExternalProject_get_build_flags,rasqal) $(gb_EMSCRIPTEN_CPPFLAGS)" \
26 LDFLAGS=" \
27 $(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN") \
28 $(if $(SYSBASE),$(if $(filter LINUX SOLARIS,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
29 $(if $(SYSBASE),CPPFLAGS="-I$(SYSBASE)/usr/include") \
30 PKG_CONFIG="" \
31 RAPTOR2_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,raptor)/src" \
32 RAPTOR2_LIBS="-L$(call gb_UnpackedTarball_get_dir,raptor)/src/.libs -lraptor2" \
33 $(gb_RUN_CONFIGURE) ./configure --disable-gtk-doc \
34 --with-regex-library=posix \
35 --with-decimal=none \
36 --with-uuid-library=internal \
37 --with-digest-library=internal \
38 $(gb_CONFIGURE_PLATFORMS) \
39 $(if $(CROSS_COMPILING),$(if $(filter INTEL ARM,$(CPUNAME)),ac_cv_c_bigendian=no)) \
40 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
41 $(if $(DISABLE_DYNLOADING), \
42 --enable-static --disable-shared \
43 , \
44 --enable-shared --disable-static \
45 ) \
46 $(if $(SYSTEM_LIBXML),,--with-xml2-config=$(call gb_UnpackedTarball_get_dir,libxml2)/xml2-config) \
47 && $(MAKE) \
48 $(if $(filter MACOSX,$(OS)),&& $(PERL) \
49 $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
50 $(EXTERNAL_WORKDIR)/src/.libs/librasqal-lo.$(RASQAL_MAJOR).dylib) \
52 $(call gb_Trace_EndRange,rasqal,EXTERNAL)
54 # vim: set noet sw=4 ts=4: