xap/gpac: Upgraded to gpac-0.5.0.

slackware-14.2
Damien Goutte-Gattat 9 years ago
parent 45378f083e
commit 34bd3eb8d6
  1. 1
      xap/gpac/gpac-0.5.0.tar.gz.sha1
  2. 1
      xap/gpac/gpac-svn2234.tar.bz2.sha1
  3. 30
      xap/gpac/gpac.SlackBuild

@ -0,0 +1 @@
48ba16272bfa153abb281ff8ed31b5dddf60cf20 gpac-0.5.0.tar.gz

@ -1 +0,0 @@
b922803a33a60d84472cdc88418fe3aa46a0b26a gpac-svn2234.tar.bz2

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010 Damien Goutte-Gattat
# Copyright (C) 2010,2013 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -24,18 +24,19 @@
#
# Latest gpac sourcecode is available at: <http://gpac.sourceforge.net/>.
#
# Recommends: l/wxwidgets-gtk, xap/ffmpeg
# Recommends: l/wxwidgets-gtk, xap/ffmpeg, l/liba52, l/faad2
# Source package infos
NAMESRC=${NAMESRC:-gpac}
REVISION=${REVISION:-2234}
ARCHIVE=${ARCHIVE:-$NAMESRC-svn$REVISION.tar.bz2}
REPOS=${REPOS:-http://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac}
VERSION=${VERSION:-0.5.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://downloads.sourceforge.net/gpac/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-gpac}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
@ -73,10 +74,8 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
svn export -r $REVISION $REPOS
mv gpac gpac-svn$REVISION
tar cjf $ARCHIVE gpac-svn$REVISION
rm -rf gpac-svn$REVISION
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -86,12 +85,13 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS="$CPUOPT" \
CXXFLAGS="$CPUOPT" \
./configure \
--prefix=/usr \
--mandir=/usr/man \
--extra-cflags="$CPUOPT" \
--enable-pic
make
--libdir=lib$LIBDIRSUFFIX
make -j $JOBS
make install DESTDIR=$PKG
# Strip binaries
@ -102,10 +102,10 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 AUTHORS BUGS COPYING Changelog README TODO \
doc/CODING_STYLE doc/SceneGenerators doc/configuration.html \
doc/ipmpx_syntax.bt $PKG/usr/doc/$NAME
doc/ipmpx_syntax.bt $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -115,7 +115,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-svn$REVISION-$ARCH-$BUILD.$EXT
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save