summaryrefslogtreecommitdiffstats
path: root/audio/lv2/lv2.SlackBuild
diff options
context:
space:
mode:
author Matteo Bernardini <ponce@slackbuilds.org>2023-06-25 19:45:48 +0200
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-02 23:21:27 +0700
commit3c63f109762abd089cff2b8e9c9acfb3718011ed (patch)
tree569f1fe90cc1de03227c1b3a13df90743f528f1b /audio/lv2/lv2.SlackBuild
parente173ac659c6edfe4e947a74de5c3b12361105e35 (diff)
downloadslackbuilds-3c63f109762abd089cff2b8e9c9acfb3718011ed.tar.gz
slackbuilds-3c63f109762abd089cff2b8e9c9acfb3718011ed.tar.xz
audio/lv2: Updated for version 1.18.10, switch to meson.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/lv2/lv2.SlackBuild')
-rw-r--r--audio/lv2/lv2.SlackBuild32
1 files changed, 22 insertions, 10 deletions
diff --git a/audio/lv2/lv2.SlackBuild b/audio/lv2/lv2.SlackBuild
index f6184379c8..7d6ac143a8 100644
--- a/audio/lv2/lv2.SlackBuild
+++ b/audio/lv2/lv2.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for lv2core
# Copyright 2008-2016 Heinz Wiesinger, Amsterdam, The Netherlands
-# Copyright 2020 Matteo Bernardini, Pisa, Italy
+# Copyright 20202023 Matteo Bernardini, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lv2
-VERSION=${VERSION:-1.18.0}
+VERSION=${VERSION:-1.18.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -71,7 +71,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -80,13 +80,25 @@ 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 {} \;
-./waf configure \
- --prefix=/usr \
- --libdir=/usr/lib$LIBDIRSUFFIX \
- --lv2dir=/usr/lib$LIBDIRSUFFIX/lv2
-
-./waf build
-./waf install --destdir=$PKG
+sed -i meson.build -e "s|^lv2_docdir.*|lv2_docdir = '/usr/doc/$PRGNAM-$VERSION'|"
+
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ -Dlv2dir=/usr/lib${LIBDIRSUFFIX}/lv2 \
+ -Dstrip=true
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
mkdir -p $PKG/etc/profile.d