summaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2010-10-24 21:57:39 -0400
committerErik Hanson <erik@slackbuilds.org>2010-10-25 07:55:09 -0500
commit52ed5d2b2d1df79b81253ed2cd7b0e7553d93920 (patch)
tree0491c337a9db54178d8dcfa132ae440ca14ac0b8 /academic
parentb930a31961ef4b53deced2f6a9d1821e69ff8e58 (diff)
downloadslackbuilds-52ed5d2b2d1df79b81253ed2cd7b0e7553d93920.tar.gz
acadenic/xoscope: Added (digital oscilloscope)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/xoscope/README10
-rw-r--r--academic/xoscope/slack-desc19
-rw-r--r--academic/xoscope/xoscope.SlackBuild75
-rw-r--r--academic/xoscope/xoscope.info10
4 files changed, 114 insertions, 0 deletions
diff --git a/academic/xoscope/README b/academic/xoscope/README
new file mode 100644
index 0000000000..419f8579e5
--- /dev/null
+++ b/academic/xoscope/README
@@ -0,0 +1,10 @@
+xoscope is a digital real-time oscilloscope. It graphically displays
+signal amplitude or bit logic as a function of time. Signals may be
+displayed, saved, recalled, and manipulated by math functions.
+
+Signal input devices currently include /dev/dsp, EsounD,
+ProbeScope/OsziFOX, Bitscope, and COMEDI.
+
+If you use your sound card as the input, consider building this buffer
+circuit to protect it from overvoltage:
+http://xoscope.sourceforge.net/hardware/hardware.html
diff --git a/academic/xoscope/slack-desc b/academic/xoscope/slack-desc
new file mode 100644
index 0000000000..20ce88fea4
--- /dev/null
+++ b/academic/xoscope/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------------------------------------------------------|
+xoscope: xoscope (digital oscilloscope)
+xoscope:
+xoscope: xoscope is a digital real-time oscilloscope. It graphically displays
+xoscope: signal amplitude or bit logic as a function of time. Signals may be
+xoscope: displayed, saved, recalled, and manipulated by math functions. Signal
+xoscope: input devices currently include /dev/dsp, EsounD, ProbeScope/OsziFOX,
+xoscope: Bitscope, and COMEDI.
+xoscope:
+xoscope:
+xoscope:
+xoscope:
diff --git a/academic/xoscope/xoscope.SlackBuild b/academic/xoscope/xoscope.SlackBuild
new file mode 100644
index 0000000000..534e08ca38
--- /dev/null
+++ b/academic/xoscope/xoscope.SlackBuild
@@ -0,0 +1,75 @@
+#!/bin/sh
+
+# Slackware build script for xoscope
+# Written by Kyle Guinn <elyk03@gmail.com>
+
+PRGNAM=xoscope
+VERSION=${VERSION:-2.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+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}
+
+DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO*"
+
+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
+chown -R root:root .
+chmod -R u+w,go+r-w,a-st .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $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.${PKGTYPE:-tgz}
diff --git a/academic/xoscope/xoscope.info b/academic/xoscope/xoscope.info
new file mode 100644
index 0000000000..4b3b74eeec
--- /dev/null
+++ b/academic/xoscope/xoscope.info
@@ -0,0 +1,10 @@
+PRGNAM="xoscope"
+VERSION="2.0"
+HOMEPAGE="http://xoscope.sourceforge.net/"
+DOWNLOAD="http://downloads.sourceforge.net/xoscope/xoscope-2.0.tgz"
+MD5SUM="f1430ccee4ee0f6f478c2cd209549741"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Kyle Guinn"
+EMAIL="elyk03@gmail.com"
+APPROVED="dsomero"