diff options
author | gahr <gahr@FreeBSD.org> | 2013-10-17 17:36:36 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2013-10-17 17:36:36 +0800 |
commit | ca6da8ffb723730d0221625476593449c545ece7 (patch) | |
tree | 43479e81b0cadbcb98e843fa6f4931af475ddc2b /editors | |
parent | c62131427ad54975e8238c75ec5a4c4990c5915e (diff) | |
download | freebsd-ports-gnome-ca6da8ffb723730d0221625476593449c545ece7.tar.gz freebsd-ports-gnome-ca6da8ffb723730d0221625476593449c545ece7.tar.zst freebsd-ports-gnome-ca6da8ffb723730d0221625476593449c545ece7.zip |
- Convert to USES+=tk
- Fix MASTER_SITES
- Convert to OPTIONSng (DOCS)
- STAGE-clean
Diffstat (limited to 'editors')
-rw-r--r-- | editors/impress/Makefile | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/editors/impress/Makefile b/editors/impress/Makefile index 925b983a9667..a480fcc77fa1 100644 --- a/editors/impress/Makefile +++ b/editors/impress/Makefile @@ -5,8 +5,7 @@ PORTNAME= impress PORTVERSION= 1.1b9 PORTREVISION= 3 CATEGORIES= editors tk -MASTER_SITES= TUCOWS \ - http://www.ntlug.org/~ccox/impress/ +MASTER_SITES= http://www.ntlug.org/~ccox/impress/ DISTNAME= imp${PORTVERSION} MAINTAINER= ports@FreeBSD.org @@ -15,20 +14,26 @@ COMMENT= Publishing and presentation tool LICENSE= GPLv2 GPLv3 LICENSE_COMB= dual +OPTIONS_DEFINE= DOCS + NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} - -USE_TK_WRAPPER= yes +USES+= tk PORTDOCS= * PLIST_FILES= bin/impress -NO_STAGE= yes +.include <bsd.port.options.mk> + +post-patch: + ${REINPLACE_CMD} -e 's|exec wish|exec ${WISH}|g' \ + ${WRKSRC}/src/impress.tcl + do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/src/impress.tcl ${PREFIX}/bin/impress -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @(cd ${WRKSRC}/src/doc && ${COPYTREE_SHARE} . ${DOCSDIR}) + ${INSTALL_SCRIPT} ${WRKSRC}/src/impress.tcl ${STAGEDIR}${PREFIX}/bin/impress +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/src/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> |