aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2008-03-25 22:28:19 +0800
committerrafan <rafan@FreeBSD.org>2008-03-25 22:28:19 +0800
commit6e47c5cdb459376d87ddb99ef6ecdf4cdcf5b90f (patch)
tree6f544ce65a3b9ae19cec609cf111b1c2f314447e /chinese
parent338118543e94010c8379cf4863e9f9654311a29a (diff)
downloadfreebsd-ports-gnome-6e47c5cdb459376d87ddb99ef6ecdf4cdcf5b90f.tar.gz
freebsd-ports-gnome-6e47c5cdb459376d87ddb99ef6ecdf4cdcf5b90f.tar.zst
freebsd-ports-gnome-6e47c5cdb459376d87ddb99ef6ecdf4cdcf5b90f.zip
- Remove reference to X_CLIENTS_PORT and X11BASE
- Add trailing slash for directories - Use MANPREFIX for manual pages
Diffstat (limited to 'chinese')
-rw-r--r--chinese/ttfm/Makefile17
-rw-r--r--chinese/ttfm/files/patch-modules_xttfm.ttfm2
2 files changed, 10 insertions, 9 deletions
diff --git a/chinese/ttfm/Makefile b/chinese/ttfm/Makefile
index a1438f92ce0f..b2a3047c0587 100644
--- a/chinese/ttfm/Makefile
+++ b/chinese/ttfm/Makefile
@@ -7,38 +7,39 @@
PORTNAME= ttfm
PORTVERSION= 0.9.5
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= chinese print
MASTER_SITES= LOCAL/rafan/chinese
MAINTAINER= rafan@FreeBSD.org
COMMENT= A Big5/GB enhanced TrueType Font Manager
-RUN_DEPENDS= mkfontdir:${X_CLIENTS_PORT}
+RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
+ mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
PORTDOCS= README USAGE
MAN1= ttfm.sh.1
post-patch:
- @${REINPLACE_CMD} -e 's,%%X11BASE%%,${X11BASE},' \
+ @${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' \
-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
+ ${INSTALL_PROGRAM} ${WRKSRC}/ttfinfo ${PREFIX}/bin/
+ ${INSTALL_SCRIPT} ${WRKSRC}/ttfm.sh ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}/
.endfor
.endif
- ${INSTALL_MAN} ${WRKSRC}/ttfm.sh.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/ttfm.sh.1 ${MANPREFIX}/man/man1/
@${MKDIR} ${DATADIR}
.for module in gscjk.ttfm xttfm.ttfm
- ${INSTALL_SCRIPT} ${WRKSRC}/modules/${module} ${DATADIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/modules/${module} ${DATADIR}/
.endfor
.include <bsd.port.mk>
diff --git a/chinese/ttfm/files/patch-modules_xttfm.ttfm b/chinese/ttfm/files/patch-modules_xttfm.ttfm
index e045e9caac97..a786db8441fa 100644
--- a/chinese/ttfm/files/patch-modules_xttfm.ttfm
+++ b/chinese/ttfm/files/patch-modules_xttfm.ttfm
@@ -7,7 +7,7 @@
-export PREFIX; PREFIX=/usr/local
-export X11BASE; X11BASE=/usr/X11R6
+export PREFIX; PREFIX=%%PREFIX%%
-+export X11BASE; X11BASE=%%X11BASE%%
++export X11BASE; X11BASE=%%LOCALBASE%%
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