summaryrefslogtreecommitdiff
path: root/libraries/libmatroska/libmatroska.SlackBuild
diff options
context:
space:
mode:
authorOzan Türkyılmaz <ozan.turkyilmaz@gmail.com>2011-05-27 14:53:54 -0300
committerRobby Workman <rworkman@slackbuilds.org>2011-06-13 01:30:56 -0400
commit4431ef5a699795fbbe0cc26148e545b1cacdb04c (patch)
treedf018542a1d227207c705708f69e94b5bf6b1922 /libraries/libmatroska/libmatroska.SlackBuild
parent9114764a9cad5cc8c99afdd017b3a8a906c8223c (diff)
downloadslackbuilds-4431ef5a699795fbbe0cc26148e545b1cacdb04c.tar.gz
libraries/libmatroska: Updated for version 1.1.0.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries/libmatroska/libmatroska.SlackBuild')
-rw-r--r--libraries/libmatroska/libmatroska.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/libraries/libmatroska/libmatroska.SlackBuild b/libraries/libmatroska/libmatroska.SlackBuild
index 8e2ef8067f..77387acb6c 100644
--- a/libraries/libmatroska/libmatroska.SlackBuild
+++ b/libraries/libmatroska/libmatroska.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libmatroska
-VERSION=1.0.0
+VERSION=1.1.0
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,6 +40,7 @@ CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+STATICLIB=${STATICLIB:-no}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -57,6 +58,11 @@ fi
set -e
+if [ "$STATICLIB" = "yes" ]; then
+ MAKESTATICLIB="staticlib"
+ MAKESTATICLIBINSTALL="install_staticlib"
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -73,9 +79,9 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-make -C make/linux sharedlib \
+make -C make/linux $MAKESTATICLIB sharedlib \
prefix=/usr libdir=/usr/lib${LIBDIRSUFFIX}
-make -C make/linux install_sharedlib install_headers \
+make -C make/linux $MAKESTATICLIBINSTALL install_sharedlib install_headers \
prefix=$PKG/usr libdir=$PKG/usr/lib${LIBDIRSUFFIX}
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \