From 82a5c332053345ec0e3957436e67998f2b281c7a Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Mon, 28 Jan 2013 23:42:30 +0000 Subject: - Trim header - OptionsNG --- games/magicor/Makefile | 20 +++++++++----------- 1 file 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 -# +# Created by: Dmitry Marakasov # $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 +.include -.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 +.include -- cgit