aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/tkfont/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-fonts/tkfont/Makefile')
-rw-r--r--x11-fonts/tkfont/Makefile21
1 files changed, 8 insertions, 13 deletions
diff --git a/x11-fonts/tkfont/Makefile b/x11-fonts/tkfont/Makefile
index b40f56e27502..a113334127cb 100644
--- a/x11-fonts/tkfont/Makefile
+++ b/x11-fonts/tkfont/Makefile
@@ -11,24 +11,19 @@ MASTER_SITE_SUBDIR= petef
MAINTAINER= ports@FreeBSD.org
COMMENT= A Tk based replacement for xfontsel
-USE_TK= yes
-
+USES+= tk:run
RUN_DEPENDS+= xlsfonts:${PORTSDIR}/x11-fonts/xlsfonts
-
NO_BUILD= yes
-NO_STAGE= yes
post-patch:
- ${SED} -e "s,/usr/local,${LOCALBASE}," \
- -e "s,#!/usr/X11/bin/wish,#!${WISH}," \
- < ${WRKSRC}/tkfont > ${WRKSRC}/tkfont.new
- ${MV} ${WRKSRC}/tkfont.new ${WRKSRC}/tkfont
+ ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|; s|#!/usr/X11/bin/wish|${WISH}|;' \
+ ${WRKSRC}/tkfont
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/tkfont ${PREFIX}/bin
- @${MKDIR} ${PREFIX}/lib/tkfont
- @for file in COPYING Bugs.txt FileMenu.txt FindFont FontDirs.txt FontTypes.txt HelpText.txt README WhatsNew.txt; do \
- ${INSTALL_DATA} ${WRKSRC}/$$file ${PREFIX}/lib/tkfont; \
- done
+ ${INSTALL_SCRIPT} ${WRKSRC}/tkfont ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/tkfont
+.for file in COPYING Bugs.txt FileMenu.txt FindFont FontDirs.txt FontTypes.txt HelpText.txt README WhatsNew.txt
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/lib/tkfont
+.endfor
.include <bsd.port.mk>