summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/fig2sxd/README6
-rwxr-xr-xgraphics/fig2sxd/fig2sxd.SlackBuild65
-rw-r--r--graphics/fig2sxd/fig2sxd.info10
-rw-r--r--graphics/fig2sxd/slack-desc19
4 files changed, 100 insertions, 0 deletions
diff --git a/graphics/fig2sxd/README b/graphics/fig2sxd/README
new file mode 100644
index 0000000000..b88437d1b9
--- /dev/null
+++ b/graphics/fig2sxd/README
@@ -0,0 +1,6 @@
+fig2sxd converts images in fig format (used by XFig) to OpenOffice.org Draw
+format.
+
+Conversion works basically good. Some things are not mapped exactly: splines
+are quite similar in shape, but definitively different; hollow arrows are
+mapped to filled ones; hatches are different...
diff --git a/graphics/fig2sxd/fig2sxd.SlackBuild b/graphics/fig2sxd/fig2sxd.SlackBuild
new file mode 100755
index 0000000000..dacc80daa1
--- /dev/null
+++ b/graphics/fig2sxd/fig2sxd.SlackBuild
@@ -0,0 +1,65 @@
+#!/bin/sh
+
+# Slackware build script for fig2sxd
+
+# Written by Dario Nicodemi dario.sbo@gmail.com
+
+PRGNAM=fig2sxd
+VERSION=${VERSION:-0.20}
+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"
+ 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 # Exit on most errors
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/${PRGNAM}_${VERSION}.orig.tar.gz
+cd $PRGNAM-$VERSION
+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 {} \;
+
+make CXXFLAGS="-Wall -W -g $SLKCFLAGS" DESTDIR=/usr
+make install DESTDIR=$PKG/usr
+mv $PKG/usr/share/man $PKG/usr
+rm -rf "$PKG/usr/share"
+
+find $PKG | xargs file | grep -e "executable" -e "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 changelog $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/graphics/fig2sxd/fig2sxd.info b/graphics/fig2sxd/fig2sxd.info
new file mode 100644
index 0000000000..3cbbbd467c
--- /dev/null
+++ b/graphics/fig2sxd/fig2sxd.info
@@ -0,0 +1,10 @@
+PRGNAM="fig2sxd"
+VERSION="0.20"
+HOMEPAGE="http://fig2sxd.sourceforge.net/"
+DOWNLOAD="http://downloads.sourceforge.net/fig2sxd/fig2sxd_0.20.orig.tar.gz"
+MD5SUM="af8913ac44080d6c5345a71115043685"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Dario Nicodemi"
+EMAIL="dario.sbo@gmail.com"
+APPROVED="rworkman"
diff --git a/graphics/fig2sxd/slack-desc b/graphics/fig2sxd/slack-desc
new file mode 100644
index 0000000000..c04fb7505b
--- /dev/null
+++ b/graphics/fig2sxd/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------------------------------------------------------|
+fig2sxd: fig2sxd (Fig to SXD image converter)
+fig2sxd:
+fig2sxd: fig2sxd converts images in fig format (used by XFig)
+fig2sxd: to OpenOffice.org Draw format.
+fig2sxd:
+fig2sxd:
+fig2sxd:
+fig2sxd:
+fig2sxd:
+fig2sxd:
+fig2sxd: