summaryrefslogtreecommitdiff
path: root/libraries/libEMF
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libEMF')
-rw-r--r--libraries/libEMF/README8
-rw-r--r--libraries/libEMF/libEMF.SlackBuild66
-rw-r--r--libraries/libEMF/libEMF.info10
-rw-r--r--libraries/libEMF/slack-desc19
4 files changed, 103 insertions, 0 deletions
diff --git a/libraries/libEMF/README b/libraries/libEMF/README
new file mode 100644
index 0000000000..abe36ad29e
--- /dev/null
+++ b/libraries/libEMF/README
@@ -0,0 +1,8 @@
+libEMF is a C/C++ library which provides a drawing toolkit based on
+ECMA-234. The general purpose of this library is to create vector graphics
+files on POSIX systems which can be imported into StarOffice/OpenOffice.
+The library is also used by pstoedit to convert postscript and pdf files
+to EMF format.
+
+This might build with 32-bit compat libs on x86_64, but definitely not
+without them.
diff --git a/libraries/libEMF/libEMF.SlackBuild b/libraries/libEMF/libEMF.SlackBuild
new file mode 100644
index 0000000000..1bdf4155b3
--- /dev/null
+++ b/libraries/libEMF/libEMF.SlackBuild
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Slackware build script for libEMF
+# written by <pedro@gepasi.org>, hereby in the public domain
+
+PRGNAM=libEMF
+VERSION=1.0.4
+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
+
+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 .
+
+# static library is activated because the perl extension needs it
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --enable-editing \
+ --build=$ARCH-slackware-linux
+
+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 ChangeLog COPYING COPYING.LIB 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.${PKGTYPE:-tgz}
diff --git a/libraries/libEMF/libEMF.info b/libraries/libEMF/libEMF.info
new file mode 100644
index 0000000000..c9a15ee173
--- /dev/null
+++ b/libraries/libEMF/libEMF.info
@@ -0,0 +1,10 @@
+PRGNAM="libEMF"
+VERSION="1.0.4"
+HOMEPAGE="http://libemf.sourceforge.net"
+DOWNLOAD="http://sourceforge.net/projects/pstoedit/files/libemf%20for%20pstoedit/1.0.4/libEMF-1.0.4.tar.gz/download"
+MD5SUM="4e74e5ee5fdab37bae8be6cde4d1c57c"
+DOWNLOAD_x86_64="UNSUPPORTED"
+MD5SUM_x86_64=""
+MAINTAINER="Pedro Mendes"
+EMAIL="pedro@gepasi.org"
+APPROVED="rworkman"
diff --git a/libraries/libEMF/slack-desc b/libraries/libEMF/slack-desc
new file mode 100644
index 0000000000..0e3e07368f
--- /dev/null
+++ b/libraries/libEMF/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------------------------------------------------------|
+libEMF: libEMF (drawing toolkit based on ECMA-234 to write EMF files)
+libEMF:
+libEMF: libEMF is a C/C++ library which provides a drawing toolkit based on
+libEMF: ECMA-234. The general purpose of this library is to create vector
+libEMF: graphics files on POSIX systems which can be imported into StarOffice
+libEMF: or OpenOffice.The library is also used by pstoedit to convert
+libEMF: postscript and pdf files to EMF format.
+libEMF:
+libEMF: Homepage: http://libemf.sourceforge.net
+libEMF:
+libEMF: