diff options
author | Alan Aversa <alan.aveNOrsaSP@AMcox.net (remove NO and SPAM)> | 2017-08-25 20:53:54 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-08-26 07:19:49 +0700 |
commit | 2795e77e3558bde6c2edddc0d852a76126326c21 (patch) | |
tree | 4dadf28982591e74fd77c77eee46b6928924e23b /ham | |
parent | 126a77e69f35425d4b28557db8747ad3bc2a106d (diff) | |
download | slackbuilds-2795e77e3558bde6c2edddc0d852a76126326c21.tar.gz |
ham/CubicSDR: Added (Software-Defined Radio Application).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'ham')
-rw-r--r-- | ham/CubicSDR/CubicSDR.SlackBuild | 146 | ||||
-rw-r--r-- | ham/CubicSDR/CubicSDR.info | 12 | ||||
-rw-r--r-- | ham/CubicSDR/README | 9 | ||||
-rw-r--r-- | ham/CubicSDR/doinst.sh | 3 | ||||
-rw-r--r-- | ham/CubicSDR/slack-desc | 19 |
5 files changed, 189 insertions, 0 deletions
diff --git a/ham/CubicSDR/CubicSDR.SlackBuild b/ham/CubicSDR/CubicSDR.SlackBuild new file mode 100644 index 0000000000..fac6a9ad18 --- /dev/null +++ b/ham/CubicSDR/CubicSDR.SlackBuild @@ -0,0 +1,146 @@ +#!/bin/sh + +# Slackware build script for CubicSDR + +# Copyright 2017 Alan Aversa USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=CubicSDR +VERSION=${VERSION:-0.2.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -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 +mkdir $PRGNAM-$VERSION +cd $PRGNAM-$VERSION + +# static wxWidgets + +STATICWXWIDGETS_DESTDIR=$TMP/$PRGNAM-$VERSION/wxWidgets-staticlib +mkdir -p $STATICWXWIDGETS_DESTDIR + +VERWXWIDGETS=${VERWXWIDGETS:-3.1.0} + +tar xvf $CWD/wxWidgets-$VERWXWIDGETS.tar.bz2 +cd wxWidgets-$VERWXWIDGETS + chown -R root:root . + find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + + ./autogen.sh + + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS -std=c++0x" \ + ./configure \ + --with-opengl \ + --disable-shared \ + --enable-monolithic \ + --with-libjpeg \ + --with-libtiff \ + --with-libpng \ + --with-zlib \ + --disable-sdltest \ + --enable-unicode \ + --enable-display \ + --enable-propgrid \ + --disable-webkit \ + --disable-webview \ + --disable-webviewwebkit \ + --prefix="$STATICWXWIDGETS_DESTDIR" + + make + make install + +cd .. + +# build CubicSDR + +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DwxWidgets_CONFIG_EXECUTABLE=$STATICWXWIDGETS_DESTDIR/bin/wx-config \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG +cd .. + +# Package everything + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.md $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 +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/ham/CubicSDR/CubicSDR.info b/ham/CubicSDR/CubicSDR.info new file mode 100644 index 0000000000..3b04c54a9d --- /dev/null +++ b/ham/CubicSDR/CubicSDR.info @@ -0,0 +1,12 @@ +PRGNAM="CubicSDR" +VERSION="0.2.2" +HOMEPAGE="https://github.com/cjcliffe/CubicSDR/" +DOWNLOAD="https://github.com/cjcliffe/CubicSDR/archive/0.2.2/CubicSDR-0.2.2.tar.gz \ + https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.0/wxWidgets-3.1.0.tar.bz2" +MD5SUM="79672b71187837aa5fc9c8adca39705a \ + e20c14bb9bf5d4ec0979a3cd7510dece" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="SoapySDR liquid-dsp" +MAINTAINER="Alan Aversa" +EMAIL="alan.aveNOrsaSP@AMcox.net (remove NO and SPAM)" diff --git a/ham/CubicSDR/README b/ham/CubicSDR/README new file mode 100644 index 0000000000..85c02d4fbb --- /dev/null +++ b/ham/CubicSDR/README @@ -0,0 +1,9 @@ +CubicSDR is the software portion of Software Defined Radio. By using +hardware that converts RF spectrum into a digital stream we are able to +build complex radios to do many types of functions in software instead +of traditional hardware. + +Paired with a supported hardware receiver, you can use CubicSDR to +explore the RF world around you. Discover Satellite transmissions, +Amateur Radio, Rail, Aeronautical, Shortwave, or any number of possible +signals floating through the air. diff --git a/ham/CubicSDR/doinst.sh b/ham/CubicSDR/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/ham/CubicSDR/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/ham/CubicSDR/slack-desc b/ham/CubicSDR/slack-desc new file mode 100644 index 0000000000..a39c8b1d7a --- /dev/null +++ b/ham/CubicSDR/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +CubicSDR: CubicSDR (Software-Defined Radio Application) +CubicSDR: +CubicSDR: CubicSDR is the software portion of Software Defined Radio. By using +CubicSDR: hardware that converts RF spectrum into a digital stream we are able +CubicSDR: to build complex radios to do many types of functions in software +CubicSDR: instead of traditional hardwre. +CubicSDR: +CubicSDR: Paired with a supported hardware receiver, you can use CubicSDR to +CubicSDR: explore the RF world around you. Discover Satellite transmissions, +CubicSDR: Amateur Radio, Rail, Areonautical, Shortwave, or any number of +CubicSDR: possible signals floating through the air. |