1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/graphics/gd/files/makefonts
2013-08-09 14:05:52 +00:00

32 lines
563 B
Bash

#!/bin/sh
# $FreeBSD$
target="${1}"
shift
tarball="${1}"
shift
fonts="Tiny Small MediumBold Large Giant"
case "${target}" in
extract)
tar -xvzpf "${tarball}" $@
;;
configure)
for font in ${fonts}
do
f=`echo "${font}" | tr -d [[:lower:]] | tr [[:upper:]] [[:lower:]]`
mv -v "gdfont${f}.c" "gdfont${f}.c.dist"
mv -v "gdfont${f}.h" "gdfont${f}.h.dist"
done
;;
build)
set -x
for font in ${fonts}
do
f=`echo "${font}" | tr -d [[:lower:]] | tr [[:upper:]] [[:lower:]]`
perl ./bdftogd "gdFont${font}" "font${f}" < "${1}"
shift
done
;;
esac
# eof