forked from StephanTLavavej/mingw-distro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libjpeg-turbo.sh
28 lines (22 loc) · 660 Bytes
/
libjpeg-turbo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
source ./0_append_distro_path.sh
untar_file libjpeg-turbo-2.0.3.tar
cd /c/temp/gcc
mv libjpeg-turbo-2.0.3 src
mkdir build dest
cd build
cmake \
"-DCMAKE_ASM_NASM_FLAGS=-DWIN64" \
"-DCMAKE_ASM_NASM_OBJECT_FORMAT=win64" \
"-DCMAKE_C_FLAGS=-s -O3 -DTWO_FILE_COMMANDLINE" \
"-DCMAKE_INSTALL_PREFIX=/c/temp/gcc/dest" \
"-DENABLE_SHARED=OFF" \
-G "Unix Makefiles" /c/temp/gcc/src
make $X_MAKE_JOBS
make $X_MAKE_JOBS install
cd /c/temp/gcc
rm -rf build src
mv dest libjpeg-turbo-2.0.3
cd libjpeg-turbo-2.0.3
rm -rf bin/cjpeg.exe bin/djpeg.exe bin/rdjpgcom.exe bin/tjbench.exe bin/wrjpgcom.exe lib/pkgconfig share
7z -mx0 a ../libjpeg-turbo-2.0.3.7z *