multimedia/dvdauthor: Updated for version 0.7.0.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Niels Horn 2010-10-24 23:37:18 -04:00 committed by Erik Hanson
parent e9fe55c10a
commit e1b729bea7
3 changed files with 9 additions and 34 deletions

View file

@ -23,19 +23,17 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Maintained as of version 0.6.18 by Niels Horn <niels.horn@gmail.com>
# Revision date: 2010/06/21
# Revision date: 2010/10/23
PRGNAM=dvdauthor
VERSION=${VERSION:-0.6.18}
VERSION=${VERSION:-0.7.0}
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
@ -45,8 +43,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
PDOCS="AUTHORS ChangeLog COPYING INSTALL NEWS README TODO"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@ -72,9 +68,6 @@ cd $PRGNAM
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# Patch for new libpng
patch -p1 < $CWD/png14.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@ -89,7 +82,9 @@ make
make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $PDOCS $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
find $PKG/usr/man -type f -exec gzip -9 {} \;

View file

@ -1,10 +1,10 @@
PRGNAM="dvdauthor"
VERSION="0.6.18"
VERSION="0.7.0"
HOMEPAGE="http://dvdauthor.sf.net"
DOWNLOAD="http://downloads.sourceforge.net/dvdauthor/dvdauthor-0.6.18.tar.gz"
MD5SUM="ded5373800ac6448ff044606f5047550"
DOWNLOAD="http://downloads.sourceforge.net/dvdauthor/dvdauthor-0.7.0.tar.gz"
MD5SUM="33a447fb98ab3293ac40f869eedc17ff"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Niels Horn"
EMAIL="niels.horn@gmail.com"
APPROVED="rworkman"
APPROVED="dsomero"

View file

@ -1,20 +0,0 @@
--- dvdauthor/src/subgen-image.c 2010-03-13 05:14:07.000000000 -0300
+++ dvdauthor_patched/src/subgen-image.c 2010-06-11 08:10:04.000000000 -0300
@@ -226,7 +226,7 @@
png_struct *ps;
png_info *pi;
png_byte **rowp;
- unsigned long width,height;
+ png_uint_32 width,height;
int bit_depth,color_type,channels,x,y;
fp=fopen(s->fname,"rb");
@@ -271,7 +271,7 @@
assert(bit_depth==8); // 8bpp, not 1, 2, 4, or 16
assert(!(color_type&PNG_COLOR_MASK_PALETTE)); // not a palette
if( width>MAXX || height>MAXY ) {
- fprintf(stderr,"ERR: PNG %s is too big: %lux%lu\n",s->fname,width,height);
+ fprintf(stderr,"ERR: PNG %s is too big: %lux%lu\n",s->fname,(long unsigned int)width,(long unsigned int)height);
png_destroy_read_struct(&ps,&pi,NULL);
return -1;
}