blob: 82fff538cb25526b3494ba1c1f575bd9578860f5 (
plain)
1 # Description: Library of JPEG support functions.
2 # URL: https://www.libjpeg-turbo.org/
3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
4 # Depends on: libjpeg-turbo
5
6 name=libjpeg-turbo-32
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 prt-get isinst ninja && PKGMK_LIBJPEG_TURBO_32+=' -G Ninja'
13 cmake -S ${name%-*}-$version -B build ${PKGMK_LIBJPEG_TURBO_32} \
14 -G "Unix Makefiles" \
15 -D CMAKE_INSTALL_PREFIX=/usr \
16 -D CMAKE_INSTALL_LIBDIR=/usr/lib32 \
17 -D CMAKE_BUILD_TYPE=Release \
18 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
19 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
20 -D WITH_JPEG8=ON
21
22 cmake --build build
23 DESTDIR=$PKG cmake --install build
24
25 rm -r $PKG/usr/{bin,include,share/man,share}
26 }
|