From 3f23fe3e50dc87534deb0d84fb04c9f2464d0bb8 Mon Sep 17 00:00:00 2001 From: Michales Michaloudes Date: Thu, 7 Mar 2024 10:28:26 +0700 Subject: audio/qsynth: Updated for version 0.9.13. Signed-off-by: Willy Sudiarto Raharjo --- audio/qsynth/README | 4 +++ audio/qsynth/qsynth.SlackBuild | 63 +++++++++++++++++++++++++++--------------- audio/qsynth/qsynth.info | 6 ++-- 3 files changed, 48 insertions(+), 25 deletions(-) diff --git a/audio/qsynth/README b/audio/qsynth/README index 71831fa610..6e4170d9ce 100644 --- a/audio/qsynth/README +++ b/audio/qsynth/README @@ -3,3 +3,7 @@ around the Qt4 toolkit using Qt Designer. Eventually it may evolve into a softsynth management application allowing the user to control and manage a variety of command line softsynths but for the moment it wraps the excellent FluidSynth (http://www.fluidsynth.org) + +Be aware: since Slackware-15.0, fluidsynth is part of slackware but +compiled WITHOUT jack support. If you need jack support for fluidsy- +nth you must recompiled with jack support. diff --git a/audio/qsynth/qsynth.SlackBuild b/audio/qsynth/qsynth.SlackBuild index 0ec54fef02..7e0e804289 100644 --- a/audio/qsynth/qsynth.SlackBuild +++ b/audio/qsynth/qsynth.SlackBuild @@ -1,11 +1,31 @@ #!/bin/bash + # Slackware build script for -# Written by Michales Michaloudes korgie@gmail.com + +# Copyright 2024, Michales Michaloudes (clavisound), Greece +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (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=qsynth -VERSION=${VERSION:-0.6.2} +VERSION=${VERSION:-0.9.13} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -18,15 +38,12 @@ 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. +TMP=${TMP:-/tmp/SBo} 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} @@ -39,6 +56,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -59,29 +79,28 @@ 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 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --build=$ARCH-slackware-linux +cd cmake +cmake \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release .. -make -j1 -make -j1 install DESTDIR=$PKG - -# remove empty man-page directory -rm -rf $PKG/usr/share/man +make +make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +# move man pages to proper folder +mv $PKG/usr/share/man $PKG/usr/ +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +cd $TMP/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS COPYING ChangeLog INSTALL TODO README \ + ChangeLog LICENSE README TRANSLATORS \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/audio/qsynth/qsynth.info b/audio/qsynth/qsynth.info index 144cfc4295..3ee757348e 100644 --- a/audio/qsynth/qsynth.info +++ b/audio/qsynth/qsynth.info @@ -1,8 +1,8 @@ PRGNAM="qsynth" -VERSION="0.6.2" +VERSION="0.9.13" HOMEPAGE="http://qsynth.sourceforge.net" -DOWNLOAD="http://downloads.sourceforge.net/qsynth/qsynth-0.6.2.tar.gz" -MD5SUM="9a19ef8b22472376c23568457ddca150" +DOWNLOAD="http://downloads.sourceforge.net/qsynth/qsynth-0.9.13.tar.gz" +MD5SUM="e96ba6a92a2afa8c769d585821667da2" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3-79-gdb01