2014-01-19 22:05:15 +01:00
|
|
|
# Description: Library of JPEG support functions.
|
2020-06-25 12:19:37 +02:00
|
|
|
# URL: https://www.libjpeg-turbo.org/
|
2014-01-19 22:05:15 +01:00
|
|
|
# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
|
2019-01-15 21:03:41 +01:00
|
|
|
# Depends on: cmake, nasm
|
2013-11-17 20:52:30 +01:00
|
|
|
|
|
|
|
name=libjpeg-turbo
|
2020-06-25 12:19:37 +02:00
|
|
|
version=2.0.5
|
|
|
|
release=1
|
2014-01-19 22:05:15 +01:00
|
|
|
source=(http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-$version.tar.gz)
|
2013-11-17 20:52:30 +01:00
|
|
|
|
|
|
|
build() {
|
2020-06-25 12:19:37 +02:00
|
|
|
cmake -S $name-$version -B build \
|
|
|
|
-G"Unix Makefiles" \
|
2019-01-15 21:03:41 +01:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
|
|
-DWITH_JPEG8=ON
|
2020-06-25 12:19:37 +02:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2015-07-26 00:56:38 +02:00
|
|
|
rm -r $PKG/usr/share/doc
|
2013-11-17 20:52:30 +01:00
|
|
|
}
|