7 changed files with 220 additions and 0 deletions
@ -0,0 +1,55 @@
|
||||
Index: ZynAddSubFX-2.4.1/src/UI/BankUI.fl
|
||||
===================================================================
|
||||
--- ZynAddSubFX-2.4.1.orig/src/UI/BankUI.fl
|
||||
+++ ZynAddSubFX-2.4.1/src/UI/BankUI.fl
|
||||
@@ -32,7 +32,7 @@ decl {\#include "../Misc/Config.h"} {pub
|
||||
|
||||
class BankProcess_ {} {
|
||||
Function {process()} {open return_type {virtual void}
|
||||
- } {}
|
||||
+ } {code{;}}
|
||||
decl {Bank *bank;} {public
|
||||
}
|
||||
}
|
||||
Index: ZynAddSubFX-2.4.1/src/UI/OscilGenUI.fl
|
||||
===================================================================
|
||||
--- ZynAddSubFX-2.4.1.orig/src/UI/OscilGenUI.fl
|
||||
+++ ZynAddSubFX-2.4.1/src/UI/OscilGenUI.fl
|
||||
@@ -129,7 +129,7 @@ delete [] spc;} {selected
|
||||
|
||||
class PSlider {: {public Fl_Slider}
|
||||
} {
|
||||
- Function {PSlider(int x,int y, int w, int h, const char *label=0):Fl_Slider(x,y,w,h,label)} {} {}
|
||||
+ Function {PSlider(int x,int y, int w, int h, const char *label=0):Fl_Slider(x,y,w,h,label)} {} {code{;}}
|
||||
Function {handle(int event)} {return_type int
|
||||
} {
|
||||
code {int X=x(),Y=y(),W=w(),H=h();
|
||||
Index: ZynAddSubFX-2.4.1/src/UI/PartUI.fl
|
||||
===================================================================
|
||||
--- ZynAddSubFX-2.4.1.orig/src/UI/PartUI.fl
|
||||
+++ ZynAddSubFX-2.4.1/src/UI/PartUI.fl
|
||||
@@ -85,7 +85,7 @@ end();} {}
|
||||
|
||||
class PartUI_ {} {
|
||||
Function {showparameters(int kititem,int engine)} {return_type virtual
|
||||
- } {}
|
||||
+ } {code{;}}
|
||||
}
|
||||
|
||||
class PartKitItem {: {public Fl_Group}
|
||||
Index: ZynAddSubFX-2.4.1/src/UI/PresetsUI.fl
|
||||
===================================================================
|
||||
--- ZynAddSubFX-2.4.1.orig/src/UI/PresetsUI.fl
|
||||
+++ ZynAddSubFX-2.4.1/src/UI/PresetsUI.fl
|
||||
@@ -18,9 +18,9 @@ decl {\#include "../Params/Presets.h"} {
|
||||
|
||||
class PresetsUI_ {} {
|
||||
Function {refresh()} {open return_type {virtual void}
|
||||
- } {}
|
||||
+ } {code{;}}
|
||||
Function {~PresetsUI_()} {open return_type virtual
|
||||
- } {}
|
||||
+ } {code{;}}
|
||||
}
|
||||
|
||||
class PresetsUI {} {
|
@ -0,0 +1 @@
|
||||
5abffff4ff2710dc427c4888a167c8f8a74d7c7e ZynAddSubFX-2.4.1.tar.bz2 |
@ -0,0 +1,4 @@
|
||||
#!/bin/sh |
||||
if [ -x /usr/bin/update-desktop-database ]; then |
||||
/usr/bin/update-desktop-database ./usr/share/applications 2>/dev/null 2>&1 |
||||
fi |
@ -0,0 +1,12 @@
|
||||
|-----handy-ruler--------------------------------------------------| |
||||
zynaddsubfx: zynaddsubfx (software synthesizer) |
||||
zynaddsubfx: |
||||
zynaddsubfx: A real-time software synthesizer for Linux and Windows with many |
||||
zynaddsubfx: features, including polyphony, multi-timbral and microtonal |
||||
zynaddsubfx: capabilities. It includes randomness of some parameters, which |
||||
zynaddsubfx: makes warm sounds, like analogue synthesizers. |
||||
zynaddsubfx: |
||||
zynaddsubfx: ZynAddSubFX is released under the GNU GPL (version 2 or later). |
||||
zynaddsubfx: |
||||
zynaddsubfx: |
||||
zynaddsubfx: |
@ -0,0 +1,137 @@
|
||||
#!/bin/bash |
||||
# Build script for Slackware |
||||
# Copyright (C) 2011 Damien Goutte-Gattat |
||||
# |
||||
# Redistribution and use of this script, with or without modifications, |
||||
# 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. |
||||
# |
||||
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org> |
||||
# |
||||
# Latest ZynAddSubFX sourcecode is available at: |
||||
# <http://zynaddsubfx.sourceforge.net/>. |
||||
# |
||||
# Depends: l/fltk, l/mxml |
||||
# Recommends: ap/jack |
||||
|
||||
# Source package infos |
||||
NAMESRC=${NAMESRC:-ZynAddSubFX} |
||||
VERSION=${VERSION:-2.4.1} |
||||
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2} |
||||
WGET=${WGET:-http://downloads.sourceforge.net/zynaddsubfx/$ARCHIVE} |
||||
|
||||
# Build infos |
||||
NAMEPKG=${NAMEPKG:-zynaddsubfx} |
||||
BUILD=${BUILD:-1GGD} |
||||
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')} |
||||
JOBS=${JOBS:-1} |
||||
EXT=${EXT:-txz} |
||||
|
||||
# Directories |
||||
TMP=${TMP:-/tmp} |
||||
OUT=${OUT:-$TMP/build} |
||||
PKG=${PKG:-$OUT/$NAMEPKG} |
||||
CWD=$(pwd) |
||||
|
||||
set -e # Quit if a command returns non-zero |
||||
|
||||
# Sanity checks |
||||
if [ $UID -eq 0 ]; then |
||||
echo "You should NOT run this script as ROOT!" |
||||
exit 1 |
||||
fi |
||||
if [ ! -d $TMP ]; then |
||||
echo "$TMP does not exists or is not a directory!" |
||||
exit 1 |
||||
fi |
||||
|
||||
# Compilation flags |
||||
LIBDIRSUFFIX="" |
||||
case "$ARCH" in |
||||
i?86) |
||||
CPUOPT="-O2 -march=$ARCH -mtune=i686" |
||||
;; |
||||
x86_64) |
||||
CPUOPT="-O2 -fPIC" |
||||
LIBDIRSUFFIX="64" |
||||
;; |
||||
*) |
||||
CPUOPT="-O2" |
||||
;; |
||||
esac |
||||
|
||||
# Get and verify the source archive |
||||
if [ ! -r $ARCHIVE ]; then |
||||
wget -c -O $ARCHIVE.part "$WGET" |
||||
mv $ARCHIVE.part $ARCHIVE |
||||
fi |
||||
sha1sum -c $ARCHIVE.sha1 |
||||
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
||||
|
||||
# Compile |
||||
cd $TMP |
||||
echo "Building $ARCHIVE..." |
||||
tar xf $CWD/$ARCHIVE |
||||
cd $NAME |
||||
# Fix bug #3175784 that prevents compiling against FLTK 1.3.0 |
||||
patch -p 1 < $CWD/ZynAddSubFX-2.4.1-fltk-1.3.0.diff |
||||
mkdir build && cd build |
||||
CFLAGS=$CPUOPT \ |
||||
CXXFLAGS=$CPUOPT \ |
||||
cmake \ |
||||
-DCMAKE_INSTALL_PREFIX=/usr \ |
||||
-DOutputModule=jack \ |
||||
.. |
||||
make -j $JOBS |
||||
make install DESTDIR=$PKG |
||||
|
||||
# Strip binaries |
||||
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \ |
||||
xargs strip --strip-unneeded 2> /dev/null |
||||
|
||||
# Install banks and examples |
||||
mkdir -p $PKG/usr/share/zynaddsubfx |
||||
cp -r ../banks ../examples $PKG/usr/share/zynaddsubfx/ |
||||
|
||||
# Install the documentation |
||||
mkdir -p $PKG/usr/doc |
||||
mv $PKG/usr/share/doc/zynaddsubfx $PKG/usr/doc/$NAME |
||||
rmdir $PKG/usr/share/doc |
||||
cp -r ../doc $PKG/usr/doc/$NAME/docs |
||||
|
||||
# Install desktop files |
||||
install -D -m 644 $CWD/zynaddsubfx.png $PKG/usr/share/pixmaps/zynaddsubfx.png |
||||
install -D -m 644 $CWD/zynaddsubfx.desktop $PKG/usr/share/applications/zynaddsubfx.desktop |
||||
|
||||
# Copy slack-desc and doinst.sh files |
||||
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
||||
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh |
||||
|
||||
# Package the tree |
||||
cd $PKG |
||||
mkdir -p $OUT |
||||
PACKAGING=" |
||||
chown root:root . -R |
||||
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT |
||||
rm -rf $PKG |
||||
rm -rf $TMP/$NAME |
||||
" |
||||
if type -p fakeroot ; then |
||||
echo "$PACKAGING" | fakeroot |
||||
else |
||||
su -c "$PACKAGING" |
||||
fi |
@ -0,0 +1,11 @@
|
||||
[Desktop Entry] |
||||
Name=ZynAddSubFX |
||||
Comment=Software Synthesizer |
||||
Exec=zynaddsubfx |
||||
Icon=/usr/share/pixmaps/zynaddsubfx.png |
||||
Terminal=false |
||||
Type=Application |
||||
Categories=AudioVideo;Audio; |
||||
StartupNotify=false |
||||
X-KDE-StartupNotify=false |
||||
X-DCOP-ServiceType=Multi |
After Width: | Height: | Size: 5.3 KiB |
Loading…
Reference in new issue