pkgsrc/games/powder-toy/options.mk
thor d76f3e7fa0 math/fftw and dependents: merge math/fftwf backin and add MPI and OpenMP
This yields one common package to provide libfftw3 (double) and libfftw3f
(single) by default and optionally the Fortran bindings as well as
OpenMP and MPI variants, and those with long double or quad precision.

This changes all packages depending on fftwf in the same commit to minimize
the time of inconsistency. Soon, math/fftwf will disappear.
2021-04-29 23:30:12 +00:00

42 lines
822 B
Makefile

# $NetBSD: options.mk,v 1.2 2021/04/29 23:30:13 thor Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.powder-toy
PKG_SUPPORTED_OPTIONS= debug fftw lua
PKG_SUGGESTED_OPTIONS= fftw lua
.include "../../mk/bsd.fast.prefs.mk"
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
PKG_SUPPORTED_OPTIONS+= simd
.endif
.if ${MACHINE_ARCH} == "x86_64"
PKG_SUGGESTED_OPTIONS+= simd
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdebug)
SCONS_ARGS+= --debugging
.else
SCONS_ARGS+= --release
.endif
.if !empty(PKG_OPTIONS:Mfftw)
.include "../../math/fftw/buildlink3.mk"
.else
SCONS_ARGS+= --nofft
.endif
.if !empty(PKG_OPTIONS:Mlua)
.include "../../lang/lua51/buildlink3.mk"
.else
SCONS_ARGS+= --nolua
.endif
.if !empty(PKG_OPTIONS:Msimd)
SCONS_ARGS+= --sse
SCONS_ARGS+= --sse2
.else
SCONS_ARGS+= --no-sse
.endif