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
,\
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
,\
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
)) \
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: