Commit a2f32775 authored by Phil's avatar Phil
Browse files

libjpeg-turbo: add proper libjpeg6 support

parent 6f63caab
......@@ -5,7 +5,7 @@
pkgname=libjpeg-turbo
pkgver=1.1.1
pkgrel=2
pkgrel=3
pkgdesc="libjpeg derivative with accelerated baseline JPEG compression and decompression"
arch=('i686' 'x86_64')
url="http://libjpeg-turbo.virtualgl.org/"
......@@ -21,6 +21,13 @@ md5sums=('03b9c1406c7bfdc204313c2917ce6962')
build() {
cd "$srcdir/$pkgname-$pkgver"
# create libjpeg6
./configure --prefix=/usr --with-jpeg6 --mandir=/usr/share/man
make
mkdir -p $srcdir/libjpeg6
cp .libs/libjpeg.so.6* $srcdir/libjpeg6
rm -R .libs
# create libjpeg8
./configure --prefix=/usr --with-jpeg8 --mandir=/usr/share/man
make
}
......@@ -28,6 +35,20 @@ build() {
package() {
cd "$srcdir/$pkgname-$pkgver"
# install libjpeg6
mkdir -p $pkgdir/usr/lib
cp -v $srcdir/libjpeg6/libjpeg.so.6* $pkgdir/usr/lib
# install libjpeg8
make DESTDIR="$pkgdir/" install
# provide jpegint.h as it is required by various software
install -m644 jpegint.h $pkgdir/usr/include/
# do not distributre libturbojpeg as it is unversioned
rm $pkgdir/usr/lib/libturbojpeg.{so,a}
rm $pkgdir/usr/include/turbojpeg.h
rm $pkgdir/usr/bin/jpgtest
install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/libjpeg-turbo/LICENSE
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment