mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
graphics/mftrace: Updated for version 1.2.17.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
parent
b62c035b20
commit
20643fcf56
3 changed files with 30 additions and 28 deletions
|
@ -1,7 +1,8 @@
|
|||
Mftrace is a small Python program that lets you trace a TeX bitmap font into a
|
||||
PFA or PFB font (A PostScript Type1 Scalable Font). Type1 fonts offer many
|
||||
advantages over bitmaps, as they allow PostScript files to render correctly on
|
||||
printers with many resolutions. Moreover, Ghostscript can generate much
|
||||
better PDF, if given scalable fonts.
|
||||
Mftrace is a small Python program that lets you trace a TeX bitmap font
|
||||
into a PFA or PFB font (A PostScript Type1 Scalable Font). Type1 fonts
|
||||
offer many advantages over bitmaps, as they allow PostScript files
|
||||
to render correctly on printers with many resolutions. Moreover,
|
||||
Ghostscript can generate much better PDF, if given scalable fonts.
|
||||
|
||||
This requires potrace and t1utils, and fontforge is optional but recommended.
|
||||
This requires potrace and t1utils, and fontforge is optional but
|
||||
recommended.
|
||||
|
|
|
@ -1,19 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for mftrace
|
||||
# Written by Kyle Guinn
|
||||
# Written by Kyle Guinn <elyk03@gmail.com>
|
||||
|
||||
PRGNAM=mftrace
|
||||
VERSION=1.2.16
|
||||
VERSION=${VERSION:-1.2.17}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
@ -23,18 +21,20 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
DOCS="COPYING ChangeLog README*"
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -43,33 +43,34 @@ rm -rf $PKG
|
|||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
chmod -R u+w,go+r-w,a-st .
|
||||
|
||||
# Make it support $SLKCFLAGS
|
||||
sed -i "s/^CFLAGS =/CFLAGS +=/" GNUmakefile.in
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib$LIBDIRSUFFIX \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
CFLAGS="$SLKCFLAGS" make
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a COPYING ChangeLog README* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="mftrace"
|
||||
VERSION="1.2.16"
|
||||
VERSION="1.2.17"
|
||||
HOMEPAGE="http://www.lilypond.org/mftrace/"
|
||||
DOWNLOAD="http://lilypond.org/download/sources/mftrace/mftrace-1.2.16.tar.gz"
|
||||
MD5SUM="1c65846471db8f10902b96b7b3120da5"
|
||||
DOWNLOAD="http://lilypond.org/download/sources/mftrace/mftrace-1.2.17.tar.gz"
|
||||
MD5SUM="1a40b28e94594d215d5c4401b5ac76cb"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Kyle Guinn"
|
||||
EMAIL="elyk03@gmail.com"
|
||||
APPROVED="rworkman"
|
||||
APPROVED="Niels Horn"
|
||||
|
|
Loading…
Reference in a new issue