mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
graphics/gbdfed: Added (bitmap font editor)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
afa1c01d62
commit
2a38075c62
4 changed files with 114 additions and 0 deletions
4
graphics/gbdfed/README
Normal file
4
graphics/gbdfed/README
Normal file
|
@ -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.
|
81
graphics/gbdfed/gbdfed.SlackBuild
Normal file
81
graphics/gbdfed/gbdfed.SlackBuild
Normal file
|
@ -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}
|
10
graphics/gbdfed/gbdfed.info
Normal file
10
graphics/gbdfed/gbdfed.info
Normal file
|
@ -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"
|
19
graphics/gbdfed/slack-desc
Normal file
19
graphics/gbdfed/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue