aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gd
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2004-01-14 14:14:42 +0800
committerdinoex <dinoex@FreeBSD.org>2004-01-14 14:14:42 +0800
commit0b860409fafaec856a17f15f6c15dcee05c78c4b (patch)
tree38649f75f98efb32c7683d12b31e5bbd24ca4eb2 /graphics/gd
parent95720689e559384ab885e649e5769e5bd6f0a03a (diff)
downloadfreebsd-ports-gnome-0b860409fafaec856a17f15f6c15dcee05c78c4b.tar.gz
freebsd-ports-gnome-0b860409fafaec856a17f15f6c15dcee05c78c4b.tar.zst
freebsd-ports-gnome-0b860409fafaec856a17f15f6c15dcee05c78c4b.zip
- ressurrect missing configure script from
http://www.freebsd.org/cgi/cvsweb.cgi/ports/graphics/gd/scripts/Attic/configure Problem noted by: ldivil@smartsolutions.ru - set SCRIPTDIR to save an extra directory
Diffstat (limited to 'graphics/gd')
-rw-r--r--graphics/gd/Makefile1
-rw-r--r--graphics/gd/files/configure44
2 files changed, 45 insertions, 0 deletions
diff --git a/graphics/gd/Makefile b/graphics/gd/Makefile
index 9da9072f4477..2282722f4b33 100644
--- a/graphics/gd/Makefile
+++ b/graphics/gd/Makefile
@@ -24,6 +24,7 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
MAKE_ENV= WRKSRC="${WRKSRC}" CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAKEFILE= ${FILESDIR}/Makefile.bsd
INSTALLS_SHLIB= yes
+SCRIPTDIR= ${FILESDIR}
.include <bsd.port.pre.mk>
diff --git a/graphics/gd/files/configure b/graphics/gd/files/configure
new file mode 100644
index 000000000000..3ab959bb3dbf
--- /dev/null
+++ b/graphics/gd/files/configure
@@ -0,0 +1,44 @@
+#!/bin/sh
+# $FreeBSD: /tmp/pcvs/ports/graphics/gd/files/configure,v 1.1 2004-01-14 06:14:42 dinoex Exp $
+
+# The GD_FONTS environment variable can be set to specify the gzipped
+# tar-ball containing the fonts in bdf format and the bdf file names.
+#
+# For example:
+# GD_FONTS="/usr/ports/distfiles/x-koi8u.tgz koi6x10.bdf koi8x13.bdf \
+# koi9x15.bdf koi12x24.bdf koi10x20.bdf"
+#
+# This can be usefull for slave ports, like ukrainian/gd, which may
+# now provide alternative fonts easily.
+
+# TODO: . handle multiple archiving formats: tgz, tar.bz2, zip
+# . allow for passing already extracted font-files
+
+if [ -z "$GD_FONTS" ]
+then
+ echo "GD_FONTS can be set to specify an alternative list of .bdf files"
+ echo "See $0 for details..."
+ exit 0
+fi
+
+set $GD_FONTS
+#
+# The tarball is the first argument, the tiny, small, medium-bold,
+# large, and giant fonts follow.
+#
+
+tarball=$1
+shift
+tar -xvzpf $tarball -C $WRKSRC $@
+
+rm -f $WRKSRC/Makefile.fonts
+
+for font in Tiny Small MediumBold Large Giant
+do
+ f=`echo $font | tr -d [[:lower:]] | tr [[:upper:]] [[:lower:]]`
+ rm -f $WRKSRC/gdfont$f.[ch]
+ printf 'gdfont%s.c gdfont%s.h: %s\
+ perl ${.CURDIR}/bdftogd gdFont%s font%s < %s\n' \
+ $f $f $1 $font $f $1 >> $WRKSRC/Makefile.fonts
+ shift
+done