summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libxmi/README6
-rw-r--r--libraries/libxmi/libxmi.SlackBuild62
-rw-r--r--libraries/libxmi/libxmi.info8
-rw-r--r--libraries/libxmi/slack-desc19
4 files changed, 95 insertions, 0 deletions
diff --git a/libraries/libxmi/README b/libraries/libxmi/README
new file mode 100644
index 0000000000..a6d6636ec3
--- /dev/null
+++ b/libraries/libxmi/README
@@ -0,0 +1,6 @@
+GNU libxmi is a C/C++ function library for rasterizing 2-D vector
+graphics. It can draw 2-D graphical primitives, including wide
+polygonal lines and circular and elliptical arcs, into a user
+supplied matrix of pixels. Sophisticated line styles, such as
+multicolored dashing patterns, can be specified. There is also
+support for filling and texturing polygons.
diff --git a/libraries/libxmi/libxmi.SlackBuild b/libraries/libxmi/libxmi.SlackBuild
new file mode 100644
index 0000000000..3778bcbe8c
--- /dev/null
+++ b/libraries/libxmi/libxmi.SlackBuild
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+# Slackware build script for libxmi
+# Written by David Spencer <nobbutl@yahoo.co.uk>
+# This script is dedicated to the public domain
+
+PRGNAM=libxmi
+VERSION=1.2
+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"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static
+
+make
+make install DESTDIR=$PKG
+
+( 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
+)
+
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*.info*
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING CUSTOMIZE ChangeLog INSTALL NEWS README \
+ README-X TODO VERSION $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/libraries/libxmi/libxmi.info b/libraries/libxmi/libxmi.info
new file mode 100644
index 0000000000..b1c06639d2
--- /dev/null
+++ b/libraries/libxmi/libxmi.info
@@ -0,0 +1,8 @@
+PRGNAM="libxmi"
+VERSION="1.2"
+HOMEPAGE="Homepage: http://www.gnu.org/software/libxmi/"
+DOWNLOAD="http://ftp.gnu.org/gnu/libxmi/libxmi-1.2.tar.gz"
+MD5SUM="4e6935484f0ad71b531920bf4c546b47"
+MAINTAINER="David Spencer"
+EMAIL="nobbutl@yahoo.co.uk"
+APPROVED="rworkman,Erik Hanson"
diff --git a/libraries/libxmi/slack-desc b/libraries/libxmi/slack-desc
new file mode 100644
index 0000000000..a85912e616
--- /dev/null
+++ b/libraries/libxmi/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------------------------------------------------------|
+libxmi: libxmi (library for rasterizing 2-D vector graphics)
+libxmi:
+libxmi: GNU libxmi is a C/C++ function library for rasterizing 2-D vector
+libxmi: graphics. It can draw 2-D graphical primitives, including wide
+libxmi: polygonal lines and circular and elliptical arcs, into a user
+libxmi: supplied matrix of pixels. Sophisticated line styles, such as
+libxmi: multicolored dashing patterns, can be specified. There is also
+libxmi: support for filling and texturing polygons.
+libxmi:
+libxmi: Homepage: http://www.gnu.org/software/libxmi/
+libxmi: