diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2013-01-29 07:42:30 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2013-01-29 07:42:30 +0800 |
commit | 82a5c332053345ec0e3957436e67998f2b281c7a (patch) | |
tree | fd4fbc1d6b714ebf8ef7a9fc13cb58ca132e2e27 /games/magicor | |
parent | 2d4239c222494af6a2a2f2acb5fcf89d3be5ae18 (diff) | |
download | freebsd-ports-gnome-82a5c332053345ec0e3957436e67998f2b281c7a.tar.gz freebsd-ports-gnome-82a5c332053345ec0e3957436e67998f2b281c7a.tar.zst freebsd-ports-gnome-82a5c332053345ec0e3957436e67998f2b281c7a.zip |
- Trim header
- OptionsNG
Diffstat (limited to 'games/magicor')
-rw-r--r-- | games/magicor/Makefile | 20 |
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> |