summaryrefslogtreecommitdiff
path: root/x11/xfstt
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2000-09-04 15:49:36 +0000
committerkim <kim@pkgsrc.org>2000-09-04 15:49:36 +0000
commit2eb9c1522a445764ad108226fe4e0afd6db533de (patch)
tree14713a98004001ad5046b23f3020d5be77602383 /x11/xfstt
parent825c86148b01e7002d3a31ba267efc13f01f71a4 (diff)
downloadpkgsrc-2eb9c1522a445764ad108226fe4e0afd6db533de.tar.gz
TrueType font server for X11
Diffstat (limited to 'x11/xfstt')
-rw-r--r--x11/xfstt/Makefile31
-rw-r--r--x11/xfstt/files/md53
-rw-r--r--x11/xfstt/files/patch-sum6
-rw-r--r--x11/xfstt/patches/patch-aa16
-rw-r--r--x11/xfstt/patches/patch-ab43
-rw-r--r--x11/xfstt/patches/patch-ac13
-rw-r--r--x11/xfstt/patches/patch-ad30
-rw-r--r--x11/xfstt/pkg/COMMENT1
-rw-r--r--x11/xfstt/pkg/DESCR7
-rw-r--r--x11/xfstt/pkg/PLIST8
10 files changed, 158 insertions, 0 deletions
diff --git a/x11/xfstt/Makefile b/x11/xfstt/Makefile
new file mode 100644
index 00000000000..d01ceb98719
--- /dev/null
+++ b/x11/xfstt/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/09/04 15:49:36 kim Exp $
+#
+
+DISTNAME= xfstt-1.1
+CATEGORIES= x11 net
+MASTER_SITES= ${MASTER_SITE_SUNSITE:=X11/fonts/}
+
+MAINTAINER= packages@netbsd.org
+
+USE_X11BASE= YES
+
+post-patch:
+ @( \
+ cd ${WRKSRC} ; \
+ for i in INSTALL perftest.cpp xfstt.cpp ; \
+ do \
+ ${MV} $$i $$i.bak ; \
+ ${SED} -e 's;@X11BASE@;${X11BASE};' < $$i.bak > $$i ; \
+ done ; \
+ )
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/xfstt ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/xfstt.1x ${PREFIX}/man/man1/xfstt.1
+ ${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
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/xfstt/files/md5 b/x11/xfstt/files/md5
new file mode 100644
index 00000000000..bad8aa88774
--- /dev/null
+++ b/x11/xfstt/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/09/04 15:49:36 kim Exp $
+
+MD5 (xfstt-1.1.tar.gz) = e6588126aa49a5a50458591948424209
diff --git a/x11/xfstt/files/patch-sum b/x11/xfstt/files/patch-sum
new file mode 100644
index 00000000000..dd7323d86cf
--- /dev/null
+++ b/x11/xfstt/files/patch-sum
@@ -0,0 +1,6 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/09/04 15:49:36 kim Exp $
+
+MD5 (patch-aa) = e27932befb06ebac0ddcd13dae861ba4
+MD5 (patch-ab) = f079ec00254b8fbbdf4d988806f8aa26
+MD5 (patch-ac) = 4a59d52d4fb92793eeba8ee58565631e
+MD5 (patch-ad) = d0a74f515833105a7ef80a7a88a44424
diff --git a/x11/xfstt/patches/patch-aa b/x11/xfstt/patches/patch-aa
new file mode 100644
index 00000000000..aa22834ae23
--- /dev/null
+++ b/x11/xfstt/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/09/04 15:49:36 kim Exp $
+
+--- INSTALL.orig Sat Apr 17 09:10:37 1999
++++ INSTALL Sun Sep 3 09:31:55 2000
+@@ -2,8 +2,9 @@
+ make && make install
+ (use gmake instead of the standard make on FreeBSD)
+
+-2) Create a writeable directory /usr/share/fonts/truetype, copy some truetype *.ttf
+- files or create soflinks to truetype directories in there, then run
++2) Create a writeable directory @X11BASE@/lib/X11/fonts/TrueType,
++ copy some truetype *.ttf files or create soflinks to truetype
++ directories in there, then run
+ xfstt --sync
+
+ 3) Start xfstt in the background
diff --git a/x11/xfstt/patches/patch-ab b/x11/xfstt/patches/patch-ab
new file mode 100644
index 00000000000..c88075d461e
--- /dev/null
+++ b/x11/xfstt/patches/patch-ab
@@ -0,0 +1,43 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/09/04 15:49:36 kim Exp $
+
+--- Makefile.orig Mon May 31 02:28:44 1999
++++ Makefile Sun Sep 3 09:30:58 2000
+@@ -2,16 +2,21 @@
+ MISCOPT =
+ OPT = $(MISCOPT) $(MAXOPT)
+
+-CFLAGS = $(OPT) -DMAGNIFY=0 -DNDEBUG
++#CFLAGS = $(OPT) -DMAGNIFY=0 -DNDEBUG
+ #CFLAGS = -fprofile-arcs -ftest-coverage -DMAGNIFY=0
+-CFLAGS = -g -Wall -pedantic $(MISCOPT) -DMAGNIFY=0
++CFLAGS += -Wall -pedantic $(MISCOPT) -DMAGNIFY=0
+ #CFLAGS = -O -Wall -pedantic -DDEBUG $(MISCOPT)
+
+-LFLAGS = -L/usr/X11R6/lib -L/usr/openwin/lib/X11
+-LFLAGS = -g -L/usr/X11R6/lib
++.if !defined(CXXFLAGS)
++CXXFLAGS:=${CFLAGS}
++.endif
++CFLAGS := ${CXXFLAGS} -Wall -pedantic $(MISCOPT) -DMAGNIFY=0
+
+-CC = c++
+-LD = c++
++#LFLAGS = -L/usr/X11R6/lib -L/usr/openwin/lib/X11
++LFLAGS = -L$(X11BASE)/lib
++
++CC = ${CXX}
++LD = ${CXX}
+
+ OBJS = RAFile.o \
+ TTFont.o \
+@@ -56,8 +61,8 @@
+ $(LD) -o $@ $(OBJS) xfstt.o encoding.o $(LFLAGS) -lm
+
+ xfstt.o : xfstt.cpp xfstt.h ttf.h arch.h Makefile
+- $(CC) $(CFLAGS) -c $< -I/usr/X11R6/include/X11/fonts \
+- -I/usr/X11R6/include/
++ $(CC) $(CFLAGS) -c $< -I$(X11BASE)/include/X11/fonts \
++ -I$(X11BASE)/include/
+
+ encoding.o : encoding.cpp encoding.h Makefile
+ $(CC) $(CFLAGS) -c $<
diff --git a/x11/xfstt/patches/patch-ac b/x11/xfstt/patches/patch-ac
new file mode 100644
index 00000000000..f1fd1ed98f7
--- /dev/null
+++ b/x11/xfstt/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/09/04 15:49:36 kim Exp $
+
+--- perftest.cpp.orig Fri Jan 8 21:11:04 1999
++++ perftest.cpp Sun Sep 3 09:32:37 2000
+@@ -1,7 +1,7 @@
+ // test ttf engine performance
+ // (C) Copyright 1997-1998 Herbert Duerr
+
+-#define TTFONTDIR "/usr/share/fonts/truetype"
++#define TTFONTDIR "@X11BASE@/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..d21819fe190
--- /dev/null
+++ b/x11/xfstt/patches/patch-ad
@@ -0,0 +1,30 @@
+$NetBSD: patch-ad,v 1.1.1.1 2000/09/04 15:49:36 kim Exp $
+
+--- xfstt.cpp.orig Sat Dec 11 13:23:45 1999
++++ xfstt.cpp Sun Sep 3 09:32:56 2000
+@@ -11,8 +11,8 @@
+ #define UNSTRAPLIMIT 10500U
+
+ // Change these if you don't lie being FHS complient
+-#define TTFONTDIR "/usr/share/fonts/truetype"
+-#define TTCACHEDIR "/var/cache/xfstt"
++#define TTFONTDIR "@X11BASE@/lib/X11/fonts/TrueType"
++#define TTCACHEDIR "@X11BASE@/lib/X11/fonts/TrueType"
+
+ #define TTINFO_LEAF "ttinfo.dir"
+ #define TTNAME_LEAF "ttname.dir"
+@@ -470,10 +470,12 @@
+ raster->getFontExtent( &xfs->fe);
+
+ int used = (xfs->fe.bitmaps + xfs->fe.bmplen) - xfs->fe.buffer;
++ int bmpoff = xfs->fe.bitmaps - xfs->fe.buffer;
+ xfs->fe.buffer = (U8*)shrinkMem( xfs->fe.buffer, used);
+- if( xfs->fe.buffer)
++ if( xfs->fe.buffer) {
+ xfs->fe.buflen = used;
+- else {
++ xfs->fe.bitmaps = xfs->fe.buffer + bmpoff;
++ } else {
+ xfs->fid = 0; //###
+ xfs = 0;
+ }
diff --git a/x11/xfstt/pkg/COMMENT b/x11/xfstt/pkg/COMMENT
new file mode 100644
index 00000000000..92142079762
--- /dev/null
+++ b/x11/xfstt/pkg/COMMENT
@@ -0,0 +1 @@
+TrueType font server for X11
diff --git a/x11/xfstt/pkg/DESCR b/x11/xfstt/pkg/DESCR
new file mode 100644
index 00000000000..ef2a4395be6
--- /dev/null
+++ b/x11/xfstt/pkg/DESCR
@@ -0,0 +1,7 @@
+Xfstt is an X11 Font Server for TrueType fonts.
+
+TT fonts are generally regarded to be the best scalable
+fonts for low resolution devices like displays.
+
+Examples where good scalable fonts improve the visual
+quality considerably are netscape(tm), gimp and java(tm).
diff --git a/x11/xfstt/pkg/PLIST b/x11/xfstt/pkg/PLIST
new file mode 100644
index 00000000000..84aad398b98
--- /dev/null
+++ b/x11/xfstt/pkg/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/09/04 15:49:36 kim Exp $
+bin/xfstt
+man/man1/xfstt.1
+share/doc/xfstt/FAQ
+share/doc/xfstt/CHANGES
+share/doc/xfstt/INSTALL
+share/doc/xfstt/THANKS.txt
+@dirrm share/doc/xfstt