wok-next rev 11721
giflib: Add libungif compatibility.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Feb 20 14:11:54 2012 -0500 (2012-02-20) |
parents | aa285ce6348c |
children | a91f4b450f79 |
files | giflib/receipt |
line diff
1.1 --- a/giflib/receipt Mon Feb 20 17:53:47 2012 +0100 1.2 +++ b/giflib/receipt Mon Feb 20 14:11:54 2012 -0500 1.3 @@ -16,12 +16,18 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 + sed -i '/AC_PATH_XTRA/d' configure.ac 1.8 + libtoolize -f 1.9 + autoreconf 1.10 ./configure \ 1.11 - --prefix=/usr \ 1.12 - --infodir=/usr/share/info \ 1.13 - --mandir=/usr/share/man \ 1.14 $CONFIGURE_ARGS && 1.15 - make && make DESTDIR=$PWD/_pkg install 1.16 + make && make DESTDIR=$DESTDIR install 1.17 + # libungif compatibility - instructions taken from Redhat specfile 1.18 + MAJOR=`echo $VERSION | sed 's/\([0-9]\+\)\..*/\1/'` 1.19 + gcc -shared -Wl,-soname,libungif.so.${MAJOR} -Llib/.libs -lgif -o libungif.so.$VERSION 1.20 + install -m755 libungif.so.${VERSION} "$DESTDIR/usr/lib/" 1.21 + ln -sf libungif.so.$VERSIN "$DESTDIR/usr/lib/libungif.so.4" 1.22 + ln -sf libungif.so.4 "$DESTDIR/usr/lib/libungif.so" 1.23 } 1.24 1.25 # Rules to gen a SliTaz package suitable for Tazpkg.