Date: Thu, 22 Nov 2012 08:30:51 -0600 From: Stephen Montgomery-Smith <stephen@missouri.edu> To: Baptiste Daroussin <bapt@FreeBSD.org> Cc: svn-ports-head@FreeBSD.org, svn-ports-all@FreeBSD.org, Stephen Montgomery-Smith <stephen@FreeBSD.org>, ports-committers@FreeBSD.org Subject: Re: svn commit: r307634 - head/math/sage Message-ID: <50AE371B.9040207@missouri.edu> In-Reply-To: <20121122074923.GC2296@ithaqua.etoilebsd.net> References: <201211220327.qAM3R4H1083799@svn.freebsd.org> <20121122074923.GC2296@ithaqua.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/22/2012 01:49 AM, Baptiste Daroussin wrote: > You can simplify a bit that using OPTIONS_DEFINE_amd64 this will allow to only > have options on amd64. > > regards, > Bapt Thank you. > > On Thu, Nov 22, 2012 at 03:27:04AM +0000, Stephen Montgomery-Smith wrote: >> Author: stephen >> Date: Thu Nov 22 03:27:04 2012 >> New Revision: 307634 >> URL: http://svnweb.freebsd.org/changeset/ports/307634 >> >> Log: >> - Use new options framework. >> >> Feature safe: yes >> >> Modified: >> head/math/sage/Makefile >> >> Modified: head/math/sage/Makefile >> ============================================================================== >> --- head/math/sage/Makefile Thu Nov 22 03:25:08 2012 (r307633) >> +++ head/math/sage/Makefile Thu Nov 22 03:27:04 2012 (r307634) >> @@ -21,7 +21,8 @@ LIB_DEPENDS= atlas:${PORTSDIR}/math/atla >> # 387 option: this only makes a difference for the amd64 architecture. Causes >> # the internal floating point calculations to be performed with extended >> # precision. >> -OPTIONS= 387 "Use 387 instead of SSE FPU" Off >> +OPTIONS_DEFINE= 387 > > OPTIONS_DEFINE_amd64= 387 > >> +387_DESC= Use 387 instead of SSE FPU >> >> .include <bsd.port.options.mk> >> >> @@ -158,7 +159,7 @@ post-install: >> BROKEN= POSIX semaphores are required, and the support only works in FreeBSD 7-STABLE and later >> .endif >> >> -.if defined(WITH_387) && ${ARCH} == amd64 >> +.if ${PORT_OPTIONS:M387} && ${ARCH} == amd64 > > .if ${PORT_OPTIONS:M387} > >> FPM_FLAG= -mfpmath=387 >> .else >> FPM_FLAG=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50AE371B.9040207>