aboutsummaryrefslogtreecommitdiff
path: root/games/magicor
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-01-28 23:42:30 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-01-28 23:42:30 +0000
commitddd710a1a23cf4bbadd039839e8a73b4120b8c01 (patch)
treefd4fbc1d6b714ebf8ef7a9fc13cb58ca132e2e27 /games/magicor
parent707cdcbc55e572d3a733e0a5949a9fbd4fdf6af2 (diff)
downloadports-ddd710a1a23cf4bbadd039839e8a73b4120b8c01.tar.gz
ports-ddd710a1a23cf4bbadd039839e8a73b4120b8c01.zip
Notes
Diffstat (limited to 'games/magicor')
-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>