Bump version to 24.04.3.4
[LibreOffice.git] / external / librevenge / ExternalProject_librevenge.mk
blob4e64d5534b6bb71ebed251004aa86545e711a9f9
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,librevenge))
12 $(eval $(call gb_ExternalProject_use_autoconf,librevenge,build))
14 $(eval $(call gb_ExternalProject_register_targets,librevenge,\
15 build \
18 $(eval $(call gb_ExternalProject_use_externals,librevenge,\
19 boost_headers \
22 $(call gb_ExternalProject_get_state_target,librevenge,build) :
23 $(call gb_Trace_StartRange,librevenge,EXTERNAL)
24 $(call gb_ExternalProject_run,build,\
25 export PKG_CONFIG="" \
26 && $(gb_RUN_CONFIGURE) ./configure \
27 --with-pic \
28 $(if $(DISABLE_DYNLOADING), \
29 --disable-shared --enable-static, \
30 --enable-shared --disable-static) \
31 $(if $(ENABLE_DEBUG),--enable-debug,--disable-debug) \
32 --disable-werror \
33 --disable-weffc \
34 --disable-streams \
35 --disable-generators \
36 --without-docs \
37 $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
38 CXXFLAGS="$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,librevenge)" \
39 CPPFLAGS="$(CPPFLAGS) $(BOOST_CPPFLAGS)" \
40 $(gb_CONFIGURE_PLATFORMS) \
41 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
42 && $(MAKE) \
43 $(if $(filter MACOSX,$(OS)),\
44 && $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
45 $(EXTERNAL_WORKDIR)/src/lib/.libs/librevenge-0.0.0.dylib \
46 ) \
48 $(call gb_Trace_EndRange,librevenge,EXTERNAL)
50 # vim: set noet sw=4 ts=4: