aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/specimen/README4
-rw-r--r--audio/specimen/slack-desc19
-rw-r--r--audio/specimen/specimen.SlackBuild80
-rw-r--r--audio/specimen/specimen.desktop9
-rw-r--r--audio/specimen/specimen.info10
-rw-r--r--audio/specimen/specimen.patch11
6 files changed, 133 insertions, 0 deletions
diff --git a/audio/specimen/README b/audio/specimen/README
new file mode 100644
index 000000000000..25c361d82c88
--- /dev/null
+++ b/audio/specimen/README
@@ -0,0 +1,4 @@
+SPECIMEN is an open source, MIDI controllable audio sampler for Linux.
+
+Requires: libgnomecanvas, jack-audio-connection-kit, libsamplerate,
+libsndfile, and phat. All available at SlackBuilds.org. \ No newline at end of file
diff --git a/audio/specimen/slack-desc b/audio/specimen/slack-desc
new file mode 100644
index 000000000000..f53017a968c9
--- /dev/null
+++ b/audio/specimen/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|' on
+# the right side marks the last column you can put a character in. You must make
+# exactly 11 lines for the formatting to be correct. It's also customary to
+# leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+specimen: Specimen (MIDI controllable audio sampler)
+specimen:
+specimen: Specimen is an open source, MIDI controllable audio sampler for
+specimen: Linux.
+specimen:
+specimen: Homepage: http://zhevny.com/specimen/
+specimen:
+specimen:
+specimen:
+specimen:
+specimen:
diff --git a/audio/specimen/specimen.SlackBuild b/audio/specimen/specimen.SlackBuild
new file mode 100644
index 000000000000..3d631a89248c
--- /dev/null
+++ b/audio/specimen/specimen.SlackBuild
@@ -0,0 +1,80 @@
+#!/bin/sh
+#
+# Slackbuild script for specimen
+# Adapted from Matt Hayes's Slackbuild for phat
+#
+# Copyright (c) 2009, Matt Hayes <dominian@slackadelic.com>
+# Copyright (c) 2009, Christopher Forrest <nyrednek@gmx.com>
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+PRGNAM=specimen
+VERSION=${VERSION:-0.5.1}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+patch -Np1 < $CWD/$PRGNAM.patch
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+LDFLAGS="-L/lib${LIBDIRSUFFIX} -L/usr/lib${LIBDIRSUFFIX}" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX}
+
+make || exit 1
+make install-strip DESTDIR=$PKG || exit 1
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mkdir $PKG/usr/share/applications
+cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications/
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+
diff --git a/audio/specimen/specimen.desktop b/audio/specimen/specimen.desktop
new file mode 100644
index 000000000000..8206acd6a9d2
--- /dev/null
+++ b/audio/specimen/specimen.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=specimen
+Icon=
+Name=Specimen
+GenericName=Midi Soft-Sampler
+StartupNotify=true
+Type=Application
+Categories=AudioVideo;
diff --git a/audio/specimen/specimen.info b/audio/specimen/specimen.info
new file mode 100644
index 000000000000..67809c620c98
--- /dev/null
+++ b/audio/specimen/specimen.info
@@ -0,0 +1,10 @@
+PRGNAM="specimen"
+VERSION="0.5.1"
+HOMEPAGE="http://zhevny.com/specimen/"
+DOWNLOAD="http://zhevny.com/specimen/files/specimen-0.5.1.tar.gz"
+MD5SUM="278f1f66add761feb1fa16cf0502f70f"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Christopher Forrest"
+EMAIL="nyrednek@gmx.com"
+APPROVED="dsomero"
diff --git a/audio/specimen/specimen.patch b/audio/specimen/specimen.patch
new file mode 100644
index 000000000000..e9a4a8ac88db
--- /dev/null
+++ b/audio/specimen/specimen.patch
@@ -0,0 +1,11 @@
+--- ./configure 2005-07-22 22:46:25.000000000 -0400
++++ ../specimen-0.5.1-fixed/configure 2009-11-15 19:16:30.000000000 -0500
+@@ -4812,7 +4812,7 @@
+ PIXDIR_UNQUOTED="\$(pkgdatadir)/pixmaps/" # for pixmap/Makefile.am
+
+
+-CFLAGS="$CFLAGS $PKG_CFLAGS $PTHREAD_CFLAGS -DPIXMAPSDIR=@PIXDIR@ -Wall -Werror"
++CFLAGS="$CFLAGS $PKG_CFLAGS $PTHREAD_CFLAGS -DPIXMAPSDIR=@PIXDIR@ -Wall"
+ LIBS="$LIBS $PKG_LIBS $PTHREAD_LIBS"
+ CC="$PTHREAD_CC"
+