diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2013-11-21 16:11:19 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2013-11-21 16:11:19 +0000 |
commit | f76713321d51eea99fe7d37d7d5d4c75a69b5631 (patch) | |
tree | 5d85d8ea966b626aa287f15b3dd5fe720e0e66b0 /net-im/coccinella | |
parent | b924964cfa66a7cbdab94872a6b08c7f1e629499 (diff) | |
download | ports-f76713321d51eea99fe7d37d7d5d4c75a69b5631.tar.gz ports-f76713321d51eea99fe7d37d7d5d4c75a69b5631.zip |
Notes
Diffstat (limited to 'net-im/coccinella')
-rw-r--r-- | net-im/coccinella/Makefile | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/net-im/coccinella/Makefile b/net-im/coccinella/Makefile index e9b95825f427..8dd8d1842e1c 100644 --- a/net-im/coccinella/Makefile +++ b/net-im/coccinella/Makefile @@ -13,6 +13,8 @@ COMMENT= Jabber client with whiteboard communication LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING.txt +OPTIONS_DEFINE= DOCS + RUN_DEPENDS= snack>=0:${PORTSDIR}/audio/snack \ tcltls>=0:${PORTSDIR}/devel/tcltls \ tkpng>=0:${PORTSDIR}/graphics/tkpng \ @@ -21,26 +23,30 @@ RUN_DEPENDS= snack>=0:${PORTSDIR}/audio/snack \ NO_BUILD= yes -USE_TK_WRAPPER= yes +USES= tk LIBTARGETDIR= ${PREFIX}/${PORTNAME} PLIST_SUB= LIBTARGETDIR="${PORTNAME}" -NO_STAGE= yes +.include <bsd.port.options.mk> + +post-patch: + ${REINPLACE_CMD} -e '1s|/usr/bin/env wish|${WISH}|' ${WRKSRC}/Coccinella.tcl + do-install: - @${MKDIR} ${LIBTARGETDIR} - ${INSTALL_SCRIPT} ${WRKSRC}/Coccinella.tcl ${LIBTARGETDIR} - @${LN} -sf ${LIBTARGETDIR}/Coccinella.tcl ${PREFIX}/bin/coccinella + @${MKDIR} ${STAGEDIR}${LIBTARGETDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/Coccinella.tcl ${STAGEDIR}${LIBTARGETDIR} + @${LN} -sf ${LIBTARGETDIR}/Coccinella.tcl ${STAGEDIR}${PREFIX}/bin/coccinella .for dir in TclXML certificates components contrib docs httpd iconsets items \ jabber jabberlib lib msgs plugins po resources themes whiteboard xmpp - @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${LIBTARGETDIR}) + @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${LIBTARGETDIR}) .endfor -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in AUTHORS.txt CHANGES.txt README.txt - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} .endfor - @(cd ${WRKSRC} && ${COPYTREE_SHARE} READMEs ${DOCSDIR}) + @(cd ${WRKSRC} && ${COPYTREE_SHARE} READMEs ${STAGEDIR}${DOCSDIR}) .endif .include <bsd.port.mk> |