blob: ca35f800672cb9889657ff9c7eb2a80f6d186976 (
plain)
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
|
#!/bin/sh
NAME="libjpeg-turbo"
DESC="Accelerated baseline JPEG compression and decompression library"
MAKEDEPS=""
DEPS="musl "
PKG_VER=2.1.4
SOURCE="https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-$PKG_VER.tar.gz"
build () {
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DBUILD_SHARED_LIBS=True \
-DWITH_JPEG8=1 \
-DBUILD_STATIC_LIBS=OFF
cmake --build build
}
package () {
DESTDIR="$PKG_DEST" cmake --install build
}
|