summaryrefslogtreecommitdiffstats
path: root/multimedia/lives/lives.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/lives/lives.SlackBuild')
-rw-r--r--multimedia/lives/lives.SlackBuild46
1 files changed, 27 insertions, 19 deletions
diff --git a/multimedia/lives/lives.SlackBuild b/multimedia/lives/lives.SlackBuild
index c224ef53ef..972da8be9e 100644
--- a/multimedia/lives/lives.SlackBuild
+++ b/multimedia/lives/lives.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for "lives".
@@ -26,11 +26,14 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=lives
SRCNAM=LiVES
-VERSION=${VERSION:-3.0.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.2.0}
+BUILD=${BUILD:-5}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -40,7 +43,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -81,16 +91,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Don't build toonz plugin if opencv-legacy is found (breaks build)
-# (opencv 4.x reports as opencv4):
-if [ pkg-config --exists opencv ]; then
- sed -i -e '/toonz/d' lives-plugins/weed-plugins/Makefile.am
- autoreconf -fiv
- automake
-fi
+CV="--disable-opencv" ; [ "${OPENCV:-no}" = "yes" ] && CV=""
+PA="--disable-pulse" ; [ "${PULSE:-yes}" = "yes" ] && PA=""
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS -std=c++11" \
+CFLAGS="$SLKCFLAGS -I/usr/include/tirpc -Wl,-ltirpc" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -98,25 +103,28 @@ CXXFLAGS="$SLKCFLAGS -std=c++11" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-ffmpeg \
+ $PA \
+ $CV \
--build=$ARCH-slackware-linux
-make -j1 # Parallel builds have a tendency to fail
+make || make -j1 || exit 1
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- ABOUT-NLS AUTHORS COPYING ChangeLog FEATURES GETTING.STARTED INSTALL \
- NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/lives/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -rf $PKG/usr/share/doc
(
cd $PKG/usr/bin && rm -f lives && ln -s lives-exe lives
)
+rm -f $PKG/usr/lib*/*.la
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
@@ -130,4 +138,4 @@ if [ "${SETCAP:-yes}" = "yes" ]; then
fi
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE