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
,\
18 $(eval
$(call gb_ExternalProject_use_externals
,librevenge
,\
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 \
28 $(if
$(DISABLE_DYNLOADING
), \
29 --disable-shared
--enable-static
, \
30 --enable-shared
--disable-static
) \
31 $(if
$(ENABLE_DEBUG
),--enable-debug
,--disable-debug
) \
35 --disable-generators \
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
) \
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 \
48 $(call gb_Trace_EndRange
,librevenge
,EXTERNAL
)
50 # vim: set noet sw=4 ts=4: