mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/libjpeg-turbo to 2.0.0-1
This commit is contained in:
parent
832eec111a
commit
ca09cf0cc6
1 changed files with 13 additions and 18 deletions
|
@ -4,25 +4,23 @@
|
|||
# Contributor: Simone Sclavi 'Ito' <darkhado@gmail.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - removed makedepends on nasm and java
|
||||
# - added --without-simd to configure for !AArch64
|
||||
# - removed makedepends on nasm and java, -DWITH_JAVA=0
|
||||
# - added -DWITH_SIMD=FALSE to configure for !AArch64
|
||||
|
||||
pkgname=libjpeg-turbo
|
||||
pkgver=1.5.3
|
||||
pkgver=2.0.0
|
||||
pkgrel=1
|
||||
pkgdesc='JPEG image codec with accelerated baseline compression and decompression'
|
||||
url='https://libjpeg-turbo.org/'
|
||||
arch=('x86_64')
|
||||
license=('custom')
|
||||
#makedepends=('nasm' 'jdk8-openjdk')
|
||||
makedepends=('cmake')
|
||||
validpgpkeys=('7D6293CC6378786E1B5C496885C7044E033FDE16')
|
||||
source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.sig})
|
||||
sha256sums=('b24890e2bb46e12e72a79f7e965f409f4e16466d00e1dd15d93d73ee6b592523'
|
||||
sha256sums=('778876105d0d316203c928fd2a0374c8c01f755d0a00b12a1c8934aeccff8868'
|
||||
'SKIP')
|
||||
|
||||
provides=('libjpeg=8.1.2' 'turbojpeg')
|
||||
conflicts=('libjpeg' 'turbojpeg')
|
||||
replaces=('libjpeg' 'turbojpeg')
|
||||
provides=('libjpeg=8.2.2')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
@ -32,17 +30,14 @@ prepare() {
|
|||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
|
||||
# make the build reproducible
|
||||
_build=$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y%m%d)
|
||||
[[ $CARCH != "aarch64" ]] && CONFIG="-DWITH_SIMD=FALSE"
|
||||
|
||||
export JNI_CFLAGS='-I/usr/lib/jvm/default/include -I/usr/lib/jvm/default/include/linux'
|
||||
[[ $CARCH != "aarch64" ]] && CONFIG="--without-simd"
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/share/man \
|
||||
--with-jpeg8 \
|
||||
--with-build-date=$_build \
|
||||
$CONFIG
|
||||
cmake \
|
||||
-DWITH_JAVA=0 \
|
||||
-DWITH_JPEG8=1 \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
||||
$CONFIG .
|
||||
|
||||
make
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue