summaryrefslogtreecommitdiff
path: root/audio/pd/pd.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:54 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:54 +0200
commit5a1630a1a380f9db51b773e411549cd275e1a385 (patch)
tree7caf0861cc626e7476e0d7473dda7130812d9713 /audio/pd/pd.SlackBuild
parentb5ec065f64180edee4af1e1df2cecf648d6c1259 (diff)
downloadslackbuilds-5a1630a1a380f9db51b773e411549cd275e1a385.tar.gz
audio/pd: Moved from multimedia
Diffstat (limited to 'audio/pd/pd.SlackBuild')
-rw-r--r--audio/pd/pd.SlackBuild73
1 files changed, 73 insertions, 0 deletions
diff --git a/audio/pd/pd.SlackBuild b/audio/pd/pd.SlackBuild
new file mode 100644
index 0000000000..81cbf40658
--- /dev/null
+++ b/audio/pd/pd.SlackBuild
@@ -0,0 +1,73 @@
+#!/bin/sh
+
+# Slackware build script for Pure Data
+
+# Written by ilya .d <errordeveloper-AT-gmail-DOT-com>
+# Modified by Robby Workman <rworkman@slackbuilds.org> with minor stuff:
+# -fix makefile patch to use DESTDIR correctly
+# -miscellanous script tweaks
+# No additional license terms
+
+PRGNAM=pd
+SRC_VERSION=0.40-3
+VERSION=$(echo $SRC_VERSION | tr - .)
+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"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$SRC_VERSION.src.tar.gz
+cd $PRGNAM-$SRC_VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+# Fix DESTDIR support in the makefile source
+patch -p1 < $CWD/makefile.in.DESTDIR.diff
+
+cd src
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib \
+ --sysconfdir=/etc \
+ --datadir=/usr/share/pd \
+ --localstatedir=/var \
+ --enable-alsa \
+ --enable-setuid
+ make
+ make install \
+ pddocdir=/usr/doc/$PRGNAM-$VERSION \
+ DESTDIR=$PKG
+cd -
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a INSTALL.txt README.txt LICENSE.txt src/CHANGELOG.txt \
+ $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-$VERSION-$ARCH-$BUILD$TAG.tgz