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
,\
20 # note: this can intentionally only build against internal raptor (not system)
23 $(call gb_ExternalProject_get_state_target
,rasqal
,build
):
24 $(call gb_ExternalProject_run
,build
,\
25 CC
="$(CC) -mthreads $(if $(filter YES,$(MINGW_SHARED_GCCLIB)),-shared-libgcc)" \
26 LDFLAGS
="-Wl$(COMMA)--no-undefined -Wl$(COMMA)--enable-runtime-pseudo-reloc-v2 -Wl$(COMMA)--export-all-symbols $(subst ;, -L$,$(ILIB))" \
27 OBJDUMP
="$(HOST_PLATFORM)-objdump" \
29 RAPTOR2_CFLAGS
="-I$(call gb_UnpackedTarball_get_dir,raptor)/src" \
30 RAPTOR2_LIBS
="-L$(OUTDIR)/lib -lraptor2" \
31 .
/configure
--disable-static
--enable-shared
--disable-gtk-doc \
34 --with-uuid-library
=internal \
35 --with-digest-library
=internal \
36 --build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
) \
37 lt_cv_cc_dll_switch
="-shared" \
38 $(if
$(filter NO
,$(SYSTEM_LIBXML
)),--with-xml2-config
=$(call gb_UnpackedTarball_get_dir
,xml2
)/xml2-config
) \
42 $(call gb_ExternalProject_get_state_target
,rasqal
,build
):
43 $(call gb_ExternalProject_run
,build
,\
44 CFLAGS
="$(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden)" \
46 $(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-rpath-link$(COMMA)$(OUTDIR)/lib -Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\
$$\
$$ORIGIN:'\'\$$\$$ORIGIN/../ure-link/lib") \
47 $(if $(SYSBASE),$(if $(filter LINUX SOLARIS,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
48 $(if $(SYSBASE),CPPFLAGS="-I$(SYSBASE)/usr/include") \
50 RAPTOR2_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,raptor)/src" \
51 RAPTOR2_LIBS="-L$(OUTDIR)/lib -lraptor2" \
52 ./configure --disable-gtk-doc \
53 --with-regex-library=posix \
55 --with-uuid-library=internal \
56 --with-digest-library=internal \
57 $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
58 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
59 $(if $(filter IOS ANDROID,$(OS)),--disable-shared,--disable-static) \
60 $(if $(filter NO,$(SYSTEM_LIBXML)),--with-xml2-config=$(call gb_UnpackedTarball_get_dir,xml2)/xml2-config) \
62 $(if $(filter MACOSX,$(OS)),&& $(PERL) \
63 $(SOLARENV)/bin/macosx-change-install-names.pl shl OOO \
64 $(gb_Package_SOURCEDIR_rasqal)/src/.libs/librasqal-lo.$(RASQAL_MAJOR).dylib) \
68 # vim: set noet sw=4 ts=4: