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
23 $(call gb_ExternalProject_get_state_target
,redland
,build
):
24 $(call gb_Trace_StartRange
,redland
,EXTERNAL
)
25 $(call gb_ExternalProject_run
,build
,\
26 CFLAGS
="$(CFLAGS) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))" \
28 $(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\
$$\
$$ORIGIN") \
29 $(if $(SYSBASE),$(if $(filter LINUX SOLARIS,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
30 CPPFLAGS
="$(if $(SYSBASE),-I$(SYSBASE)/usr/include)" \
32 RAPTOR2_CFLAGS
="-I$(call gb_UnpackedTarball_get_dir,raptor)/src" \
33 RAPTOR2_LIBS
="-L$(call gb_UnpackedTarball_get_dir,raptor)/src/.libs -lraptor2 $(LIBXML_LIBS)" \
34 RASQAL_CFLAGS
="-I$(call gb_UnpackedTarball_get_dir,rasqal)/src" \
35 RASQAL_LIBS
="-L$(call gb_UnpackedTarball_get_dir,rasqal)/src/.libs -lrasqal" \
36 $(gb_RUN_CONFIGURE
) .
/configure
--disable-gtk-doc \
39 --without-bdb
--without-sqlite
--without-mysql \
40 --without-postgresql
--without-threestone
--without-virtuoso \
41 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
) \
42 $(if
$(filter INTEL ARM
,$(CPUNAME
)),ac_cv_c_bigendian
=no
)) \
43 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
44 $(if
$(ENABLE_DEBUG
),--enable-debug
) \
45 $(if
$(DISABLE_DYNLOADING
), \
46 --enable-static
--disable-shared \
48 --enable-shared
--disable-static \
51 $(if
$(filter MACOSX
,$(OS
)),&& $(PERL
) \
52 $(SRCDIR
)/solenv
/bin
/macosx-change-install-names.pl shl OOO \
53 $(EXTERNAL_WORKDIR
)/src
/.libs
/librdf-lo.
$(REDLAND_MAJOR
).dylib
) \
55 $(call gb_Trace_EndRange
,redland
,EXTERNAL
)
57 # vim: set noet sw=4 ts=4: