aboutsummaryrefslogtreecommitdiff
path: root/devel/tkp4
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2007-03-03 21:33:33 +0000
committerMikhail Teterin <mi@FreeBSD.org>2007-03-03 21:33:33 +0000
commit5ae4ed67aa9413326d003bdc1fe949005885616c (patch)
tree94cd3a6a2753560b7c47f57281563189086781dd /devel/tkp4
parent16ce0b401842dc92292c8e31178d2bdb307f387f (diff)
downloadports-5ae4ed67aa9413326d003bdc1fe949005885616c.tar.gz
ports-5ae4ed67aa9413326d003bdc1fe949005885616c.zip
Notes
Diffstat (limited to 'devel/tkp4')
-rw-r--r--devel/tkp4/Makefile16
-rw-r--r--devel/tkp4/pkg-plist18
2 files changed, 14 insertions, 20 deletions
diff --git a/devel/tkp4/Makefile b/devel/tkp4/Makefile
index 3cacefc1457e..36178348280b 100644
--- a/devel/tkp4/Makefile
+++ b/devel/tkp4/Makefile
@@ -13,23 +13,21 @@ MASTER_SITES= http://www.timshel.ca/tkp4/
MAINTAINER= mi@aldan.algebra.com
COMMENT= Tcl/Tk frontends to Perforce's p4
-RUN_DEPENDS= wish${TCL_VER}:${PORTSDIR}/x11-toolkits/tk${TCL_DVER} \
- p4:${PORTSDIR}/devel/perforce
+RUN_DEPENDS= p4:${PORTSDIR}/devel/perforce
NO_BUILD= yes
REINPLACE_ARGS= -i ""
-TCL_VER= 8.4
-TCL_DVER= ${TCL_VER:S/.//}
+USE_TK= yes
do-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.tcl ${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/tkp4 ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGES ${WRKSRC}/P4WINdifferences \
${WRKSRC}/UsingTkP4 ${DOCSDIR}
-
-.include <bsd.port.pre.mk>
+.endif
post-patch:
${REINPLACE_CMD} -e 's|wish|wish${TCL_VER}|' ${WRKSRC}/tkp4
@@ -38,8 +36,4 @@ post-patch:
`${GREP} -Fl /usr/local ${WRKSRC}/*`
.endif
-.include <bsd.port.post.mk>
-
-SCRIPTS != d=${DATADIR}; p=${PREFIX}; echo $${d\#\#$${p%%/}/}
-DOCS != d=${DOCSDIR}; p=${PREFIX}; echo $${d\#\#$${p%%/}/}
-PLIST_SUB+= SCRIPTS=${SCRIPTS} DOCS=${DOCS}
+.include <bsd.port.mk>
diff --git a/devel/tkp4/pkg-plist b/devel/tkp4/pkg-plist
index 95b1a29474dc..324ba498ba0c 100644
--- a/devel/tkp4/pkg-plist
+++ b/devel/tkp4/pkg-plist
@@ -1,10 +1,10 @@
bin/tkp4
-%%SCRIPTS%%/combobox.tcl
-%%SCRIPTS%%/mclistbox.tcl
-%%SCRIPTS%%/tkp4.tcl
-%%SCRIPTS%%/tree.tcl
-@dirrm %%SCRIPTS%%
-%%DOCS%%/CHANGES
-%%DOCS%%/P4WINdifferences
-%%DOCS%%/UsingTkP4
-@dirrm %%DOCS%%
+%%DATADIR%%/combobox.tcl
+%%DATADIR%%/mclistbox.tcl
+%%DATADIR%%/tkp4.tcl
+%%DATADIR%%/tree.tcl
+@dirrm %%DATADIR%%
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES
+%%PORTDOCS%%%%DOCSDIR%%/P4WINdifferences
+%%PORTDOCS%%%%DOCSDIR%%/UsingTkP4
+%%PORTDOCS%%@dirrm %%DOCSDIR%%