From b5ce5fadd01879f8c1dad2f5ffba815323e1fec6 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 6 Jun 2013 15:53:05 +0000 Subject: Convert to new options framework --- games/fairymax/Makefile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'games/fairymax') diff --git a/games/fairymax/Makefile b/games/fairymax/Makefile index 997cff8be1e8..d8a8534c06a5 100644 --- a/games/fairymax/Makefile +++ b/games/fairymax/Makefile @@ -1,9 +1,5 @@ -# New ports collection Makefile for: fairymax -# Date created: 22 April 2011 -# Whom: Kalten -# +# Created by: Kalten # $FreeBSD$ -# PORTNAME= fairymax PORTVERSION= 4.8Q @@ -18,7 +14,8 @@ COMMENT= Chess engine for shatranj, courier chess, and others CONFLICTS= fairymax-4.8Q.[0-9]* fairymax-4.8Q.[0-9]*_[0-9]* -OPTIONS+= OCFLAGS "Use optimized compiler flags" on +OPTIONS_DEFINE= OPTIMIZED_CFLAGS +OPTIONS_DEFAUTL= OPTIMIZED_CFLAGS DIST_SUBDIR= ${PORTNAME} @@ -40,10 +37,10 @@ MAKE_ARGS+= INI_FILE_fmax=${DATADIR}/fmax.ini \ .include -.if defined(WITHOUT_OCFLAGS) && !defined(WITH_OCFLAGS) -CFLAGS+= -.else +.if ! ${PORT_OPTIONS:MOCFLAGS} CFLAGS+= -O2 +.else +CFLAGS+= .endif post-patch: -- cgit v1.2.3