Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / external / libjpeg-turbo / ExternalProject_libjpeg-turbo.mk
bloba86b474e719ec80d5290cb9626b5f67dee8ecfb6
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,libjpeg-turbo))
12 $(eval $(call gb_ExternalProject_use_autoconf,libjpeg-turbo,configure))
13 $(eval $(call gb_ExternalProject_use_autoconf,libjpeg-turbo,build))
15 $(eval $(call gb_ExternalProject_register_targets,libjpeg-turbo,\
16 configure \
17 build \
20 $(call gb_ExternalProject_get_state_target,libjpeg-turbo,build) : $(call gb_ExternalProject_get_state_target,libjpeg-turbo,configure)
21 +$(call gb_ExternalProject_run,build,\
22 $(MAKE) \
25 $(call gb_ExternalProject_get_state_target,libjpeg-turbo,configure) :
26 $(call gb_ExternalProject_run,configure,\
27 MAKE=$(MAKE) ./configure \
28 --build=$(if $(filter WNT,$(OS)),$(if $(filter INTEL,$(CPUNAME)),i686-pc-cygwin,x86_64-pc-cygwin),$(BUILD_PLATFORM)) \
29 --host=$(if $(filter WNT,$(OS)),$(if $(filter INTEL,$(CPUNAME)),i686-pc-cygwin,x86_64-pc-cygwin),$(HOST_PLATFORM)) \
30 --with-pic \
31 --enable-static \
32 --disable-shared \
33 --without-java \
34 --without-turbojpeg \
35 $(if $(NASM),,--without-simd) \
36 CFLAGS='$(if $(debug),$(gb_DEBUGINFO_FLAGS) $(gb_DEBUG_CFLAGS)) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) $(CFLAGS) $(gb_VISIBILITY_FLAGS)' \
39 # vim: set noet sw=4 ts=4: