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
,\
19 $(call gb_ExternalProject_get_state_target
,raptor
,build
):
20 $(call gb_ExternalProject_run
,build
,\
21 CC
="$(CC) -mthreads $(if $(MINGW_SHARED_GCCLIB),-shared-libgcc)" \
22 LDFLAGS
="-Wl$(COMMA)--no-undefined -Wl$(COMMA)--enable-runtime-pseudo-reloc-v2 -Wl$(COMMA)--export-all-symbols $(subst ;, -L,$(ILIB))" \
23 OBJDUMP
="$(HOST_PLATFORM)-objdump" \
24 $(if
$(and
$(SYSTEM_LIBXML
),$(filter GCC
,$(COM
))),PATH
="$(MINGW_SYSROOT)/bin:$$PATH") \
25 .
/configure
--disable-static
--enable-shared
--disable-gtk-doc \
26 --enable-parsers
="rdfxml ntriples turtle trig guess rss-tag-soup" \
28 --without-xslt-config \
29 --build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
) --target
=$(HOST_PLATFORM
) \
30 lt_cv_cc_dll_switch
="-shared" \
31 $(if
$(SYSTEM_LIBXML
),,--with-xml2-config
=$(call gb_UnpackedTarball_get_dir
,xml2
)/xml2-config
) \
35 $(call gb_ExternalProject_get_state_target
,raptor
,build
):
36 $(call gb_ExternalProject_run
,build
,\
37 $(if
$(filter IOS
,$(OS
)),LIBS
="-liconv") \
38 CFLAGS
="$(CFLAGS) $(if $(debug),-g,-O) $(if $(filter TRUE,$(DISABLE_DYNLOADING)),-fvisibility=hidden) \
39 $(if $(filter GCCLINUXPOWERPC64,$(COM)$(OS)$(CPUNAME)),-mminimal-toc)" \
41 $(if $(filter LINUX FREEBSD,$(OS)),-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath$(COMMA)\\"\
$$\
$$ORIGIN") \
42 $(if $(SYSBASE),$(if $(filter LINUX SOLARIS,$(OS)),-L$(SYSBASE)/lib -L$(SYSBASE)/usr/lib -lpthread -ldl))" \
43 CPPFLAGS
="$(if $(SYSBASE),-I$(SYSBASE)/usr/include)" \
44 .
/configure
--disable-gtk-doc \
45 --enable-parsers
="rdfxml ntriples turtle trig guess rss-tag-soup" \
47 --without-xslt-config \
48 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
49 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
50 $(if
$(filter IOS ANDROID
,$(OS
)),--disable-shared
,--disable-static
) \
51 $(if
$(SYSTEM_LIBXML
),,--with-xml2-config
=$(call gb_UnpackedTarball_get_dir
,xml2
)/xml2-config
) \
56 # vim: set noet sw=4 ts=4: