aboutsummaryrefslogtreecommitdiff
path: root/graphics/gbdfed
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2011-07-03 13:43:06 -0400
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 21:54:02 -0300
commit2a38075c62576e22b5f33129480ade44edd19385 (patch)
tree1d06842c61717188174a48422c2d3b4008b58558 /graphics/gbdfed
parentafa1c01d62ab2bb4a56c47947d74ee639b75fa45 (diff)
graphics/gbdfed: Added (bitmap font editor)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'graphics/gbdfed')
-rw-r--r--graphics/gbdfed/README4
-rw-r--r--graphics/gbdfed/gbdfed.SlackBuild81
-rw-r--r--graphics/gbdfed/gbdfed.info10
-rw-r--r--graphics/gbdfed/slack-desc19
4 files changed, 114 insertions, 0 deletions
diff --git a/graphics/gbdfed/README b/graphics/gbdfed/README
new file mode 100644
index 0000000000000..5d98188184219
--- /dev/null
+++ b/graphics/gbdfed/README
@@ -0,0 +1,4 @@
+gbdfed lets you interactively create new bitmap font files or modify
+existing ones. It allows editing multiple fonts and multiple glyphs,
+it allows cut and paste operations between fonts and glyphs and editing
+font properties. The editor works natively with BDF fonts.
diff --git a/graphics/gbdfed/gbdfed.SlackBuild b/graphics/gbdfed/gbdfed.SlackBuild
new file mode 100644
index 0000000000000..8ab620133d100
--- /dev/null
+++ b/graphics/gbdfed/gbdfed.SlackBuild
@@ -0,0 +1,81 @@
+#!/bin/sh
+
+# Slackware build script for gbdfed
+# Written by Kyle Guinn <elyk03@gmail.com>
+
+PRGNAM=gbdfed
+VERSION=${VERSION:-1.6}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$(uname -m)" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$(uname -m) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM-$VERSION
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCS="NEWS README"
+
+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"
+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.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-st .
+
+# Remove the DEPRECATED flags for GTK+ > 2.20
+sed -i 's/-DG_DISABLE_DEPRECATED/#-DG_DISABLE_DEPRECATED/' Makefile.in
+
+CFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+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 $DOCS $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/graphics/gbdfed/gbdfed.info b/graphics/gbdfed/gbdfed.info
new file mode 100644
index 0000000000000..aad943de83d51
--- /dev/null
+++ b/graphics/gbdfed/gbdfed.info
@@ -0,0 +1,10 @@
+PRGNAM="gbdfed"
+VERSION="1.6"
+HOMEPAGE="http://sofia.nmsu.edu/~mleisher/Software/gbdfed/"
+DOWNLOAD="http://sofia.nmsu.edu/~mleisher/Software/gbdfed/gbdfed-1.6.tar.bz2"
+MD5SUM="2a2e1cbfe8566db6d302f0b9ab79b8dd"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Kyle Guinn"
+EMAIL="elyk03@gmail.com"
+APPROVED="dsomero"
diff --git a/graphics/gbdfed/slack-desc b/graphics/gbdfed/slack-desc
new file mode 100644
index 0000000000000..7c491de520c98
--- /dev/null
+++ b/graphics/gbdfed/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------------------------------------------------------|
+gbdfed: gbdfed (bitmap font editor)
+gbdfed:
+gbdfed: gbdfed lets you interactively create new bitmap font files or modify
+gbdfed: existing ones. It allows editing multiple fonts and multiple glyphs,
+gbdfed: it allows cut and paste operations between fonts and glyphs and
+gbdfed: editing font properties. The editor works natively with BDF fonts.
+gbdfed:
+gbdfed:
+gbdfed:
+gbdfed:
+gbdfed: