Annotation of pkgsrc/math/fftw/options.mk, Revision 1.5
1.5 ! thor 1: # $NetBSD: options.mk,v 1.4 2021/04/29 23:30:15 thor Exp $
1.1 tsutsui 2:
3: PKG_OPTIONS_VAR= PKG_OPTIONS.fftw
1.4 thor 4: # fftw (double) and fftwf (single) are always built, you can add
5: # fftwl (long) and fftwq (quad).
6: PKG_SUPPORTED_OPTIONS= fftw-fortran openmp mpi fftw-long fftw-quad
1.1 tsutsui 7: # Enable fortran support by default on platforms supported by lang/g95.
1.5 ! thor 8: .if (${MACHINE_ARCH} == i386 || ${MACHINE_ARCH} == x86_64 || \
! 9: ${MACHINE_ARCH} == ia64 || !empty(MACHINE_ARCH:Mpowerpc*) || \
! 10: ${MACHINE_ARCH} == hppa || !empty(MACHINE_ARCH:Msparc*) || \
! 11: ${MACHINE_ARCH} == alpha || !empty(MACHINE_ARCH:Mmips*))
1.2 tsutsui 12: # ...but disable it until lang/g95 issue is resolved.
1.3 adam 13: #PKG_SUGGESTED_OPTIONS= fftw-fortran
1.1 tsutsui 14: .endif
15:
16: .include "../../mk/bsd.options.mk"
17:
18: .if !empty(PKG_OPTIONS:Mfftw-fortran)
19: USE_LANGUAGES+= fortran77
20: .else
21: CONFIGURE_ARGS+= --disable-fortran
22: .endif
1.4 thor 23:
1.5 ! thor 24: PLIST_VARS+= omp
1.4 thor 25: .if !empty(PKG_OPTIONS:Mopenmp)
1.5 ! thor 26: PLIST.omp= yes
1.4 thor 27: CONFIGURE_ARGS+= --enable-openmp
28: .endif
29:
30: PLIST_VARS+= mpi
31: .if !empty(PKG_OPTIONS:Mmpi)
32: PLIST.mpi= yes
33: CONFIGURE_ARGS+= --enable-mpi
34: .include "../../mk/mpi.buildlink3.mk"
35: .endif
36:
37: PLIST_VARS+= long quad
38:
39: .if !empty(PKG_OPTIONS:Mfftw-long)
40: FFTW_PRECISION+= long-double
1.5 ! thor 41: PLIST.long= yes
1.4 thor 42: .endif
43:
44: .if !empty(PKG_OPTIONS:Mfftw-quad)
45: FFTW_PRECISION+= quad-precision
1.5 ! thor 46: PLIST.quad= yes
1.4 thor 47: .endif
CVSweb <webmaster@jp.NetBSD.org>