diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2010-06-14 01:07:11 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-06-14 03:18:18 -0500 |
commit | be790d7cf8685474b215434e8a65a650a05e3e68 (patch) | |
tree | 7ef9e94e6aa17d50bf69e7d6228657a1dac84163 /multimedia/oggvideotools/oggvideotools.SlackBuild | |
parent | eece87f92914696f281cc267221129821941f886 (diff) | |
download | slackbuilds-be790d7cf8685474b215434e8a65a650a05e3e68.tar.gz |
multimedia/oggvideotools: Updated for version 0.8a.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'multimedia/oggvideotools/oggvideotools.SlackBuild')
-rw-r--r-- | multimedia/oggvideotools/oggvideotools.SlackBuild | 47 |
1 files changed, 20 insertions, 27 deletions
diff --git a/multimedia/oggvideotools/oggvideotools.SlackBuild b/multimedia/oggvideotools/oggvideotools.SlackBuild index d0dc807c9b..1fe3e8e853 100644 --- a/multimedia/oggvideotools/oggvideotools.SlackBuild +++ b/multimedia/oggvideotools/oggvideotools.SlackBuild @@ -3,7 +3,7 @@ # Slackware Package Build Script for OggVideoTools # Home Page http://dev.streamnik.de/oggvideotools.html -# Copyright (c) 2009, Nishant Limbachia, Hoffman Est, IL, USA (nishant@mnspace.net) +# Copyright (c) 2009-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,16 +25,14 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=oggvideotools -VERSION=0.8 +VERSION=0.8a BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -58,7 +56,7 @@ else LIBDIRSUFFIX="" fi -set -e # Exit on most errors +set -e rm -fr $TMP/$PRGNAM-$VERSION $PKG mkdir -p $TMP $PKG $OUTPUT @@ -72,31 +70,26 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --localstatedir=/var \ - --mandir=/usr/man \ - --infodir=/usr/info \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --build=$ARCH-slackware-linux +mkdir build +cd build + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + cmake .. \ + -DCMAKE_INSTALL_PREFIX:STRING="/usr" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_VERBOSE_MAKEFILE:BOOL="TRUE" \ + -DLIB_SUFFIX:STRING="$LIBDIRSUFFIX" + make + make DESTDIR=$PKG install/strip +cd - -make -make install-strip DESTDIR=$PKG +find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html - -cp -a AUTHORS ChangeLog COPYING INSTALL \ - NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION -cp -a docs/*.html docs/DocuOggVideoTools.pdf $PKG/usr/doc/$PRGNAM-$VERSION/html - -( cd $PKG/usr/man || exit 1 - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -) +cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README* TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION +cp -a docs/*.html $PKG/usr/doc/$PRGNAM-$VERSION/html mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |