summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/fontforge/README11
-rw-r--r--graphics/fontforge/fontforge.SlackBuild96
-rw-r--r--graphics/fontforge/fontforge.info8
-rw-r--r--graphics/fontforge/slack-desc11
4 files changed, 126 insertions, 0 deletions
diff --git a/graphics/fontforge/README b/graphics/fontforge/README
new file mode 100644
index 0000000000..7c1bd002ff
--- /dev/null
+++ b/graphics/fontforge/README
@@ -0,0 +1,11 @@
+FontForge is an outline font editor that lets you create your own postscript,
+truetype, opentype, cid-keyed, multi-master, cff, svg and bitmap (bdf, FON,
+NFNT) fonts, or edit existing ones. It also lets you convert one format to
+another. FontForge has support for many Macintosh font formats.
+
+From the README-unix file inside the source:
+ If you want to edit CID-keyed fonts (for CJK fonts) you may want to pull
+ down the cidmap package from http://fontforge.sf.net/cidmaps.tgz
+If you download this file and place it in the directory with the SlackBuild
+script, the script will automatically place the cidmaps inside the package.
+
diff --git a/graphics/fontforge/fontforge.SlackBuild b/graphics/fontforge/fontforge.SlackBuild
new file mode 100644
index 0000000000..b444ee779e
--- /dev/null
+++ b/graphics/fontforge/fontforge.SlackBuild
@@ -0,0 +1,96 @@
+#!/bin/sh
+
+# Slackware build script for fontforge
+
+# Copyright 2006-2007 Robby Workman (http://rlworkman.net)
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Thanks to Eric Hameleers for some pointers on getting the fontforge.pc
+# file right without too much manual intervention :-)
+
+PRGNAM=fontforge
+VERSION=20061220
+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
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+rm -rf $PRGNAM-$VERSION
+tar -xjvf $CWD/${PRGNAM}_full-${VERSION}.tar.bz2 || exit 1
+cd $PRGNAM-$VERSION || exit 1
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --with-x \
+ --with-multilayer \
+ --with-devicetables \
+ --disable-debug \
+ --enable-static=no \
+ --enable-shared=yes \
+ || exit 1
+
+make || exit 1
+make prefix=$PKG/usr libdir=$PKG/usr/lib install || exit 1
+
+# Let's add the cidmaps if the user downloaded them
+if [ -e $CWD/cidmaps.tgz ]; then
+ mkdir -p $PKG/usr/share/fontforge
+ tar -C $PKG/usr/share/fontforge -vxzf $CWD/cidmaps.tgz || exit 1
+ chmod 0644 $PKG/usr/share/fontforge/*.cidmap
+ chown root:root $PKG/usr/share/fontforge/*.cidmap
+fi
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+( 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 LICENSE README-Unix.html README-unix VERSION \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+find $PKG/usr/doc -type f -exec chmod 644 {} \;
+
+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/graphics/fontforge/fontforge.info b/graphics/fontforge/fontforge.info
new file mode 100644
index 0000000000..b6f84c1caa
--- /dev/null
+++ b/graphics/fontforge/fontforge.info
@@ -0,0 +1,8 @@
+PRGNAM="fontforge"
+VERSION="20061220"
+HOMEPAGE="http://fontforge.sourceforge.net/"
+DOWNLOAD="http://dl.sourceforge.net/fontforge/fontforge_full-20061220.tar.bz2"
+MD5SUM="0f2354b885676fc8092a74aa9b9cb662"
+MAINTAINER="Robby Workman"
+EMAIL="rw@rlworkman.net"
+APPROVED="BP{k}"
diff --git a/graphics/fontforge/slack-desc b/graphics/fontforge/slack-desc
new file mode 100644
index 0000000000..cea00324c2
--- /dev/null
+++ b/graphics/fontforge/slack-desc
@@ -0,0 +1,11 @@
+fontforge: FontForge - an outline font editor
+fontforge:
+fontforge: FontForge is an outline font editor that lets you create your own
+fontforge: postscript, truetype, opentype, cid-keyed, multi-master, cff, svg
+fontforge: and bitmap (bdf, FON, NFNT) fonts, or edit existing ones. It also
+fontforge: lets you convert one format to another. FontForge has support for
+fontforge: many Macintosh font formats.
+fontforge:
+fontforge: Homepage: http://fontforge.sourceforge.net/
+fontforge:
+fontforge: