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
,libwps
))
12 $(eval
$(call gb_ExternalProject_use_autoconf
,libwps
,build
))
14 $(eval
$(call gb_ExternalProject_register_targets
,libwps
,\
18 $(eval
$(call gb_ExternalProject_use_externals
,libwps
,\
22 libwps_CPPFLAGS
+=$(gb_COMPILERDEFS_STDLIB_DEBUG
)
24 libwps_CXXFLAGS
=$(gb_CXXFLAGS
) $(call gb_ExternalProject_get_build_flags
,libwps
)
26 libwps_LDFLAGS
=$(call gb_ExternalProject_get_link_flags
,libwps
)
28 ifeq ($(SYSTEM_REVENGE
),)
29 libwps_LDFLAGS
+=-Wl
,-z
,origin -Wl
,-rpath
,\
$$$$ORIGIN
33 $(call gb_ExternalProject_get_state_target
,libwps
,build
) :
34 $(call gb_Trace_StartRange
,libwps
,EXTERNAL
)
35 $(call gb_ExternalProject_run
,build
,\
36 export PKG_CONFIG
="" \
37 && $(gb_RUN_CONFIGURE
) .
/configure \
39 $(if
$(DISABLE_DYNLOADING
), \
40 --enable-static
--disable-shared \
42 --enable-shared
--disable-static \
44 --with-sharedptr
=c
++11 \
47 $(if
$(ENABLE_DEBUG
),--enable-debug
,--disable-debug
) \
49 $(if
$(verbose
),--disable-silent-rules
,--enable-silent-rules
) \
50 $(if
$(libwps_CXXFLAGS
),CXXFLAGS
='$(libwps_CXXFLAGS)') \
51 $(if
$(libwps_CPPFLAGS
),CPPFLAGS
='$(libwps_CPPFLAGS)') \
52 $(if
$(libwps_LDFLAGS
),LDFLAGS
='$(libwps_LDFLAGS)') \
53 $(gb_CONFIGURE_PLATFORMS
) \
54 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
56 $(if
$(filter MACOSX
,$(OS
)),\
57 && $(PERL
) $(SRCDIR
)/solenv
/bin
/macosx-change-install-names.pl shl OOO \
58 $(EXTERNAL_WORKDIR
)/src
/lib
/.libs
/libwps-0.4
.4.dylib \
61 $(call gb_Trace_EndRange
,libwps
,EXTERNAL
)
63 # vim: set noet sw=4 ts=4: