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 456d2b
        rm -f config.cache;
Lucio Andrés Illanes Albornoz 456d2b
        env     CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}"            \
Lucio Andrés Illanes Albornoz 456d2b
                PREFIX=""                                                       \
Lucio Andrés Illanes Albornoz 456d2b
	cmake   -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER                       \
Lucio Andrés Illanes Albornoz 456d2b
		-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY                        \
Lucio Andrés Illanes Albornoz 456d2b
		-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"                            \
Lucio Andrés Illanes Albornoz 456d2b
		-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"                    \
Lucio Andrés Illanes Albornoz 456d2b
		-DCMAKE_BUILD_TYPE="Debug"                                      \
Lucio Andrés Illanes Albornoz 456d2b
		-DCMAKE_INSTALL_PREFIX=                                         \
Lucio Andrés Illanes Albornoz 456d2b
		-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}"                    \
Lucio Andrés Illanes Albornoz 456d2b
		-DWITH_JPEG8=ON                                                 \
Lucio Andrés Illanes Albornoz 456d2b
		-DCMAKE_ASM_NASM_COMPILER="${PREFIX}/bin/${PKG_TARGET}-nasm"    \
Lucio Andrés Illanes Albornoz 456d2b
		-DCMAKE_ASM_NASM_OBJECT_FORMAT="win64"				\
Lucio Andrés Illanes Albornoz 456d2b
		-DWITH_SIMD=OFF							\
Lucio Andrés Illanes Albornoz 456d2b
                "../libjpeg-turbo-${PKG_VERSION}";
Lucio Andrés Illanes Albornoz 456d2b
}