Blame vars/libjpeg_turbo.vars

Lucio Andrés Illanes Albornoz 456d2b
#
Lucio Andrés Illanes Albornoz 2b85d0
# set +o errexit -o noglob is assumed.
Lucio Andrés Illanes Albornoz 456d2b
#
Lucio Andrés Illanes Albornoz 456d2b
Lucio Andrés Illanes Albornoz 456d2b
pkg_libjpeg_turbo_configure() {
Lucio Andrés Illanes Albornoz bf9edf
	if ! rtl_fileop rm config.cache							\
Lucio Andrés Illanes Albornoz bf9edf
	|| ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX=""		\
Lucio Andrés Illanes Albornoz bf9edf
		cmake	-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"				\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_ASM_NASM_COMPILER="${PREFIX}/bin/${PKG_TARGET}-nasm"	\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_ASM_NASM_OBJECT_FORMAT="win64"				\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_BUILD_TYPE="Debug"					\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"			\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY"			\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER"			\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_INSTALL_PREFIX=""					\
Lucio Andrés Illanes Albornoz bf9edf
			-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}"			\
Lucio Andrés Illanes Albornoz bf9edf
			-DWITH_JPEG8="ON"						\
Lucio Andrés Illanes Albornoz bf9edf
			-DWITH_SIMD="OFF"						\
Lucio Andrés Illanes Albornoz bf9edf
			"../libjpeg-turbo-${PKG_VERSION}"; then
Lucio Andrés Illanes Albornoz bf9edf
		return 1;
Lucio Andrés Illanes Albornoz bf9edf
	fi;
Lucio Andrés Illanes Albornoz bf9edf
};
Lucio Andrés Illanes Albornoz bf9edf
Lucio Andrés Illanes Albornoz bf9edf
# vim:filetype=sh textwidth=0