aboutsummaryrefslogtreecommitdiff
path: root/graphics/fontforge/fontforge.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-11 19:44:47 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 19:44:47 +0200
commit9f58d9bb5b29354a820ddef422ea121bb1994d25 (patch)
tree2c31f8c9ad3dc14bc3825028eeef94a7d07cb082 /graphics/fontforge/fontforge.SlackBuild
parentb90128523b37a91c3933124f65bf1e5b9e92b343 (diff)
graphics/fontforge: Updated for version 20080309
Diffstat (limited to 'graphics/fontforge/fontforge.SlackBuild')
-rw-r--r--graphics/fontforge/fontforge.SlackBuild25
1 files changed, 15 insertions, 10 deletions
diff --git a/graphics/fontforge/fontforge.SlackBuild b/graphics/fontforge/fontforge.SlackBuild
index b444ee779efc..823172ca7d7b 100644
--- a/graphics/fontforge/fontforge.SlackBuild
+++ b/graphics/fontforge/fontforge.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for fontforge
-# Copyright 2006-2007 Robby Workman (http://rlworkman.net)
+# Copyright 2006-2008 Robby Workman Northport, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,10 +26,11 @@
# file right without too much manual intervention :-)
PRGNAM=fontforge
-VERSION=20061220
+VERSION=20080309
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -41,12 +42,14 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xjvf $CWD/${PRGNAM}_full-${VERSION}.tar.bz2 || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/${PRGNAM}_full-${VERSION}.tar.bz2
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -55,20 +58,22 @@ CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--with-x \
+ --with-freetype-src=$CWD/freetype-2.3.5 \
--with-multilayer \
--with-devicetables \
--disable-debug \
--enable-static=no \
--enable-shared=yes \
- || exit 1
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux
-make || exit 1
-make prefix=$PKG/usr libdir=$PKG/usr/lib install || exit 1
+make
+make prefix=$PKG/usr libdir=$PKG/usr/lib install
# 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
+ tar xvf $CWD/cidmaps.tgz -C $PKG/usr/share/fontforge || exit 1
chmod 0644 $PKG/usr/share/fontforge/*.cidmap
chown root:root $PKG/usr/share/fontforge/*.cidmap
fi
@@ -80,7 +85,7 @@ fi
( 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
+ for i in $( find . -type l ); do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION