mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
acadenic/xoscope: Added (digital oscilloscope)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
b930a31961
commit
52ed5d2b2d
4 changed files with 114 additions and 0 deletions
10
academic/xoscope/README
Normal file
10
academic/xoscope/README
Normal file
|
@ -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
|
19
academic/xoscope/slack-desc
Normal file
19
academic/xoscope/slack-desc
Normal 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 ':'.
|
||||||
|
|
||||||
|
|-----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:
|
75
academic/xoscope/xoscope.SlackBuild
Normal file
75
academic/xoscope/xoscope.SlackBuild
Normal file
|
@ -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}
|
10
academic/xoscope/xoscope.info
Normal file
10
academic/xoscope/xoscope.info
Normal file
|
@ -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"
|
Loading…
Reference in a new issue