summaryrefslogtreecommitdiff
path: root/misc/megatunix
diff options
context:
space:
mode:
Diffstat (limited to 'misc/megatunix')
-rw-r--r--misc/megatunix/README9
-rw-r--r--misc/megatunix/megatunix.SlackBuild94
-rw-r--r--misc/megatunix/megatunix.info10
-rw-r--r--misc/megatunix/slack-desc19
4 files changed, 132 insertions, 0 deletions
diff --git a/misc/megatunix/README b/misc/megatunix/README
new file mode 100644
index 0000000000..e1f0141595
--- /dev/null
+++ b/misc/megatunix/README
@@ -0,0 +1,9 @@
+MegaTunix is the only native tuning software that supports the majority of
+megasquirt firmwares. It has been redesigned in such a way as to be extensible
+to support new firmware variants with little to no new code needing to be
+written. The new design permits the gui tabs that relate to MegaSquirt
+variables to be redesigned using the Glade GUI designer for windows or Glade
+gui designer for Unix to change or alter the gui look/feel to accomodate new
+controls on more advanced firmwares.
+
+This requires gtkglext.
diff --git a/misc/megatunix/megatunix.SlackBuild b/misc/megatunix/megatunix.SlackBuild
new file mode 100644
index 0000000000..6cfeef1d38
--- /dev/null
+++ b/misc/megatunix/megatunix.SlackBuild
@@ -0,0 +1,94 @@
+#!/bin/sh
+
+# Slackware build script for megatunix
+
+# Copyright (c) 2009 Allen Coleman (acoleman at tomjones.doesntexist.com)
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+PRGNAM=megatunix
+VERSION=0.9.19_beta1
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+SRC_VERSION="$(printf $VERSION | tr _ -)"
+
+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"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$SRC_VERSION
+tar xvf $CWD/$PRGNAM-$SRC_VERSION.tar.gz
+cd $PRGNAM-$SRC_VERSION
+chown -R root:root .
+chmod -R a-s,u+w,go+r-w .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --htmldir=/usr/doc/$PRGNAM-$VERSION/html \
+ --enable-static=no \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+# Use /usr/share/pixmaps for non-themed icons
+mv $PKG/usr/share/icons $PKG/usr/share/pixmaps
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+)
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS INSTALL README TODO \
+ $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/misc/megatunix/megatunix.info b/misc/megatunix/megatunix.info
new file mode 100644
index 0000000000..eef129b96b
--- /dev/null
+++ b/misc/megatunix/megatunix.info
@@ -0,0 +1,10 @@
+PRGNAM="megatunix"
+VERSION="0.9.19_beta1"
+HOMEPAGE="http://megatunix.sourceforge.net/"
+DOWNLOAD="http://downloads.sourceforge.net/project/megatunix/MegaTunix/0.9.19/megatunix-0.9.19-beta1.tar.gz"
+MD5SUM="a8e321bd835736c0ad9e3e03cce9f67c"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Allen Coleman"
+EMAIL="acoleman@tomjones.doesntexist.com"
+APPROVED="rworkman"
diff --git a/misc/megatunix/slack-desc b/misc/megatunix/slack-desc
new file mode 100644
index 0000000000..f7183e0ff4
--- /dev/null
+++ b/misc/megatunix/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---------------------------------------------------|
+megatunix: MegaTunix (MegaSquirt tuning software)
+megatunix:
+megatunix: MegaTunix is the only native tuning software for Unix (and now
+megatunix: Win32) class operating systems that supports the majority of
+megatunix: megasquirt firmwares. It has been redesigned in such a way as to
+megatunix: be extensible to support new firmware variants with little to no
+megatunix: new code needing to be written. The new design permits the gui
+megatunix: tabs that relate to MegaSquirt variables to be redesigned using
+megatunix: the Glade GUI designer for windows or Glade gui designer for Unix
+megatunix: to change or alter the gui look/feel to accomodate new controls on
+megatunix: more advanced firmwares.