c37169b88f
for options instead of separate tiny plist files. This also allows PLIST.Linux to be recognized.
37 lines
935 B
Makefile
37 lines
935 B
Makefile
# $NetBSD: options.mk,v 1.8 2015/01/15 20:26:47 dholland Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.openmpi
|
|
PKG_SUPPORTED_OPTIONS= debug f90 sge
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
.endif
|
|
|
|
PLIST_VARS+= f90 sge
|
|
|
|
.if !empty(PKG_OPTIONS:Mf90)
|
|
GCC_REQD+= 4.7
|
|
GCCDIR= ${PREFIX}/gcc47
|
|
CONFIGURE_ARGS+= --enable-mpi-f90
|
|
CONFIGURE_ENV+= FC=${GCCDIR}/bin/gfortran
|
|
PLIST.f90= yes
|
|
|
|
SUBST_CLASSES+= f90
|
|
SUBST_STAGE.f90= post-configure
|
|
SUBST_FILES.f90= ompi/tools/wrappers/mpif90-wrapper-data.txt
|
|
SUBST_SED.f90= -e 's,^compiler=.*$$,compiler=${GCCDIR}/bin/gfortran,'
|
|
SUBST_SED.f90+= -e 's,^linker_flags=,linker_flags= -R${GCCDIR}/lib ,'
|
|
SUBST_SED.f90+= -e 's,^linker_flags=,linker_flags= -L${GCCDIR}/lib ,'
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-mpi-f90
|
|
.endif
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Msge)
|
|
CONFIGURE_ARGS+= --with-sge
|
|
PLIST.sge= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --without-sge
|
|
.endif
|