Subject: [alpine-devel] fix shared objects

From: "Carlo Landmeter" <[email-masked]>
Date: Fri, 30 Jan 2009 15:49:55 +0000

see git patch.

carlo

From 67348b3e114cbfd9bd3770815e2ada2eaf7f5455 Mon Sep 17 00:00:00 2001
From: Carlo Landmeter <[email-masked]>
Date: Fri, 30 Jan 2009 15:48:35 +0000
Subject: [PATCH] extra/libjpeg: fix shared objects

---
 extra/libjpeg/APKBUILD |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/extra/libjpeg/APKBUILD b/extra/libjpeg/APKBUILD
index 8a4374b..54545ff 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"
-- 
1.6.1

---

From: Natanael Copa <[email-masked]>
Date: Mon, 02 Feb 2009 11:05:48 +0100

> carlo

committed.
thanks!

-nc

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---