multimedia/dirac: Updated for version 1.0.2

This commit is contained in:
Nishant Limbachia 2010-05-13 00:34:37 +02:00 committed by David Somero
parent a25fd4f6d3
commit 313d6a1a39
3 changed files with 17 additions and 12 deletions

View File

@ -6,10 +6,10 @@
# Copyright (c) 2008, Nishant Limbachia (nishant@mnspace.net) # Copyright (c) 2008, Nishant Limbachia (nishant@mnspace.net)
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met: # permitted provided that the following conditions are met:
# #
# 1. Redistributions of script must retain the above copyright notice, # 1. Redistributions of script must retain the above copyright notice,
# this list of conditions and the following disclaimer. # this list of conditions and the following disclaimer.
# #
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@ -37,10 +37,13 @@ OUTPUT=${OUTPUT:-/tmp}
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 # Exit on most errors set -e # Exit on most errors
@ -61,6 +64,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 \
@ -75,20 +79,19 @@ make install \
DESTDIR=$PKG DESTDIR=$PKG
( cd $PKG ( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null 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
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
) )
cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION cp -a \
AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
( 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
)
mkdir -p $PKG/install 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="dirac"
VERSION="1.0.2" VERSION="1.0.2"
HOMEPAGE="http://diracvideo.org/" HOMEPAGE="http://diracvideo.org/"
DOWNLOAD="http://diracvideo.org/download/dirac-research/dirac-1.0.2.tar.gz" DOWNLOAD="http://diracvideo.org/download/dirac-research/dirac-1.0.2.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="a57c2c5e58062d437d9ab13dffb28f0f" MD5SUM="a57c2c5e58062d437d9ab13dffb28f0f"
MD5SUM_x86_64=""
MAINTAINER="Nishant Limbachia" MAINTAINER="Nishant Limbachia"
EMAIL="nishant@mnspace.net" EMAIL="nishant@mnspace.net"
APPROVED="dsomero" APPROVED="dsomero"

View File

@ -11,7 +11,7 @@ dirac:
dirac: Dirac is an advanced royalty-free video compression format designed dirac: Dirac is an advanced royalty-free video compression format designed
dirac: for a wide range of uses, from delivering low-resolution web content dirac: for a wide range of uses, from delivering low-resolution web content
dirac: to broadcasting HD and beyond, to near-lossless studio editing. dirac: to broadcasting HD and beyond, to near-lossless studio editing.
dirac: dirac:
dirac: Homepage: http://diracvideo.org/ dirac: Homepage: http://diracvideo.org/
dirac: dirac:
dirac: dirac: