audio/chuck: Added (audio programming language)

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Michales Michaloudes 2013-10-27 02:02:22 -05:00 committed by Robby Workman
parent c57c3228d9
commit 79ee353aab
5 changed files with 168 additions and 0 deletions

15
audio/chuck/README Normal file
View file

@ -0,0 +1,15 @@
ChucK is a new (and developing) audio programming language for real-time
synthesis, composition, performance, and now, analysis.
ChucK presents a new time-based, concurrent programming model that's highly
precise and expressive (we call this strongly-timed), as well as dynamic
control rates, and the ability to add and modify code on-the-fly. In addition,
ChucK supports MIDI, OSC, HID device, and multi-channel audio. It's fun and
easy to learn, and offers composers, researchers, and performers a powerful
programming tool for building and experimenting with complex audio
synthesis/analysis programs, and real-time interactive control.
Please e-mail me if it works for 64-bit.
SOUNDENGINE=jack to enable jack support. In that case you need jack installed.
Valid options are: alsa (default), jack, oss.

View file

@ -0,0 +1,74 @@
#!/bin/sh
# Slackware build script for <chuck>
#
# Michales (clavisound) Michaloudes korgie@gmail.com <2013>
PRGNAM=chuck
VERSION=${VERSION:-1.3.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SOUNDENGINE=${SOUNDENGINE:-alsa}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
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"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tgz
cd $PRGNAM-$VERSION/src
chown -R root:root .
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 {} \;
make linux-$SOUNDENGINE
mkdir -p $PKG/usr/bin
cp $PRGNAM $PKG/usr/bin/$PRGNAM-$SOUNDENGINE # binaries can co-exist.
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
cd $TMP/$PRGNAM-$VERSION
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING README TODO DEVELOPER PROGRAMMER QUICKSTART THANKS VERSIONS \
doc/ChucK_manual.pdf doc/GOTO src/todo.txt examples \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/${PRGNAM}_${SOUNDENGINE}-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

10
audio/chuck/chuck.info Normal file
View file

@ -0,0 +1,10 @@
PRGNAM="chuck"
VERSION="1.3.1.3"
HOMEPAGE="http://chuck.cs.princeton.edu/"
DOWNLOAD="http://chuck.cs.princeton.edu/release/files/chuck-1.3.1.3.tgz"
MD5SUM="e0d3a64b27477eb2af6375cfa50bb4d7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Michales Michaloudes"
EMAIL="korgie@gmail.com"

50
audio/chuck/doinst.sh Normal file
View file

@ -0,0 +1,50 @@
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
preserve_perms() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
if [ -e $OLD ]; then
cp -a $OLD ${NEW}.incoming
cat $NEW > ${NEW}.incoming
mv ${NEW}.incoming $NEW
fi
config $NEW
}
schema_install() {
SCHEMA="$1"
GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \
chroot . gconftool-2 --makefile-install-rule \
/etc/gconf/schemas/$SCHEMA \
1>/dev/null
}
schema_install blah.schemas
preserve_perms etc/rc.d/rc.INIT.new
config etc/configfile.new
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

19
audio/chuck/slack-desc Normal file
View file

@ -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 ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
chuck: ChucK (audio programming language)
chuck:
chuck: ChucK presents a new time-based, concurrent programming model that's
chuck: highly precise and expressive (we call this strongly-timed), as well as
chuck: dynamic control rates, and the ability to add and modify code
chuck: on-the-fly. In addition, ChucK supports MIDI, OSC, HID device, and
chuck: multi-channel audio. It's fun and easy to learn, and offers composers,
chuck: researchers, and performers a powerful programming tool for building
chuck: and experimenting with complex audio synthesis/analysis programs, and
chuck: real-time interactive control.
chuck: