aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/mda-lv2/mda-lv2.SlackBuild41
-rw-r--r--audio/mda-lv2/mda-lv2.info6
2 files changed, 25 insertions, 22 deletions
diff --git a/audio/mda-lv2/mda-lv2.SlackBuild b/audio/mda-lv2/mda-lv2.SlackBuild
index 1a00edfc5368..b2a09cbff421 100644
--- a/audio/mda-lv2/mda-lv2.SlackBuild
+++ b/audio/mda-lv2/mda-lv2.SlackBuild
@@ -6,10 +6,13 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20230112 bkw: updated for v1.2.10. build process changed, won't
+# be able to build old versions.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mda-lv2
-VERSION=${VERSION:-1.2.6}
+VERSION=${VERSION:-1.2.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -51,31 +54,31 @@ 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 . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
-# The include structure for lv2 has changed drastically. Recreating
-# the old structure is easier than patching all the includes in all
-# the source files.
-mkdir -p lv2includes/lv2/core
-ln -s /usr/include/lv2/lv2plug.in/ns/ext/* lv2includes/lv2
-ln -s /usr/include/lv2.h lv2includes/lv2/core
-
-SLKCFLAGS="$SLKCFLAGS -I$(pwd)/lv2includes"
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS -std=c++11" \
-./waf configure build install \
- --prefix=/usr \
- --lv2dir=/usr/lib$LIBDIRSUFFIX/lv2 \
- --destdir=$PKG
-
-strip $PKG/usr/lib*/lv2/mda.lv2/*.so
+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 \
+ -Dstrip=true
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING README* NEWS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSES/* README* NEWS $PKG/usr/doc/$PRGNAM-$VERSION
# All the documentation on the individual plugins is buried in the .ttl
# files as comments, which none of my LV2 hosts will display. It's useful
diff --git a/audio/mda-lv2/mda-lv2.info b/audio/mda-lv2/mda-lv2.info
index dd828455b721..d8587a1a31a0 100644
--- a/audio/mda-lv2/mda-lv2.info
+++ b/audio/mda-lv2/mda-lv2.info
@@ -1,8 +1,8 @@
PRGNAM="mda-lv2"
-VERSION="1.2.6"
+VERSION="1.2.10"
HOMEPAGE="https://drobilla.net/software/mda-lv2.html"
-DOWNLOAD="https://download.drobilla.net/mda-lv2-1.2.6.tar.bz2"
-MD5SUM="78712e8e1d2019c8bda6e164d1cd9115"
+DOWNLOAD="https://download.drobilla.net/mda-lv2-1.2.10.tar.xz"
+MD5SUM="be5927457805943fc377bd56faae6373"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="lv2"