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
,libassuan
))
12 $(eval
$(call gb_ExternalProject_register_targets
,libassuan
,\
16 $(eval
$(call gb_ExternalProject_use_autoconf
,libassuan
,build
))
18 $(eval
$(call gb_ExternalProject_use_externals
,libassuan
,\
24 $(call gb_ExternalProject_get_state_target
,libassuan
,build
): $(call gb_Executable_get_target_for_build
,cpp)
25 $(call gb_Trace_StartRange
,libassuan
,EXTERNAL
)
26 $(call gb_ExternalProject_run
,build
,\
27 $(gb_WIN_GPG_cross_setup_exports
) \
29 && $(gb_RUN_CONFIGURE
) .
/configure \
33 $(if
$(verbose
),--disable-silent-rules
,--enable-silent-rules
) \
34 CFLAGS
="$(CFLAGS) -D__STDC__=1 $(call gb_ExternalProject_get_build_flags,libassuan)" \
35 GPG_ERROR_CFLAGS
="$(GPG_ERROR_CFLAGS)" \
36 GPG_ERROR_LIBS
="$(GPG_ERROR_LIBS)" \
37 $(gb_WIN_GPG_platform_switches
) \
41 $(call gb_Trace_EndRange
,libassuan
,EXTERNAL
)
43 $(call gb_ExternalProject_get_state_target
,libassuan
,build
):
44 $(call gb_Trace_StartRange
,libassuan
,EXTERNAL
)
45 $(call gb_ExternalProject_run
,build
,\
47 && $(gb_RUN_CONFIGURE
) .
/configure \
49 CFLAGS
="$(CFLAGS) $(call gb_ExternalProject_get_build_flags,libassuan)" \
50 GPG_ERROR_CFLAGS
="$(GPG_ERROR_CFLAGS)" \
51 GPG_ERROR_LIBS
="$(GPG_ERROR_LIBS)" \
52 $(if
$(filter LINUX
,$(OS
)), \
53 'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
54 -Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
55 $(gb_CONFIGURE_PLATFORMS
) \
56 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
57 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),--disable-shared
,--disable-static
) \
59 $(if
$(filter MACOSX
,$(OS
)),\
60 && $(PERL
) $(SRCDIR
)/solenv
/bin
/macosx-change-install-names.pl shl OOO \
61 $(EXTERNAL_WORKDIR
)/src
/.libs
/libassuan
.0.dylib \
64 $(call gb_Trace_EndRange
,libassuan
,EXTERNAL
)
67 # vim: set noet sw=4 ts=4: