diff options
author | gahr <gahr@FreeBSD.org> | 2013-10-14 22:19:49 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2013-10-14 22:19:49 +0800 |
commit | 8dccdfd3fd48a3a52ac117c45328848b6a59cc91 (patch) | |
tree | 3cb3a060e70ca1a9ce28404f46baa6928b806075 /x11-fonts | |
parent | 9227eb6392e5ad2dabc2837bb4c2d45400edcd2d (diff) | |
download | freebsd-ports-gnome-8dccdfd3fd48a3a52ac117c45328848b6a59cc91.tar.gz freebsd-ports-gnome-8dccdfd3fd48a3a52ac117c45328848b6a59cc91.tar.zst freebsd-ports-gnome-8dccdfd3fd48a3a52ac117c45328848b6a59cc91.zip |
- Convert to USES+=tk
- Minor Makefile refactor
- STAGE-clean
Diffstat (limited to 'x11-fonts')
-rw-r--r-- | x11-fonts/tkfont/Makefile | 21 |
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> |