From owner-svn-ports-all@FreeBSD.ORG Mon Mar 11 01:38:27 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 76E3F150; Mon, 11 Mar 2013 01:38:27 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 4BEB0C33; Mon, 11 Mar 2013 01:38:27 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2B1cRSj030223; Mon, 11 Mar 2013 01:38:27 GMT (envelope-from danfe@svn.freebsd.org) Received: (from danfe@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2B1cRZb030222; Mon, 11 Mar 2013 01:38:27 GMT (envelope-from danfe@svn.freebsd.org) Message-Id: <201303110138.r2B1cRZb030222@svn.freebsd.org> From: Alexey Dokuchaev Date: Mon, 11 Mar 2013 01:38:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r313852 - head/games/yadex X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2013 01:38:27 -0000 Author: danfe Date: Mon Mar 11 01:38:26 2013 New Revision: 313852 URL: http://svnweb.freebsd.org/changeset/ports/313852 Log: - Trim the Makefile header - Drop an article from COMMENT - Convert to OptionsNG Modified: head/games/yadex/Makefile Modified: head/games/yadex/Makefile ============================================================================== --- head/games/yadex/Makefile Mon Mar 11 01:09:57 2013 (r313851) +++ head/games/yadex/Makefile Mon Mar 11 01:38:26 2013 (r313852) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Yadex -# Date created: 17 June 2001 -# Whom: Jordan DeLong -# +# Created by: Jordan DeLong # $FreeBSD$ -# PORTNAME= yadex PORTVERSION= 1.7.0 @@ -14,7 +10,7 @@ MASTER_SITES= http://www.teaser.fr/~amaj DIST_SUBDIR= ${PORTNAME} MAINTAINER= danfe@FreeBSD.org -COMMENT= A WAD-file editor, for games like Doom and Hexen +COMMENT= WAD file editor, for games like Doom and Hexen LICENSE= GPLv2 @@ -27,13 +23,15 @@ MAKEFILE= GNUmakefile MAN6= yadex.6 -OPTIONS= WHITE_BG "Use alternative (black-on-white) color scheme" off \ - 3D_RENDER "Build with a 3D preview function" off \ - SEARCH "Search for a thing, linedef or sector by type" off \ - EXTRA_TOOLS "Add a few extra tools to Yadex' repertoire" off \ - LAPTOP_KEYS "Key bindings to make editing easier on laptops" off +OPTIONS_DEFINE= WHITE_BG 3D_RENDER SEARCH EXTRA_TOOLS LAPTOP_KEYS DOCS -.include +WHITE_BG_DESC= Use alternative (black-on-white) color scheme +3D_RENDER_DESC= Build with a 3D preview function +SEARCH_DESC= Search for a thing, linedef, or sector by type +EXTRA_TOOLS_DESC= Add a few extra tools to Yadex' repertoire +LAPTOP_KEYS_DESC= Key bindings to make editing easier on laptops + +.include PATCH_SITES= http://glbsp.sourceforge.net/%SUBDIR%/ PATCH_SITE_SUBDIR= ${PORTNAME} @@ -42,32 +40,32 @@ PATCH_PREFIX= ${PORTNAME:U:C/^(.).*$/\1/ PATCH_SUFFIX= .diff PATCHFILES= ${PATCH_PREFIX}_Depend${PATCH_SUFFIX} -.if defined(WITH_3D_RENDER) +.if ${PORT_OPTIONS:M3D_RENDER} PATCHFILES+= ${PATCH_PREFIX}_Render3D${PATCH_SUFFIX} PLIST_SUB+= 3DRENDER="" .else PLIST_SUB+= 3DRENDER="@comment " .endif -.if defined(WITH_SEARCH) +.if ${PORT_OPTIONS:MSEARCH} PATCHFILES+= ${PATCH_PREFIX}_Find${PATCH_SUFFIX} .endif -.if defined(WITH_EXTRA_TOOLS) +.if ${PORT_OPTIONS:MEXTRA_TOOLS} PATCHFILES+= ${PATCH_PREFIX}_Tools${PATCH_SUFFIX} .endif -.if defined(WITH_LAPTOP_KEYS) +.if ${PORT_OPTIONS:MLAPTOP_KEYS} PATCHFILES+= ${PATCH_PREFIX}_Keys${PATCH_SUFFIX} .endif post-patch: -.if defined(WITH_WHITE_BG) +.if ${PORT_OPTIONS:MWHITE_BG} @${REINPLACE_CMD} -E 's,^#(CXXFLAGS \+= -DWHITE_BACKGROUND)$$,\1,' \ ${WRKSRC}/${MAKEFILE} .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/*.[^6]* ${WRKSRC}/doc/README ${DOCSDIR} .endif -.include +.include