23 lines
613 B
Plaintext
23 lines
613 B
Plaintext
# Description: Library of JPEG support functions.
|
|
# URL: https://www.libjpeg-turbo.org/
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: nasm
|
|
|
|
name=libjpeg-turbo
|
|
version=3.0.0
|
|
release=1
|
|
source=(https://downloads.sourceforge.net/project/$name/$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
-D WITH_JPEG8=ON
|
|
cmake --build build -j ${JOBS:-1}
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
}
|