1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Remove reference to X_CLIENTS_PORT and X11BASE

- Add trailing slash for directories
- Use MANPREFIX for manual pages
This commit is contained in:
Rong-En Fan 2008-03-25 14:28:19 +00:00
parent dbd848b677
commit 37a534480d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=209778
2 changed files with 10 additions and 9 deletions

View File

@ -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>

View File

@ -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