2021-01-23 12:59:23 +01:00
|
|
|
# Description: Library of JPEG support functions.
|
2021-11-19 09:41:30 +01:00
|
|
|
# URL: https://www.libjpeg-turbo.org/
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2023-07-04 12:19:13 +02:00
|
|
|
# Depends on: nasm
|
2013-11-17 20:52:30 +01:00
|
|
|
|
|
|
|
name=libjpeg-turbo
|
2024-09-16 11:36:13 +02:00
|
|
|
version=3.0.4
|
2020-06-25 12:19:37 +02:00
|
|
|
release=1
|
2024-01-25 18:00:50 +01:00
|
|
|
source=(https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/$version/$name-$version.tar.gz)
|
2013-11-17 20:52:30 +01:00
|
|
|
|
|
|
|
build() {
|
2021-12-14 10:01:51 +01:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
2021-01-23 12:59:23 +01:00
|
|
|
-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}
|
2020-06-25 12:19:37 +02:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2021-12-14 10:01:51 +01:00
|
|
|
|
2015-07-26 00:56:38 +02:00
|
|
|
rm -r $PKG/usr/share/doc
|
2013-11-17 20:52:30 +01:00
|
|
|
}
|