Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / external / redland / ExternalProject_raptor.mk
blob4309df17b2462e4e56b4231b260a99f76d8691c6
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,raptor))
12 $(eval $(call gb_ExternalProject_use_external,raptor,libxml2))
14 $(eval $(call gb_ExternalProject_register_targets,raptor,\
15 build \
18 $(call gb_ExternalProject_get_state_target,raptor,build):
19 $(call gb_ExternalProject_run,build,\
20 $(if $(filter iOS,$(OS)),LIBS="-liconv") \
21 CFLAGS="$(CFLAGS) $(if $(debug),-g,-O) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) \
22 $(if $(filter GCCLINUXPOWERPC64,$(COM)$(OS)$(CPUNAME)),-mminimal-toc)" \
23 LDFLAGS=" \
24 $(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\$$\$$ORIGIN") \
25 $(if $(SYSBASE),$(if $(filter LINUX SOLARIS,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
26 CPPFLAGS="$(if $(SYSBASE),-I$(SYSBASE)/usr/include)" \
27 ./configure --disable-gtk-doc \
28 --enable-parsers="rdfxml ntriples turtle trig guess rss-tag-soup" \
29 --with-www=xml \
30 --without-xslt-config \
31 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) \
32 $(if $(filter INTEL ARM,$(CPUNAME)),ac_cv_c_bigendian=no)) \
33 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
34 $(if $(DISABLE_DYNLOADING), \
35 --enable-static --disable-shared \
36 , \
37 --enable-shared --disable-static \
38 ) \
39 $(if $(SYSTEM_LIBXML),$(if $(filter-out MACOSX,$(OS)),--without-xml2-config),--with-xml2-config=$(call gb_UnpackedTarball_get_dir,libxml2)/xml2-config) \
40 && $(MAKE) \
43 # vim: set noet sw=4 ts=4: