summaryrefslogtreecommitdiff
path: root/repo/libjpeg-turbo/libjpeg-turbo.xibuild
blob: 5840097ba87dd149a64eecfab48f65ce3cb408dc (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.3
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
}