aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2014-02-17 23:15:03 +0800
committergahr <gahr@FreeBSD.org>2014-02-17 23:15:03 +0800
commit31f16d43bc4d63b554f16a5d745296076c0742fb (patch)
tree543bb6ffd8163d3a42710fb7d99d3bb96a82caee
parent73a7e1db1ed5cbe00611469675261cdf603795a5 (diff)
downloadfreebsd-ports-gnome-31f16d43bc4d63b554f16a5d745296076c0742fb.tar.gz
freebsd-ports-gnome-31f16d43bc4d63b554f16a5d745296076c0742fb.tar.zst
freebsd-ports-gnome-31f16d43bc4d63b554f16a5d745296076c0742fb.zip
- Convert to USES=tk
- STAGE-clean - Add DOCS
-rw-r--r--devel/tkp4/Makefile21
1 files changed, 9 insertions, 12 deletions
diff --git a/devel/tkp4/Makefile b/devel/tkp4/Makefile
index 617150700b45..51c0c463b2ff 100644
--- a/devel/tkp4/Makefile
+++ b/devel/tkp4/Makefile
@@ -10,28 +10,25 @@ MASTER_SITES= http://www.timshel.ca/tkp4/
MAINTAINER= mi@aldan.algebra.com
COMMENT= Tcl/Tk frontends to Perforce's p4
+OPTIONS_DEFINE= DOCS
+
RUN_DEPENDS= p4:${PORTSDIR}/devel/p4
NO_BUILD= yes
REINPLACE_ARGS= -i ""
-USE_TK_RUN= yes
+USES= tk:run
-NO_STAGE= yes
do-install:
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/*.tcl ${DATADIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/tkp4 ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.tcl ${STAGEDIR}${DATADIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/tkp4 ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGES ${WRKSRC}/P4WINdifferences \
- ${WRKSRC}/UsingTkP4 ${DOCSDIR}
-.endif
+ ${WRKSRC}/UsingTkP4 ${STAGEDIR}${DOCSDIR}
post-patch:
- ${REINPLACE_CMD} -e 's|wish|wish${TCL_VER}|' ${WRKSRC}/tkp4
-.if defined(PREFIX) && ${PREFIX} != "/usr/local"
+ ${REINPLACE_CMD} -e 's|wish|${WISH}|' ${WRKSRC}/tkp4
${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \
`${GREP} -Fl /usr/local ${WRKSRC}/*`
-.endif
.include <bsd.port.mk>