From be790d7cf8685474b215434e8a65a650a05e3e68 Mon Sep 17 00:00:00 2001 From: Nishant Limbachia Date: Mon, 14 Jun 2010 01:07:11 -0500 Subject: multimedia/oggvideotools: Updated for version 0.8a. Signed-off-by: Robby Workman --- multimedia/oggvideotools/oggvideotools.SlackBuild | 47 ++++++++++------------- 1 file changed, 20 insertions(+), 27 deletions(-) (limited to 'multimedia/oggvideotools/oggvideotools.SlackBuild') 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 -- cgit v1.2.3