diff options
author | B. Watson <yalhcru@gmail.com> | 2017-03-29 23:17:20 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-01 06:57:04 +0700 |
commit | 034798391ba47550f5b4eb5ccde185c4cb923346 (patch) | |
tree | bf4694f183b6b9c8f3704afb8e0651f1f6e356d9 /misc | |
parent | fa03800ceccbc2b101c2c9bb8966647d9c39bcbb (diff) |
misc/bdfresize: Added (tool for resizing BDF fonts).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bdfresize/README | 4 | ||||
-rw-r--r-- | misc/bdfresize/bdfresize.SlackBuild | 80 | ||||
-rw-r--r-- | misc/bdfresize/bdfresize.info | 10 | ||||
-rw-r--r-- | misc/bdfresize/compilefix.diff | 11 | ||||
-rw-r--r-- | misc/bdfresize/slack-desc | 19 |
5 files changed, 124 insertions, 0 deletions
diff --git a/misc/bdfresize/README b/misc/bdfresize/README new file mode 100644 index 0000000000000..b4a2b24c21909 --- /dev/null +++ b/misc/bdfresize/README @@ -0,0 +1,4 @@ +bdfresize (tool for resizing BDF fonts) + +bdfresize is a command to magnify or reduce bitmap fonts which are +described with the standard BDF format. diff --git a/misc/bdfresize/bdfresize.SlackBuild b/misc/bdfresize/bdfresize.SlackBuild new file mode 100644 index 0000000000000..37c29d105b8a4 --- /dev/null +++ b/misc/bdfresize/bdfresize.SlackBuild @@ -0,0 +1,80 @@ +#!/bin/sh + +# Slackware build script for bdfresize + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=bdfresize +VERSION=${VERSION:-1.5} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +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 . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +patch -p1 < $CWD/compilefix.diff + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG +gzip $PKG/usr/man/man1/$PRGNAM.1 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS C* 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/misc/bdfresize/bdfresize.info b/misc/bdfresize/bdfresize.info new file mode 100644 index 0000000000000..29c9a545540d3 --- /dev/null +++ b/misc/bdfresize/bdfresize.info @@ -0,0 +1,10 @@ +PRGNAM="bdfresize" +VERSION="1.5" +HOMEPAGE="http://openlab.ring.gr.jp/efont/" +DOWNLOAD="http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/bdfresize-1.5.tar.gz" +MD5SUM="8169ac564fe676d53a9b4d7aad163005" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/misc/bdfresize/compilefix.diff b/misc/bdfresize/compilefix.diff new file mode 100644 index 0000000000000..fe00bdd32b9e3 --- /dev/null +++ b/misc/bdfresize/compilefix.diff @@ -0,0 +1,11 @@ +diff -Naur bdfresize-1.5/charresize.c bdfresize-1.5.patched/charresize.c +--- bdfresize-1.5/charresize.c 2000-12-12 06:18:14.000000000 -0500 ++++ bdfresize-1.5.patched/charresize.c 2017-03-29 14:18:04.852262312 -0400 +@@ -46,7 +46,6 @@ + void + processChar(void) + { +- char *malloc(); + char *srcimage; + int *dstgray; + diff --git a/misc/bdfresize/slack-desc b/misc/bdfresize/slack-desc new file mode 100644 index 0000000000000..33babc734aa29 --- /dev/null +++ b/misc/bdfresize/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +bdfresize: bdfresize (tool for resizing BDF fonts) +bdfresize: +bdfresize: bdfresize is a command to magnify or reduce bitmap fonts which are +bdfresize: described with the standard BDF format. +bdfresize: +bdfresize: +bdfresize: +bdfresize: +bdfresize: +bdfresize: +bdfresize: |