ports/156833: games/fairymax: O-Flags option and preparing change into masterport
Kalten
kalten at gmx.at
Thu May 5 23:20:09 UTC 2011
The following reply was made to PR ports/156833; it has been noted by GNATS.
From: Kalten <kalten at gmx.at>
To: bug-followup at FreeBSD.org,kalten at 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 at 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 at 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 ---
--
More information about the freebsd-ports-bugs
mailing list