aboutsummaryrefslogtreecommitdiff
path: root/libraries/libebml/libebml.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libebml/libebml.SlackBuild')
-rw-r--r--libraries/libebml/libebml.SlackBuild19
1 files changed, 13 insertions, 6 deletions
diff --git a/libraries/libebml/libebml.SlackBuild b/libraries/libebml/libebml.SlackBuild
index 47cfbc04c4085..ecae168331448 100644
--- a/libraries/libebml/libebml.SlackBuild
+++ b/libraries/libebml/libebml.SlackBuild
@@ -1,10 +1,9 @@
-#!/bin/sh
+#!/bin/sh
# Slackware build script for libebml
-#
+
# Copyright 2008,2009,2010 Andrew Strong (http://www.andrews-corner.org)
# All rights reserved.
-# Maintained by Ozan Türkyılmaz ozan.turkyilmaz@gmail.com
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
@@ -23,11 +22,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Maintained by Ozan Türkyılmaz ozan.turkyilmaz@gmail.com
+
PRGNAM=libebml
-VERSION=${VERSION:-1.0.0}
+VERSION=${VERSION:-1.2.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+STATICLIB=${STATICLIB:-no}
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -56,6 +59,10 @@ else
fi
set -e
+if [ "$STATICLIB" = "yes" ]; then
+ MAKESTATICLIB="staticlib"
+ MAKESTATICLIBINSTALL="install_staticlib"
+fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -72,9 +79,9 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-make -C make/linux sharedlib \
+make -C make/linux sharedlib $MAKESTATICLIB \
prefix=/usr libdir=/usr/lib${LIBDIRSUFFIX}
-make -C make/linux install_sharedlib install_headers \
+make -C make/linux install_sharedlib $MAKESTATICLIBINSTALL install_headers \
prefix=$PKG/usr libdir=$PKG/usr/lib${LIBDIRSUFFIX}
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \