diff options
Diffstat (limited to 'audio/mda-lv2/mda-lv2.SlackBuild')
-rw-r--r-- | audio/mda-lv2/mda-lv2.SlackBuild | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/audio/mda-lv2/mda-lv2.SlackBuild b/audio/mda-lv2/mda-lv2.SlackBuild index 86ec65463e..b2a09cbff4 100644 --- a/audio/mda-lv2/mda-lv2.SlackBuild +++ b/audio/mda-lv2/mda-lv2.SlackBuild @@ -2,14 +2,17 @@ # Slackware build script for mda-lv2 -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # 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} @@ -22,9 +25,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -54,32 +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 - -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 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 |