summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/Quarter/Quarter.SlackBuild61
-rw-r--r--development/Quarter/Quarter.info8
-rw-r--r--development/Quarter/README10
-rw-r--r--development/Quarter/slack-desc19
4 files changed, 98 insertions, 0 deletions
diff --git a/development/Quarter/Quarter.SlackBuild b/development/Quarter/Quarter.SlackBuild
new file mode 100644
index 0000000000..40b3bf2b32
--- /dev/null
+++ b/development/Quarter/Quarter.SlackBuild
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# Slackware build script for Quarter
+# Written by Aleksandar Samardzic <asamardzic@gmail.com>
+
+PRGNAM=Quarter
+VERSION=${VERSION:-1.0.0_preview}
+SRCVER=${SRCVER:-1.0.0-preview}
+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"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$SRCVER
+tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
+cd $PRGNAM-$SRCVER
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr
+
+make
+make install DESTDIR=$PKG
+
+find $PKG | xargs 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 AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ $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
diff --git a/development/Quarter/Quarter.info b/development/Quarter/Quarter.info
new file mode 100644
index 0000000000..48251b8c82
--- /dev/null
+++ b/development/Quarter/Quarter.info
@@ -0,0 +1,8 @@
+PRGNAM="Quarter"
+VERSION="1.0.0-preview"
+HOMEPAGE="http://www.coin3d.org/lib/quarter"
+DOWNLOAD="http://ftp.coin3d.org/coin/src/all/Quarter-1.0.0-preview.tar.gz"
+MD5SUM="87a994a93cbb8e404065d3156eba9bf8"
+MAINTAINER="Aleksandar Samardzic"
+EMAIL="asamardzic@gmail.com"
+APPROVED="David Somero"
diff --git a/development/Quarter/README b/development/Quarter/README
new file mode 100644
index 0000000000..45003faf6b
--- /dev/null
+++ b/development/Quarter/README
@@ -0,0 +1,10 @@
+Quarter is a light-weight glue library that provides seamless
+integration between Systems in Motions's Coin high-level 3D
+visualization library and Trolltech's Qt 2D user interface library.
+The functionality in Quarter revolves around QuarterWidget, a subclass
+of QGLWidget. This widget provides functionality for rendering of Coin
+scenegraphs and translation of QEvents into SoEvents. Using this
+widget is as easy as using any other QWidget.
+
+Quarter package requires Qt 4 and Coin libraries, both available at
+SlackBuilds.org.
diff --git a/development/Quarter/slack-desc b/development/Quarter/slack-desc
new file mode 100644
index 0000000000..3c417eb4cb
--- /dev/null
+++ b/development/Quarter/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------------------------------------------------------|
+Quarter: Quarter represents Qt 4 GUI bindings for Coin library.
+Quarter:
+Quarter: Quarter is a light-weight glue library that provides seamless
+Quarter: integration between Systems in Motions's Coin high-level 3D
+Quarter: visualization library and Trolltech's Qt 2D user interface
+Quarter: library.
+Quarter:
+Quarter: Homepage: http://www.coin3d.org/lib/quarter/
+Quarter:
+Quarter:
+Quarter: