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 $(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$(call gb_UnpackedTarball_get_dir,raptor)/src/.libs -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
$(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
="$(CFLAGS) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden)" \
46 $(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\
$$\
$$ORIGIN") \
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$(call gb_UnpackedTarball_get_dir,raptor)/src/.libs -lraptor2" \
52 .
/configure
--disable-gtk-doc \
53 --with-regex-library
=posix \
55 --with-uuid-library
=internal \
56 --with-digest-library
=internal \
57 $(if
$(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
$(SYSTEM_LIBXML
),,--with-xml2-config
=$(call gb_UnpackedTarball_get_dir
,xml2
)/xml2-config
) \
62 $(if
$(filter MACOSX
,$(OS
)),&& $(PERL
) \
63 $(SRCDIR
)/solenv
/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: