summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-08-24 00:04:52 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-08-24 00:04:52 +0000
commitf5e982ee80305960b4a7c2cd4a12a0b7b96f99d5 (patch)
tree0a6d4f7c6cd7c06c12ef2d5e6fa856015f8d2147
parent- Switch to options helpers (diff)
- Switch to options helpers
- Fix editor depends
Notes
Notes: svn path=/head/; revision=395154
-rw-r--r--games/magicor/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/games/magicor/Makefile b/games/magicor/Makefile
index 403e430a3baf..0fb4b7cd9398 100644
--- a/games/magicor/Makefile
+++ b/games/magicor/Makefile
@@ -3,7 +3,7 @@
PORTNAME= magicor
PORTVERSION= 1.1
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= SF
DISTFILES= ${PORTNAME}-source-${PORTVERSION}${EXTRACT_SUFX} \
@@ -37,9 +37,7 @@ OPTIONS_DEFAULT=EDITOR
OPTIONS_SUB= yes
EDITOR_DESC= Enable editor
-EDITOR_RUN_DEPEND= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
-
-.include <bsd.port.options.mk>
+EDITOR_RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
post-patch:
@${REINPLACE_CMD} -e 's|###CONFIG_PATH###|${PREFIX}/etc/magicor/magicor.conf|' \
@@ -58,11 +56,13 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/Magicor.py ${STAGEDIR}${PREFIX}/bin/magicor
${INSTALL_DATA} ${WRKSRC}/etc/magicor.conf \
${STAGEDIR}${PREFIX}/etc/magicor/magicor.conf.dist
-.if ${PORT_OPTIONS:MEDITOR}
+
+do-install-EDITOR-on:
${INSTALL_SCRIPT} ${WRKSRC}/Magicor-LevelEditor.py ${STAGEDIR}${PREFIX}/bin/magicor-editor
${INSTALL_DATA} ${WRKSRC}/etc/magicor-editor.conf \
${STAGEDIR}${PREFIX}/etc/magicor/magicor-editor.conf.dist
-.endif
+
+do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/