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
, \
17 $(eval
$(call gb_ExternalProject_register_targets
,redland
,\
21 # note: this can intentionally only build against internal raptor/rasqal
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" \
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 \
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" \
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)" \
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)" \
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 \
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
) \
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
) \
71 # vim: set noet sw=4 ts=4: