aboutsummaryrefslogtreecommitdiff
path: root/x11-servers
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-09-04 17:21:40 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-09-04 17:21:40 +0000
commitf28b74e40f9aa877507d25367c98fb8281af58ce (patch)
treee603bc9aa5723399772dac6611bea62fccf1d637 /x11-servers
parent14fcd4f889c56513d72f4a8db9c6825036746cce (diff)
downloadports-f28b74e40f9aa877507d25367c98fb8281af58ce.tar.gz
ports-f28b74e40f9aa877507d25367c98fb8281af58ce.zip
- Update to version 1.6
PR: 56439 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=88560
Diffstat (limited to 'x11-servers')
-rw-r--r--x11-servers/Xfstt/Makefile12
-rw-r--r--x11-servers/Xfstt/distinfo2
-rw-r--r--x11-servers/Xfstt/files/patch-INSTALL16
-rw-r--r--x11-servers/Xfstt/files/patch-libfstt::ttf.h15
-rw-r--r--x11-servers/Xfstt/files/patch-src::Makefile.in13
-rw-r--r--x11-servers/Xfstt/files/patch-src::perftest.cc11
-rw-r--r--x11-servers/Xfstt/files/patch-src::xfstt.cc13
-rw-r--r--x11-servers/Xfstt/pkg-plist10
8 files changed, 48 insertions, 44 deletions
diff --git a/x11-servers/Xfstt/Makefile b/x11-servers/Xfstt/Makefile
index d7a7110c6e4a..a392799b8aa8 100644
--- a/x11-servers/Xfstt/Makefile
+++ b/x11-servers/Xfstt/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= xfstt
-PORTVERSION= 1.4
+PORTVERSION= 1.6
CATEGORIES= x11-servers
MASTER_SITES= http://download.berlios.de/xfstt/
@@ -17,21 +17,21 @@ USE_X_PREFIX= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ARGS= --disable-nls
+CONFIGURE_ARGS= --localstatedir=/var --disable-nls
MAN1= xfstt.1x
TTFONTDIR= ${PREFIX}/lib/X11/fonts/TrueType
post-patch:
-.for file in INSTALL doc/xfstt.1x src/perftest.cc src/xfstt.cc
+.for file in INSTALL doc/xfstt.1x src/Makefile.in
@${REINPLACE_CMD} -e 's|%%TTFONTDIR%%|${TTFONTDIR}|g' ${WRKSRC}/${file}
.endfor
+ @${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${FILESDIR}/xfstt.sh \
+ > ${WRKSRC}/xfstt.sh
post-install:
- ${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${FILESDIR}/xfstt.sh \
- > ${PREFIX}/etc/rc.d/xfstt.sh
- @${CHMOD} 755 ${PREFIX}/etc/rc.d/xfstt.sh
+ ${INSTALL_SCRIPT} ${WRKSRC}/xfstt.sh ${PREFIX}/etc/rc.d
@${MKDIR} ${TTFONTDIR}
.if !defined{NOPORTDOCS}
@${MKDIR} ${DOCSDIR}
diff --git a/x11-servers/Xfstt/distinfo b/x11-servers/Xfstt/distinfo
index 10eb4116d3dd..7b83353ceebf 100644
--- a/x11-servers/Xfstt/distinfo
+++ b/x11-servers/Xfstt/distinfo
@@ -1 +1 @@
-MD5 (xfstt-1.4.tar.gz) = e186b28d413056b4f95a02562e664bc6
+MD5 (xfstt-1.6.tar.gz) = 8134fb9854208e187582a0313f921829
diff --git a/x11-servers/Xfstt/files/patch-INSTALL b/x11-servers/Xfstt/files/patch-INSTALL
index 126948cdf3de..2fa24a43ee61 100644
--- a/x11-servers/Xfstt/files/patch-INSTALL
+++ b/x11-servers/Xfstt/files/patch-INSTALL
@@ -1,11 +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
+--- INSTALL.orig Tue Jul 29 12:50:35 2003
++++ INSTALL Tue Jul 29 18:52:26 2003
+@@ -43,7 +43,7 @@
(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
+ 3) Copy some truetype (.ttf) files or create symlinks to truetype directories
+- in the default installation directory /usr/local/share/fonts/truetype
++ in the default installation directory %%TTFONTDIR%%
+ (note that this directory may be changed in the configure step). Then to
+ generate the font databases:
diff --git a/x11-servers/Xfstt/files/patch-libfstt::ttf.h b/x11-servers/Xfstt/files/patch-libfstt::ttf.h
new file mode 100644
index 000000000000..8abc5c2fb420
--- /dev/null
+++ b/x11-servers/Xfstt/files/patch-libfstt::ttf.h
@@ -0,0 +1,15 @@
+--- libfstt/ttf.h.orig Thu Aug 7 15:20:44 2003
++++ libfstt/ttf.h Wed Sep 3 08:03:38 2003
+@@ -49,10 +49,10 @@
+ #endif
+
+ #ifndef DEBUG
+-# define debug(format, ...)
++# define debug(format, ARGS...)
+ # define STATIC static
+ #else
+-# define debug(format, ...) fprintf(outfile, format, ##__VA_ARGS__)
++# define debug(format, ARGS...) fprintf(outfile, format, ##ARGS)
+ # define STATIC
+ #endif
+
diff --git a/x11-servers/Xfstt/files/patch-src::Makefile.in b/x11-servers/Xfstt/files/patch-src::Makefile.in
new file mode 100644
index 000000000000..d86fc6de4bc9
--- /dev/null
+++ b/x11-servers/Xfstt/files/patch-src::Makefile.in
@@ -0,0 +1,13 @@
+--- src/Makefile.in.orig Thu Aug 7 15:58:28 2003
++++ src/Makefile.in Thu Sep 4 09:44:20 2003
+@@ -163,8 +163,8 @@
+ target_alias = @target_alias@
+
+ localedir = $(datadir)/locale
+-fontdir = $(datadir)/fonts/truetype
+-cachedir = $(localstatedir)/cache/xfstt
++fontdir = %%TTFONTDIR%%
++cachedir = %%TTFONTDIR%%
+ pidfile = $(localstatedir)/run/xfstt.pid
+
+ LDADD = @LIBINTL@ -L$(top_srcdir)/libfstt -lfstt
diff --git a/x11-servers/Xfstt/files/patch-src::perftest.cc b/x11-servers/Xfstt/files/patch-src::perftest.cc
deleted file mode 100644
index c9ef793a9157..000000000000
--- a/x11-servers/Xfstt/files/patch-src::perftest.cc
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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
deleted file mode 100644
index 80495b5d66d6..000000000000
--- a/x11-servers/Xfstt/files/patch-src::xfstt.cc
+++ /dev/null
@@ -1,13 +0,0 @@
---- 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"
diff --git a/x11-servers/Xfstt/pkg-plist b/x11-servers/Xfstt/pkg-plist
index 10651d82e6cd..7f6789ea02c4 100644
--- a/x11-servers/Xfstt/pkg-plist
+++ b/x11-servers/Xfstt/pkg-plist
@@ -1,10 +1,10 @@
@comment $FreeBSD$
-etc/rc.d/xfstt.sh
bin/xfstt
-%%PORTDOCS%%share/doc/xfstt/CHANGES
-%%PORTDOCS%%share/doc/xfstt/INSTALL
-%%PORTDOCS%%share/doc/xfstt/THANKS
-%%PORTDOCS%%@dirrm share/doc/xfstt
+etc/rc.d/xfstt.sh
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/THANKS
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
@exec mkdir -p %D/lib/X11/fonts/TrueType
@unexec rm -f %D/lib/X11/fonts/TrueType/ttname.dir
@unexec rm -f %D/lib/X11/fonts/TrueType/ttinfo.dir