libraries/libAfterImage: Updated for version 1.18

This commit is contained in:
Larry Hajali 2010-05-13 00:30:03 +02:00 committed by David Somero
parent 3b28737609
commit 7e126e594f
2 changed files with 11 additions and 3 deletions

View File

@ -20,10 +20,13 @@ DOCS="ChangeLog README"
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
set -e set -e
@ -45,6 +48,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--mandir=/usr/man \ --mandir=/usr/man \
@ -67,8 +71,10 @@ make
make install DESTDIR=$PKG make install DESTDIR=$PKG
( cd $PKG ( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
) )
( cd $PKG/usr/man ( cd $PKG/usr/man
@ -87,4 +93,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -2,7 +2,9 @@ PRGNAM="libAfterImage"
VERSION="1.18" VERSION="1.18"
HOMEPAGE="http://www.afterstep.org/afterimage/" HOMEPAGE="http://www.afterstep.org/afterimage/"
DOWNLOAD="ftp://ftp.afterstep.org/stable/libAfterImage/libAfterImage-1.18.tar.bz2" DOWNLOAD="ftp://ftp.afterstep.org/stable/libAfterImage/libAfterImage-1.18.tar.bz2"
DOWNLOAD_x86_64=""
MD5SUM="56a455b7710e2f3e2f9748777e87b8cd" MD5SUM="56a455b7710e2f3e2f9748777e87b8cd"
MD5SUM_x86_64=""
MAINTAINER="Larry Hajali" MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com" EMAIL="larryhaja[at]gmail[dot]com"
APPROVED="dsomero" APPROVED="dsomero"