summaryrefslogtreecommitdiffhomepage
path: root/vars/libjpeg_turbo.vars
blob: e36bcf6e11995cb042103f499f6b6472544b84c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# set -o errexit -o noglob are assumed.
#

pkg_libjpeg_turbo_configure() {
        rm -f config.cache;
        env     CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}"            \
                PREFIX=""                                                       \
	cmake   -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER                       \
		-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY                        \
		-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"                            \
		-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"                    \
		-DCMAKE_BUILD_TYPE="Debug"                                      \
		-DCMAKE_INSTALL_PREFIX=                                         \
		-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}"                    \
		-DWITH_JPEG8=ON                                                 \
		-DCMAKE_ASM_NASM_COMPILER="${PREFIX}/bin/${PKG_TARGET}-nasm"    \
		-DCMAKE_ASM_NASM_OBJECT_FORMAT="win64"				\
		-DWITH_SIMD=OFF							\
                "../libjpeg-turbo-${PKG_VERSION}";
}