From owner-freebsd-ports-bugs@FreeBSD.ORG Thu May 5 23:20:09 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 750C1106564A for ; Thu, 5 May 2011 23:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5E7828FC0A for ; Thu, 5 May 2011 23:20:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p45NK8Jk086243 for ; Thu, 5 May 2011 23:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p45NK82Y086242; Thu, 5 May 2011 23:20:08 GMT (envelope-from gnats) Date: Thu, 5 May 2011 23:20:08 GMT Message-Id: <201105052320.p45NK82Y086242@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Kalten Cc: Subject: Re: ports/156833: games/fairymax: O-Flags option and preparing change into masterport X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kalten List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2011 23:20:09 -0000 The following reply was made to PR ports/156833; it has been noted by GNATS. From: Kalten To: bug-followup@FreeBSD.org,kalten@gmx.at Cc: Subject: Re: ports/156833: games/fairymax: O-Flags option and preparing change into masterport Date: Fri, 06 May 2011 01:14:37 +0200 After a little conversation with johans I have given up the system of a master- and a slave port. Furthermore he meant, that the optimisation flags should be set globally, not by the port: well--as the original program uses them, I stick to this option (maybe better not on but off by default?) (as other ports have them too). I hope, it's OK now? New patch--replacing old one--attached here. --- patch.txt begins here --- --- Makefile.orig 2011-05-05 00:47:54.000000000 +0200 +++ Makefile 2011-05-06 00:43:39.000000000 +0200 @@ -1,4 +1,4 @@ -# New ports collection makefile for: fairy-max +# New ports collection makefile for: fairymax # Date created: 22 April 2011 # Whom: Kalten # @@ -7,6 +7,7 @@ PORTNAME= fairymax PORTVERSION= 4.8Q +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://freeheimdall.homeunix.org/files/ DISTNAME= ${PORTNAME}-c7a129e @@ -15,6 +16,10 @@ MAINTAINER= kalten@gmx.at COMMENT= Chess engine (e.g. xboard) for shatranj, courier chess, ... +CONFLICTS= fairymax-4.8Q.[0-9]* fairymax-4.8Q.[0-9]*_[0-9]* + +OPTIONS+= OCFLAGS "Use optimized compiler flags" on + DIST_SUBDIR= ${PORTNAME} PLIST_FILES= bin/fairymax \ @@ -33,6 +38,14 @@ MAKE_ARGS+= INI_FILE_fmax=${DATADIR}/fmax.ini \ INI_FILE_qmax=${DATADIR}/qmax.ini +.include + +.if defined(WITHOUT_OCFLAGS) +CFLAGS+= +.else +CFLAGS+= -O2 +.endif + post-patch: @${CP} ${WRKSRC}/fairymax.pod ${WRKSRC}/fairymax.pod.ori @${SED} -e 's|%%PREFIX%%|${PREFIX}|g;s|%%DATADIR%%|${DATADIR}|g' \ --- patch.txt ends here --- --