diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-05-13 00:29:18 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 00:29:18 +0200 |
commit | 925b3555bc45c1c21f9d835f5408cf149103c23e (patch) | |
tree | b27145c9be3b7ed48c10a9482f5d4e0310f5d799 /libraries/enca/enca.SlackBuild | |
parent | e7fdb9b8e2ff0094519ad582c3f4d0964f6ba119 (diff) | |
download | slackbuilds-925b3555bc45c1c21f9d835f5408cf149103c23e.tar.gz |
libraries/enca: Updated for version 1.13
Diffstat (limited to 'libraries/enca/enca.SlackBuild')
-rw-r--r-- | libraries/enca/enca.SlackBuild | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/libraries/enca/enca.SlackBuild b/libraries/enca/enca.SlackBuild index c52e5c3276..1c3a9d4ee8 100644 --- a/libraries/enca/enca.SlackBuild +++ b/libraries/enca/enca.SlackBuild @@ -3,7 +3,7 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=enca -VERSION=${VERSION:-1.9} +VERSION=${VERSION:-1.13} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -15,13 +15,16 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi -set -eu +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -40,11 +43,9 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --mandir=/usr/man \ --enable-static=no \ - --enable-shared=yes \ --enable-gtk-doc \ --enable-external \ --build=$ARCH-slackware-linux @@ -65,12 +66,14 @@ make install DESTDIR=$PKG ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS ChangeLog* COPYING FAQ INSTALL NEWS \ - README* THANKS TODO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS ChangeLog* COPYING FAQ INSTALL README* THANKS TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +(cd $PKG/usr/doc/$PRGNAM-$VERSION; ln -s ../../share/gtk-doc/html/libenca html) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc 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} |