|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Build script for Slackware
|
|
|
|
|
# Copyright (C) 2009,2010,2011,2013 Damien Goutte-Gattat
|
|
|
|
|
# Copyright (C) 2009-2011,2013,2017 Damien Goutte-Gattat
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use of this script, with or without modifications,
|
|
|
|
|
# is permitted provided that the following conditions are met:
|
|
|
|
@ -24,7 +24,7 @@
|
|
|
|
|
#
|
|
|
|
|
# Latest fluidsynth sourcecode is available at: <http://www.fluidsynth.org/>.
|
|
|
|
|
#
|
|
|
|
|
# Recommends: ap/jack
|
|
|
|
|
# Optional: ap/jack
|
|
|
|
|
|
|
|
|
|
# Source package infos
|
|
|
|
|
NAMESRC=${NAMESRC:-fluidsynth}
|
|
|
|
@ -34,7 +34,7 @@ WGET=${WGET:-http://downloads.sourceforge.net/fluidsynth/$ARCHIVE}
|
|
|
|
|
|
|
|
|
|
# Build infos
|
|
|
|
|
NAMEPKG=${NAMEPKG:-fluidsynth}
|
|
|
|
|
BUILD=${BUILD:-1GGD}
|
|
|
|
|
BUILD=${BUILD:-2GGD}
|
|
|
|
|
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
|
|
|
|
|
JOBS=${JOBS:-1}
|
|
|
|
|
EXT=${EXT:-txz}
|
|
|
|
@ -77,7 +77,7 @@ if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET"
|
|
|
|
|
mv $ARCHIVE.part $ARCHIVE
|
|
|
|
|
fi
|
|
|
|
|
sha1sum -c $ARCHIVE.sha1
|
|
|
|
|
sha256sum -c $ARCHIVE.sha256
|
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
|
|
|
|
|
|
|
|
|
|
# Compile
|
|
|
|
@ -91,7 +91,9 @@ CXXFLAGS=$CPUOPT \
|
|
|
|
|
--prefix=/usr \
|
|
|
|
|
--libdir=/usr/lib$LIBDIRSUFFIX \
|
|
|
|
|
--mandir=/usr/man \
|
|
|
|
|
--disable-static
|
|
|
|
|
--disable-static \
|
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
|
--build=$ARCH-slackware-linux
|
|
|
|
|
make -j $JOBS
|
|
|
|
|
make install-strip DESTDIR=$PKG
|
|
|
|
|
|
|
|
|
|