From 8dd49aff5cbd6c770b0ba3ed7c862c47794843e3 Mon Sep 17 00:00:00 2001 From: jasoni Date: Mon, 12 Jul 1999 08:47:19 +0000 Subject: [PATCH] add xfstt: A TrueType font server for X11 --- x11/xfstt/Makefile | 31 +++++++++++++++++++++++++++++++ x11/xfstt/files/md5 | 3 +++ x11/xfstt/patches/patch-ab | 19 +++++++++++++++++++ x11/xfstt/patches/patch-ac | 11 +++++++++++ x11/xfstt/patches/patch-ad | 5 +++++ x11/xfstt/pkg/COMMENT | 1 + x11/xfstt/pkg/DESCR | 1 + x11/xfstt/pkg/MESSAGE | 17 +++++++++++++++++ x11/xfstt/pkg/PLIST | 8 ++++++++ 9 files changed, 96 insertions(+) create mode 100644 x11/xfstt/Makefile create mode 100644 x11/xfstt/files/md5 create mode 100644 x11/xfstt/patches/patch-ab create mode 100644 x11/xfstt/patches/patch-ac create mode 100644 x11/xfstt/patches/patch-ad create mode 100644 x11/xfstt/pkg/COMMENT create mode 100644 x11/xfstt/pkg/DESCR create mode 100644 x11/xfstt/pkg/MESSAGE create mode 100644 x11/xfstt/pkg/PLIST diff --git a/x11/xfstt/Makefile b/x11/xfstt/Makefile new file mode 100644 index 00000000000..ff99e9d4732 --- /dev/null +++ b/x11/xfstt/Makefile @@ -0,0 +1,31 @@ +# $OpenBSD# +# $FreeBSD Id: Makefile,v 1.2 1999/06/28 02:22:43 billf Exp $ +# + +DISTNAME= Xfstt-0.9.10 +PKGNAME= xfstt-0.9.10 +CATEGORIES= x11 +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= X11/fonts +EXTRACT_SUFX= .tgz + +MAINTAINER= jasoni@openbsd.org + +WRKSRC= ${WRKDIR}/xfstt0910 + +USE_X11= yes + +do-install: + $(INSTALL_PROGRAM) $(WRKSRC)/xfstt $(PREFIX)/bin + $(INSTALL_MAN) $(WRKSRC)/xfstt.1x $(PREFIX)/man/man1/xfstt.1 + +post-install: + strip $(PREFIX)/bin/xfstt + $(MKDIR) $(PREFIX)/share/doc/xfstt + $(INSTALL_DATA) $(WRKSRC)/FAQ $(PREFIX)/share/doc/xfstt + $(INSTALL_DATA) $(WRKSRC)/CHANGES $(PREFIX)/share/doc/xfstt + $(INSTALL_DATA) $(WRKSRC)/INSTALL $(PREFIX)/share/doc/xfstt + $(INSTALL_DATA) $(WRKSRC)/THANKS.txt $(PREFIX)/share/doc/xfstt + ${INSTALL_DATA} ${WRKSRC}/README.OpenBSD ${PREFIX}/share/doc/xfstt + +.include diff --git a/x11/xfstt/files/md5 b/x11/xfstt/files/md5 new file mode 100644 index 00000000000..ce4a619d9f9 --- /dev/null +++ b/x11/xfstt/files/md5 @@ -0,0 +1,3 @@ +MD5 (Xfstt-0.9.10.tgz) = 9189cbcfb972fcc05e093aeccfd4d3b2 +RMD160 (Xfstt-0.9.10.tgz) = 91fc60d1c0a22c41ef508e0e103cdc6fd7c2d2ed +SHA1 (Xfstt-0.9.10.tgz) = 07a32e90a1eb0514a8f516c027e68faaf79097fd diff --git a/x11/xfstt/patches/patch-ab b/x11/xfstt/patches/patch-ab new file mode 100644 index 00000000000..59088553138 --- /dev/null +++ b/x11/xfstt/patches/patch-ab @@ -0,0 +1,19 @@ +--- xfstt.cpp.orig Sun Oct 25 11:21:12 1998 ++++ xfstt.cpp Wed Dec 23 19:29:11 1998 +@@ -8,7 +8,7 @@ + // if you are sure your X11 server doesn't request more + // than it can handle, increase the limit up to 65535 + #define UNSTRAPLIMIT 10500U +-#define TTFONTDIR "/usr/ttfonts" ++#define TTFONTDIR "/usr/X11R6/lib/X11/fonts/TrueType" + + #define MAXOPENFONTS 256 + #define MAXREPLYSIZE (1<<22) +@@ -22,6 +22,7 @@ + #include "ttfn.h" + #include "encoding.h" + ++#include + #include + #include + #include diff --git a/x11/xfstt/patches/patch-ac b/x11/xfstt/patches/patch-ac new file mode 100644 index 00000000000..7bedac07abf --- /dev/null +++ b/x11/xfstt/patches/patch-ac @@ -0,0 +1,11 @@ +--- perftest.cpp.orig Wed Dec 23 21:21:45 1998 ++++ perftest.cpp Wed Dec 23 21:22:15 1998 +@@ -1,7 +1,7 @@ + // test ttf engine performance + // (C) Copyright 1997-1998 Herbert Duerr + +-#define TTFONTDIR "/usr/ttfonts" ++#define TTFONTDIR "/usr/X11R6/lib/X11/fonts/TrueType" + #define MAXFONTBUFSIZE (2048*2048) + + #include "ttf.h" diff --git a/x11/xfstt/patches/patch-ad b/x11/xfstt/patches/patch-ad new file mode 100644 index 00000000000..d33767db6f6 --- /dev/null +++ b/x11/xfstt/patches/patch-ad @@ -0,0 +1,5 @@ +--- README.OpenBSD.orig Mon Jul 12 02:22:11 1999 ++++ README.OpenBSD Mon Jul 12 02:22:44 1999 +@@ -0,0 +1,2 @@ ++The font directory for OpenBSD has been changed from /usr/ttfonts/ to ++/usr/X11R6/lib/X11/fonts/TrueType/. diff --git a/x11/xfstt/pkg/COMMENT b/x11/xfstt/pkg/COMMENT new file mode 100644 index 00000000000..72e0bc2e760 --- /dev/null +++ b/x11/xfstt/pkg/COMMENT @@ -0,0 +1 @@ +A TrueType font server for X11 diff --git a/x11/xfstt/pkg/DESCR b/x11/xfstt/pkg/DESCR new file mode 100644 index 00000000000..809707d79dd --- /dev/null +++ b/x11/xfstt/pkg/DESCR @@ -0,0 +1 @@ +This is Xfstt, a free TrueType font server for X11. diff --git a/x11/xfstt/pkg/MESSAGE b/x11/xfstt/pkg/MESSAGE new file mode 100644 index 00000000000..d3c83dd009b --- /dev/null +++ b/x11/xfstt/pkg/MESSAGE @@ -0,0 +1,17 @@ + + + + +To start the TrueType font server for X11 at boot time, put something like +the following in /etc/rc.local: + +if [ -x /usr/X11R6/bin/xfstt ]; then + echo -n ' xfstt'; /usr/X11R6/bin/xfstt & +fi + +You should also add the following to your FontPath in /etc/XF86Config: + +FontPath "unix/:7100" + +You should also put some TrueType fonts in /usr/X11R6/lib/X11/fonts/TrueType. +Additional documentation can be found in /usr/X11R6/share/doc/xfstt. diff --git a/x11/xfstt/pkg/PLIST b/x11/xfstt/pkg/PLIST new file mode 100644 index 00000000000..fc74ffc2fa0 --- /dev/null +++ b/x11/xfstt/pkg/PLIST @@ -0,0 +1,8 @@ +bin/xfstt +man/man1/xfstt.1 +share/doc/xfstt/FAQ +share/doc/xfstt/CHANGES +share/doc/xfstt/INSTALL +share/doc/xfstt/THANKS.txt +share/doc/xfstt/README.OpenBSD +@dirrm share/doc/xfstt