diff options
Diffstat (limited to 'libraries/libva')
-rw-r--r-- | libraries/libva/libva.SlackBuild | 74 | ||||
-rw-r--r-- | libraries/libva/libva.info | 12 |
2 files changed, 37 insertions, 49 deletions
diff --git a/libraries/libva/libva.SlackBuild b/libraries/libva/libva.SlackBuild index 2e5207e66a64e..eba358729a63e 100644 --- a/libraries/libva/libva.SlackBuild +++ b/libraries/libva/libva.SlackBuild @@ -1,34 +1,35 @@ #!/bin/sh -# Slackware build script for libva +# Slackware build script for "libva". -# Written by Christopher Reimer (reimer.christopher@freenet.de) - -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: +# Copyright 2010 Christopher Reimer <reimer.christopher@freenet.de> +# Copyright 2015 Marcel Saegebarth <marc@mos6581.de> +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: # -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. # -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libva -VERSION=0.31.1_1+sds4 +VERSION=${VERSION:-1.5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -SRCVERS=${VERSION//_/-} -BASEVER=$(printf $VERSION | cut -d _ -f1) - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -61,19 +62,15 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$BASEVER -tar xvf $CWD/${PRGNAM}_$SRCVERS.tar.gz -cd $PRGNAM-$BASEVER +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -for p in debian/patches/*.patch; do patch -p1 < $p; done - -autoreconf + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -84,25 +81,16 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ - --enable-shared \ - --disable-static \ - --enable-dummy-driver \ - --enable-i965-driver \ --build=$ARCH-slackware-linux # configure creates its own libtool, but that libtool seems broken: cp -a $(which libtool) . make -make install DESTDIR=$PKG - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING $PKG/usr/doc/$PRGNAM-$VERSION -cat debian/copyright > $PKG/usr/doc/$PRGNAM-$VERSION/copyright.debian -cat debian/changelog > $PKG/usr/doc/$PRGNAM-$VERSION/changelog.debian +cp -a COPYING NEWS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/libraries/libva/libva.info b/libraries/libva/libva.info index 227032a9abff2..06ec43db61093 100644 --- a/libraries/libva/libva.info +++ b/libraries/libva/libva.info @@ -1,10 +1,10 @@ PRGNAM="libva" -VERSION="0.31.1_1+sds4" -HOMEPAGE="http://www.freedesktop.org/wiki/Software/vaapi" -DOWNLOAD="http://ponce.cc/slackware/sources/repo/libva_0.31.1-1+sds4.tar.gz" -MD5SUM="4610a0d16d19f25cdf98f0fb1ef5902a" +VERSION="1.5.0" +HOMEPAGE="http://www.freedesktop.org/wiki/Software/vaapi/" +DOWNLOAD="http://www.freedesktop.org/software/vaapi/releases/libva/libva-1.5.0.tar.bz2" +MD5SUM="ad0b55794308ec397d249a0a2a6df27a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Christopher Reimer" -EMAIL="reimer.christopher@freenet.de" +MAINTAINER="Marcel Saegebarth" +EMAIL="marc@mos6581.de" |