|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2010,2011 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2010,2011,2012 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -27,13 +27,13 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-libvpx} |
|
|
|
|
VERSION=${VERSION:-0.9.6} |
|
|
|
|
VERSION=${VERSION:-1.1.0} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-v$VERSION.tar.bz2} |
|
|
|
|
WGET=${WGET:-http://webm.googlecode.com/files/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-libvpx} |
|
|
|
|
BUILD=${BUILD:-2GGD} |
|
|
|
|
BUILD=${BUILD:-1GGD} |
|
|
|
|
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')} |
|
|
|
|
JOBS=${JOBS:-1} |
|
|
|
|
EXT=${EXT:-txz} |
|
|
|
@ -88,25 +88,19 @@ cd $NAME
|
|
|
|
|
--target=$WEBM_TARGET \ |
|
|
|
|
--enable-pic \ |
|
|
|
|
--enable-vp8 \ |
|
|
|
|
--enable-psnr \ |
|
|
|
|
--enable-postproc \ |
|
|
|
|
--enable-runtime-cpu-detect \ |
|
|
|
|
--enable-shared |
|
|
|
|
--enable-shared \ |
|
|
|
|
--disable-static |
|
|
|
|
sed -i "s,/usr/local,/usr,;s,LIBSUBDIR=lib,LIBSUBDIR=lib$LIBDIRSUFFIX," \ |
|
|
|
|
config.mk |
|
|
|
|
make -j $JOBS |
|
|
|
|
make install DESTDIR=$PKG |
|
|
|
|
|
|
|
|
|
# Remove static library |
|
|
|
|
rm $PKG/usr/lib$LIBDIRSUFFIX/libvpx.a |
|
|
|
|
|
|
|
|
|
# Strip binaries |
|
|
|
|
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \ |
|
|
|
|
xargs strip --strip-unneeded 2> /dev/null |
|
|
|
|
|
|
|
|
|
# Fix headers permissions |
|
|
|
|
find $PKG/usr/include -type f -exec chmod 644 {} \; |
|
|
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
install -m 644 AUTHORS CHANGELOG LICENSE PATENTS README \ |
|
|
|
|