- Repsect X11BASE. This should fix chinese/*ttf build failure with

non-standard X11BASE.

Reported by:	pointyhat
This commit is contained in:
Rong-En Fan
2006-11-26 18:12:11 +00:00
parent 025e248cf3
commit 3c4e8d4a80
4 changed files with 32 additions and 6 deletions
+6
View File
@@ -20,6 +20,12 @@ LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
PORTDOCS= README USAGE
MAN1= ttfm.sh.1
post-patch:
@${REINPLACE_CMD} -e 's,%%X11BASE%%,${X11BASE},' \
-e 's,%%PREFIX%%,${PREFIX},' \
${WRKSRC}/modules/gscjk.ttfm \
${WRKSRC}/modules/xttfm.ttfm
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ttfinfo ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/ttfm.sh ${PREFIX}/bin
+11 -2
View File
@@ -1,5 +1,14 @@
--- modules/gscjk.ttfm.orig Wed Sep 24 17:51:46 2003
+++ modules/gscjk.ttfm Sat Feb 19 09:14:28 2005
--- ./modules/gscjk.ttfm.orig Wed Sep 24 17:51:46 2003
+++ ./modules/gscjk.ttfm Mon Nov 27 02:06:36 2006
@@ -18,7 +18,7 @@
# Global constants
-export PREFIX; PREFIX=/usr/local
+export PREFIX; PREFIX=%%PREFIX%%
export TTFINFOPath; TTFINFOPath="${PREFIX}/bin/ttfinfo"
export GS6Path; GS6Path="${PREFIX}/share/ghostscript"
export GS6CJKPath; GS6CJKPath="${GS6Path}/Resource"
@@ -148,9 +148,8 @@
remove_fonts()
{
+13 -2
View File
@@ -1,5 +1,16 @@
--- modules/xttfm.ttfm.orig Tue Nov 4 07:08:32 2003
+++ modules/xttfm.ttfm Sun Aug 28 18:03:43 2005
--- ./modules/xttfm.ttfm.orig Tue Nov 4 07:08:32 2003
+++ ./modules/xttfm.ttfm Mon Nov 27 02:06:25 2006
@@ -25,8 +25,8 @@
# Global constants
-export PREFIX; PREFIX=/usr/local
-export X11BASE; X11BASE=/usr/X11R6
+export PREFIX; PREFIX=%%PREFIX%%
+export X11BASE; X11BASE=%%X11BASE%%
export PATH; PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PREFIX/bin:$PREFIX/sbin:$X11BASE/bin
export TEMPFILE; TEMPFILE="`mktemp /tmp/ttfm.tmpXXX`"
export DefaultFontPath; DefaultFontPath=$PREFIX/share/fonts/TrueType
@@ -87,15 +87,11 @@
targetname=`basename $f`
+2 -2
View File
@@ -1,5 +1,5 @@
--- ttfm.sh.orig Wed Jan 31 17:34:46 2001
+++ ttfm.sh Sat Feb 19 09:14:56 2005
--- ./ttfm.sh.orig Wed Jan 31 17:34:46 2001
+++ ./ttfm.sh Mon Nov 27 02:03:54 2006
@@ -258,7 +258,7 @@
# Call script with --remove
for i in "$INSTALLSCRIPT"; do