Bump version to 6.4.7.2.M8
[LibreOffice.git] / external / libassuan / ExternalProject_libassuan.mk
blob899c21e4cec9f4df805510148c7f85bdfc5d2815
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,\
13 build \
16 $(eval $(call gb_ExternalProject_use_autoconf,libassuan,build))
18 $(eval $(call gb_ExternalProject_use_externals,libassuan,\
19 libgpg-error \
22 ifeq ($(COM),MSC)
23 gb_ExternalProject_libassuan_host := $(if $(filter INTEL,$(CPUNAME)),i686-mingw32,x86_64-w64-mingw32)
24 gb_ExternalProject_libassuan_target := $(if $(filter INTEL,$(CPUNAME)),pe-i386,pe-x86-64)
25 $(call gb_ExternalProject_get_state_target,libassuan,build): $(call gb_Executable_get_target,cpp)
26 $(call gb_ExternalProject_run,build,\
27 autoreconf \
28 && ./configure \
29 --enable-static \
30 --disable-shared \
31 --disable-doc \
32 $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
33 CXXFLAGS="$(CXXFLAGS)" \
34 GPG_ERROR_CFLAGS="$(GPG_ERROR_CFLAGS)" \
35 GPG_ERROR_LIBS="$(GPG_ERROR_LIBS)" \
36 --host=$(gb_ExternalProject_libassuan_host) \
37 RC='windres -O COFF --target=$(gb_ExternalProject_libassuan_target) --preprocessor=$(call gb_Executable_get_target,cpp) --preprocessor-arg=-+ -DRC_INVOKED -DWINAPI_FAMILY=0 $(SOLARINC)' \
38 MAKE=$(MAKE) \
39 && $(MAKE) \
41 else
42 $(call gb_ExternalProject_get_state_target,libassuan,build):
43 $(call gb_ExternalProject_run,build,\
44 autoreconf \
45 && ./configure \
46 --disable-doc \
47 GPG_ERROR_CFLAGS="$(GPG_ERROR_CFLAGS)" \
48 GPG_ERROR_LIBS="$(GPG_ERROR_LIBS)" \
49 $(if $(filter LINUX,$(OS)), \
50 'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
51 -Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
52 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
53 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
54 $(if $(filter TRUE,$(DISABLE_DYNLOADING)),--disable-shared,--disable-static) \
55 && $(MAKE) \
56 $(if $(filter MACOSX,$(OS)),\
57 && $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
58 $(EXTERNAL_WORKDIR)/src/.libs/libassuan.0.dylib \
59 ) \
62 endif
63 # vim: set noet sw=4 ts=4: