forked from ports/compat-32
25 lines
706 B
Plaintext
25 lines
706 B
Plaintext
# Description: Library of JPEG support functions.
|
|
# URL: https://www.libjpeg-turbo.org/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: libjpeg-turbo
|
|
|
|
name=libjpeg-turbo-32
|
|
version=3.0.1
|
|
release=1
|
|
source=(https://downloads.sourceforge.net/project/libjpeg-turbo/$version/libjpeg-turbo-$version.tar.gz)
|
|
|
|
build() {
|
|
cmake -S ${name%-*}-$version -B build -G Ninja \
|
|
-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
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
rm -r $PKG/usr/{bin,include,share/man,share}
|
|
}
|