summaryrefslogtreecommitdiffstats
path: root/x11-servers/Xfstt/files
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2003-02-16 13:55:09 +0000
committernaddy <naddy@FreeBSD.org>2003-02-16 13:55:09 +0000
commit69bb611d6f753d626733e99941cd1a7c8285f2b7 (patch)
treea1649718d543a293c49c6a5d9741a98d9ccd20e6 /x11-servers/Xfstt/files
parent8106babaae48c1526e96317e3e9b950483e904e0 (diff)
downloadFreeBSD-ports-69bb611d6f753d626733e99941cd1a7c8285f2b7.zip
FreeBSD-ports-69bb611d6f753d626733e99941cd1a7c8285f2b7.tar.gz
Update to version 1.4.
PR: 48048 Submitted by: Ports Fury
Diffstat (limited to 'x11-servers/Xfstt/files')
-rw-r--r--x11-servers/Xfstt/files/patch-INSTALL11
-rw-r--r--x11-servers/Xfstt/files/patch-aa41
-rw-r--r--x11-servers/Xfstt/files/patch-ab81
-rw-r--r--x11-servers/Xfstt/files/patch-ac11
-rw-r--r--x11-servers/Xfstt/files/patch-ad10
-rw-r--r--x11-servers/Xfstt/files/patch-ae25
-rw-r--r--x11-servers/Xfstt/files/patch-doc::xfstt.1x17
-rw-r--r--x11-servers/Xfstt/files/patch-libfstt::arch.h10
-rw-r--r--x11-servers/Xfstt/files/patch-src::perftest.cc11
-rw-r--r--x11-servers/Xfstt/files/patch-src::xfstt.cc13
10 files changed, 62 insertions, 168 deletions
diff --git a/x11-servers/Xfstt/files/patch-INSTALL b/x11-servers/Xfstt/files/patch-INSTALL
new file mode 100644
index 0000000..126948c
--- /dev/null
+++ b/x11-servers/Xfstt/files/patch-INSTALL
@@ -0,0 +1,11 @@
+--- INSTALL.orig Tue Nov 19 13:47:49 2002
++++ INSTALL Wed Nov 20 22:34:03 2002
+@@ -32,7 +32,7 @@
+ $ make && make install
+ (use gmake instead of the standard make on FreeBSD)
+
+-2) Create a writeable directory /usr/share/fonts/truetype, copy some
++2) Create a writeable directory %%TTFONTDIR%%, copy some
+ truetype *.ttf files or create soflinks to truetype directories
+ in there, then run
+
diff --git a/x11-servers/Xfstt/files/patch-aa b/x11-servers/Xfstt/files/patch-aa
deleted file mode 100644
index cd8794d..0000000
--- a/x11-servers/Xfstt/files/patch-aa
+++ /dev/null
@@ -1,41 +0,0 @@
---- Makefile.orig Sun May 30 23:28:44 1999
-+++ Makefile Sat Apr 1 18:15:32 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-servers/Xfstt/files/patch-ab b/x11-servers/Xfstt/files/patch-ab
deleted file mode 100644
index 36d6981..0000000
--- a/x11-servers/Xfstt/files/patch-ab
+++ /dev/null
@@ -1,81 +0,0 @@
---- xfstt.cpp.orig Sat Dec 11 19:23:45 1999
-+++ xfstt.cpp Sat Nov 18 15:57:30 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 "/usr/X11R6/lib/X11/fonts/TrueType"
-+#define TTCACHEDIR "/usr/X11R6/lib/X11/fonts/TrueType"
-
- #define TTINFO_LEAF "ttinfo.dir"
- #define TTNAME_LEAF "ttname.dir"
-@@ -73,6 +73,7 @@
- char* fontdir = TTFONTDIR;
- char* cachedir = TTCACHEDIR;
- int defaultres = 0;
-+int NoTCP = 0;
-
- uid_t newuid = (uid_t)(-2);
- gid_t newgid = (uid_t)(-2);
-@@ -95,6 +96,7 @@
- printf( "\t--sync put ttf-fonts in \"%s\" in database\n", fontdir);
- printf( "\t--gslist print ghostscript style ttf fontlist\n ");
- printf( "\t--port change port number from default 7101\n");
-+ printf( "\t--notcp don't open TCP socket, use unix domain only\n");
- printf( "\t--dir use other font directory than "TTFONTDIR"\n");
- printf( "\t--cache use other font cache directory than "TTCACHEDIR"\n");
- printf( "\t--res force default resolution to this value\n");
-@@ -470,10 +472,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;
- }
-@@ -652,7 +656,7 @@
- listen( sd_unix, 1); // only one connection
- }
-
-- if( !sd_inet) {
-+ if( !NoTCP && !sd_inet) {
- // prepare inet connection
- sd_inet = socket( PF_INET, SOCK_STREAM, IPPROTO_TCP);
-
-@@ -668,7 +672,8 @@
- fd_set sdlist;
- FD_ZERO( &sdlist);
- FD_SET( sd_unix, &sdlist);
-- FD_SET( sd_inet, &sdlist);
-+ if( !NoTCP )
-+ FD_SET( sd_inet, &sdlist);
- int maxsd = (sd_inet > sd_unix) ? sd_inet : sd_unix;
- select( maxsd+1, &sdlist, 0L, 0L, 0L);
-
-@@ -676,7 +681,7 @@
- unsigned int saLength = sizeof(struct sockaddr);
- if( FD_ISSET( sd_unix, &sdlist))
- sd = accept( sd_unix, (struct sockaddr*)&s_unix, &saLength);
-- else if( FD_ISSET( sd_inet, &sdlist))
-+ else if( !NoTCP && FD_ISSET( sd_inet, &sdlist))
- sd = accept( sd_inet, (struct sockaddr*)&s_inet, &saLength);
- dprintf2( "accept( saLength = %d) = %d\n", saLength, sd);
-
-@@ -1604,6 +1609,8 @@
- inetdConnection = 1;
- } else if( !strcmp( argv[i], "--multi")) {
- multiConnection = 1;
-+ } else if( !strcmp( argv[i], "--notcp")) {
-+ NoTCP = 1;
- } else if( !strcmp( argv[i], "--once")) {
- multiConnection = 0;
- } else if( !strcmp( argv[i], "--unstrap")) {
diff --git a/x11-servers/Xfstt/files/patch-ac b/x11-servers/Xfstt/files/patch-ac
deleted file mode 100644
index 955408c..0000000
--- a/x11-servers/Xfstt/files/patch-ac
+++ /dev/null
@@ -1,11 +0,0 @@
---- perftest.cpp.orig Sat Jan 9 04:11:04 1999
-+++ perftest.cpp Mon Dec 6 16:53:06 1999
-@@ -1,7 +1,7 @@
- // test ttf engine performance
- // (C) Copyright 1997-1998 Herbert Duerr
-
--#define TTFONTDIR "/usr/share/fonts/truetype"
-+#define TTFONTDIR "/usr/X11R6/lib/X11/fonts/TrueType"
- #define MAXFONTBUFSIZE (2048*2048)
-
- #include "ttf.h"
diff --git a/x11-servers/Xfstt/files/patch-ad b/x11-servers/Xfstt/files/patch-ad
deleted file mode 100644
index 0d32313..0000000
--- a/x11-servers/Xfstt/files/patch-ad
+++ /dev/null
@@ -1,10 +0,0 @@
---- INSTALL.orig Mon Dec 6 16:56:27 1999
-+++ INSTALL Mon Dec 6 16:56:48 1999
-@@ -2,7 +2,7 @@
- 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
-+2) Create a writeable directory /usr/X11R6/lib/X11/fonts/TrueType, copy some truetype *.ttf
- files or create soflinks to truetype directories in there, then run
- xfstt --sync
diff --git a/x11-servers/Xfstt/files/patch-ae b/x11-servers/Xfstt/files/patch-ae
deleted file mode 100644
index dba172a..0000000
--- a/x11-servers/Xfstt/files/patch-ae
+++ /dev/null
@@ -1,25 +0,0 @@
---- xfstt.1x.orig Tue Jul 13 05:07:15 1999
-+++ xfstt.1x Sat Nov 18 16:08:20 2000
-@@ -3,7 +3,7 @@
- xfstt \- X11 font server for *ttf fonts
- .SH SYNOPSIS
- .B xfstt
--[--port n] [--dir dirname] [--unstrap]
-+[--port n] [--notcp] [--dir dirname] [--unstrap]
- [--multi] [--once] [--user username]
- [[--gslist] --sync]
- [--res resolution] [--encoding list]
-@@ -43,9 +43,12 @@
- Change the port number for xfstt's font services.
- This version of Xfstt defaults to --port 7101.
- .TP
-+.I "\-\-notcp"
-+Don't open TCP socket, use unix domain only.
-+.TP
- .I "\-\-dir name"
- Change xfstt's font directory.
--The default is --dir /usr/share/fonts/truetype.
-+The default is --dir /usr/X11R6/lib/X11/fonts/TrueType.
- .TP
- .I "\-\-res value"
- Force the resolution for underspecified fonts to value (typically 96 or 120).
diff --git a/x11-servers/Xfstt/files/patch-doc::xfstt.1x b/x11-servers/Xfstt/files/patch-doc::xfstt.1x
new file mode 100644
index 0000000..68fb563
--- /dev/null
+++ b/x11-servers/Xfstt/files/patch-doc::xfstt.1x
@@ -0,0 +1,17 @@
+--- doc/xfstt.1x.orig Thu Nov 14 21:08:07 2002
++++ doc/xfstt.1x Wed Nov 20 22:35:57 2002
+@@ -58,12 +58,12 @@
+ .I "\-\-dir name"
+ Change xfstt's font directory.
+ The default directory is
+-.IR /usr/share/fonts/truetype .
++.IR %%TTFONTDIR%% .
+ .TP
+ .I "\-\-cache name"
+ Change xfstt's font cache directory.
+ The default directory is
+-.IR /var/cache/xfstt .
++.IR %%TTFONTDIR%% .
+ .TP
+ .I "\-\-pidfile name"
+ Change xfstt's pidfile location.
diff --git a/x11-servers/Xfstt/files/patch-libfstt::arch.h b/x11-servers/Xfstt/files/patch-libfstt::arch.h
new file mode 100644
index 0000000..4815c3e
--- /dev/null
+++ b/x11-servers/Xfstt/files/patch-libfstt::arch.h
@@ -0,0 +1,10 @@
+--- libfstt/arch.h.orig Thu Nov 14 21:08:10 2002
++++ libfstt/arch.h Wed Nov 20 22:44:27 2002
+@@ -49,6 +49,7 @@
+ typedef signed short S16;
+ typedef signed int S32;
+
++#include <sys/types.h>
+ #include <netinet/in.h>
+
+ // byte swapping (doing it by ntohl/ntohs works only on little endian CPUs)
diff --git a/x11-servers/Xfstt/files/patch-src::perftest.cc b/x11-servers/Xfstt/files/patch-src::perftest.cc
new file mode 100644
index 0000000..c9ef793
--- /dev/null
+++ b/x11-servers/Xfstt/files/patch-src::perftest.cc
@@ -0,0 +1,11 @@
+--- src/perftest.cc.orig Thu Nov 14 21:08:09 2002
++++ src/perftest.cc Wed Nov 20 23:17:01 2002
+@@ -21,7 +21,7 @@
+ *
+ */
+
+-#define TTFONTDIR "/usr/share/fonts/truetype"
++#define TTFONTDIR "%%TTFONTDIR%%"
+ #define MAXFONTBUFSIZE (2048*2048)
+
+ #include "ttf.h"
diff --git a/x11-servers/Xfstt/files/patch-src::xfstt.cc b/x11-servers/Xfstt/files/patch-src::xfstt.cc
new file mode 100644
index 0000000..80495b5
--- /dev/null
+++ b/x11-servers/Xfstt/files/patch-src::xfstt.cc
@@ -0,0 +1,13 @@
+--- src/xfstt.cc.orig Thu Nov 14 21:08:08 2002
++++ src/xfstt.cc Wed Nov 20 23:22:03 2002
+@@ -31,8 +31,8 @@
+ #define UNSTRAPLIMIT 10500U
+
+ // Change these if you don't like being FHS complient
+-#define TTFONTDIR "/usr/share/fonts/truetype"
+-#define TTCACHEDIR "/var/cache/xfstt"
++#define TTFONTDIR "%%TTFONTDIR%%"
++#define TTCACHEDIR "%%TTFONTDIR%%"
+
+ #define TTINFO_LEAF "ttinfo.dir"
+ #define TTNAME_LEAF "ttname.dir"
OpenPOWER on IntegriCloud