fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / redland / ExternalProject_redland.mk
blob9852e3f035d3bca2f47efb8ea26019251611173b
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,redland))
12 $(eval $(call gb_ExternalProject_use_packages,redland, \
13 raptor \
14 rasqal \
17 $(eval $(call gb_ExternalProject_register_targets,redland,\
18 build \
21 # note: this can intentionally only build against internal raptor/rasqal
23 ifeq ($(OS),WNT)
24 $(call gb_ExternalProject_get_state_target,redland,build):
25 $(call gb_ExternalProject_run,build,\
26 CC="$(CC) -mthreads $(if $(MINGW_SHARED_GCCLIB),-shared-libgcc)" \
27 LDFLAGS="-Wl$(COMMA)--no-undefined -Wl$(COMMA)--enable-runtime-pseudo-reloc-v2 -Wl$(COMMA)--export-all-symbols" \
28 OBJDUMP="$(HOST_PLATFORM)-objdump" \
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 $(LIBXML_LIBS)" \
32 RASQAL_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,rasqal)/src" \
33 RASQAL_LIBS="-L$(call gb_UnpackedTarball_get_dir,rasqal)/src/.libs -lrasqal" \
34 ./configure --disable-static --disable-gtk-doc \
35 --disable-modular \
36 --without-threads \
37 --without-bdb --without-sqlite --without-mysql \
38 --without-postgresql --without-threestore --without-virtuoso \
39 --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) \
40 lt_cv_cc_dll_switch="-shared" \
41 && $(MAKE) \
43 else
44 $(call gb_ExternalProject_get_state_target,redland,build):
45 $(call gb_ExternalProject_run,build,\
46 CFLAGS="$(CFLAGS) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden)" \
47 LDFLAGS=" \
48 $(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN") \
49 $(if $(SYSBASE),$(if $(filter LINUX SOLARIS,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
50 CPPFLAGS="$(if $(SYSBASE),-I$(SYSBASE)/usr/include)" \
51 PKG_CONFIG="" \
52 RAPTOR2_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,raptor)/src" \
53 RAPTOR2_LIBS="-L$(call gb_UnpackedTarball_get_dir,raptor)/src/.libs -lraptor2 $(LIBXML_LIBS)" \
54 RASQAL_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,rasqal)/src" \
55 RASQAL_LIBS="-L$(call gb_UnpackedTarball_get_dir,rasqal)/src/.libs -lrasqal" \
56 ./configure --disable-gtk-doc \
57 --disable-modular \
58 --without-threads \
59 --without-bdb --without-sqlite --without-mysql \
60 --without-postgresql --without-threestone --without-virtuoso \
61 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
62 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
63 $(if $(filter IOS ANDROID,$(OS)),--disable-shared,--disable-static) \
64 && $(MAKE) \
65 $(if $(filter MACOSX,$(OS)),&& $(PERL) \
66 $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
67 $(gb_Package_SOURCEDIR_redland)/src/.libs/librdf-lo.$(REDLAND_MAJOR).dylib) \
69 endif
71 # vim: set noet sw=4 ts=4: