blob: da4b8ba424164e741ac507786c78d386072ca82a (
plain)
1 # Description: Library of JPEG support functions.
2 # URL: https://www.libjpeg-turbo.org/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: cmake nasm
5
6 name=libjpeg-turbo
7 version=2.1.4
8 release=1
9 source=(https://downloads.sourceforge.net/project/$name/$version/$name-$version.tar.gz)
10
11 build() {
12 cmake -S $name-$version -B build -G Ninja \
13 -D CMAKE_BUILD_TYPE=Release \
14 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
15 -D CMAKE_INSTALL_PREFIX=/usr \
16 -D CMAKE_INSTALL_LIBDIR=/usr/lib \
17 -D WITH_JPEG8=ON
18 cmake --build build -j ${JOBS:-1}
19 DESTDIR=$PKG cmake --install build
20
21 rm -r $PKG/usr/share/doc
22 }
|