aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/magicor/Makefile20
1 files changed, 9 insertions, 11 deletions
diff --git a/games/magicor/Makefile b/games/magicor/Makefile
index f1e2049e72f0..6d394f9f16ac 100644
--- a/games/magicor/Makefile
+++ b/games/magicor/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: magicor
-# Date created: 09 Jul 2008
-# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
-#
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= magicor
PORTVERSION= 1.1
@@ -35,11 +31,13 @@ DESKTOP_ENTRIES="Magicor" \
"Game;LogicGame;" \
false
-OPTIONS= EDITOR "Enable editor" on
+OPTIONS_DEFINE= EDITOR DOCS
+OPTIONS_DEFAULT=EDITOR
+EDITOR_DESC= Enable editor
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if !defined(WITHOUT_EDITOR)
+.if ${PORT_OPTIONS:MEDITOR}
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
PLIST_SUB+= EDITOR=""
.else
@@ -69,7 +67,7 @@ do-install:
${INSTALL_DATA} ${PREFIX}/etc/magicor/magicor.conf.dist \
${PREFIX}/etc/magicor/magicor.conf; \
fi
-.if !defined(WITHOUT_EDITOR)
+.if ${PORT_OPTIONS:MEDITOR}
${INSTALL_SCRIPT} ${WRKSRC}/Magicor-LevelEditor.py ${PREFIX}/bin/magicor-editor
${INSTALL_DATA} ${WRKSRC}/etc/magicor-editor.conf \
${PREFIX}/etc/magicor/magicor-editor.conf.dist
@@ -79,9 +77,9 @@ do-install:
fi
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>