2020-06-26 21:12:08 +10:00
|
|
|
# Description: Library of JPEG support functions.
|
|
|
|
# URL: https://www.libjpeg-turbo.org/
|
2014-02-17 00:36:00 +11:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2014-02-17 00:46:48 +11:00
|
|
|
# Depends on: libjpeg-turbo
|
2014-02-17 00:36:00 +11:00
|
|
|
|
|
|
|
name=libjpeg-turbo-32
|
2023-10-18 11:00:30 +02:00
|
|
|
version=3.0.1
|
2016-02-14 19:43:29 +11:00
|
|
|
release=1
|
2023-07-07 23:08:35 +02:00
|
|
|
source=(https://downloads.sourceforge.net/project/libjpeg-turbo/$version/libjpeg-turbo-$version.tar.gz)
|
2014-02-17 00:36:00 +11:00
|
|
|
|
|
|
|
build() {
|
2023-07-07 23:08:35 +02:00
|
|
|
cmake -S ${name%-*}-$version -B build -G Ninja \
|
2020-11-23 21:55:19 +11:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=/usr/lib32 \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D WITH_JPEG8=ON
|
2014-02-17 00:36:00 +11:00
|
|
|
|
2020-06-26 21:12:08 +10:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2014-02-17 00:36:00 +11:00
|
|
|
|
2016-07-13 12:31:46 +10:00
|
|
|
rm -r $PKG/usr/{bin,include,share/man,share}
|
2014-02-17 00:36:00 +11:00
|
|
|
}
|