libjpeg-turbo: cleaner build

This commit is contained in:
Dylan Araps 2019-11-13 02:36:33 +00:00
parent b322506cbb
commit c8d801f227
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 5 additions and 3 deletions

View File

@ -1,11 +1,13 @@
#!/bin/sh -e
cmake \
export DESTDIR="$1"
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_JPEG8=1
make
make DESTDIR="$1" install
cmake --build build
cmake --install build