mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
create bsd12 branch
This commit is contained in:
31
graph/libgd/files/makefonts
Normal file
31
graph/libgd/files/makefonts
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD: head/graphics/gd/files/makefonts 340872 2014-01-24 00:14:07Z mat $
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user