aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extra/libjpeg/APKBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/extra/libjpeg/APKBUILD b/extra/libjpeg/APKBUILD
index 8a4374b247..54545ff04f 100644
--- a/extra/libjpeg/APKBUILD
+++ b/extra/libjpeg/APKBUILD
@@ -2,12 +2,12 @@
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=libjpeg
pkgver=6b
-pkgrel=0
+pkgrel=1
pkgdesc="Library of JPEG support functions"
url="http://www.ijg.org/"
license="custom"
depends=""
-makedepends=""
+makedepends="libtool"
install=
subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v${pkgver}.tar.gz"
@@ -15,15 +15,21 @@ source="ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v${pkgver}.tar.gz"
build() {
cd "$srcdir/jpeg-$pkgver"
+ cp /usr/share/libtool/config/config.guess ./
+ cp /usr/share/libtool/config/config.sub ./
+ sed -i "s|./libtool|libtool|" configure
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info
+ --infodir=/usr/share/info \
+ --enable-shared \
+ --enable-static
make || return 1
for i in bin lib include share/man/man1; do
mkdir -p "$pkgdir"/usr/"$i"
done
make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man/man1 install
+ install -Dm644 jpegint.h "$pkgdir"/usr/include/jpegint.h
}
md5sums="dbd5f3b47ed13132f04c685d608a7547 jpegsrc.v6b.tar.gz"