Date: Thu, 5 May 2011 23:20:08 GMT From: Kalten <kalten@gmx.at> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/156833: games/fairymax: O-Flags option and preparing change into masterport Message-ID: <201105052320.p45NK82Y086242@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/156833; it has been noted by GNATS. From: Kalten <kalten@gmx.at> 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 <kalten@gmx.at> # @@ -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 <bsd.port.options.mk> + +.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 --- --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105052320.p45NK82Y086242>