diff options
Diffstat (limited to 'cad/salome/Makefile.ext')
-rw-r--r-- | cad/salome/Makefile.ext | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cad/salome/Makefile.ext b/cad/salome/Makefile.ext index 8d62fb11fa8c..ae93fa37b7d9 100644 --- a/cad/salome/Makefile.ext +++ b/cad/salome/Makefile.ext @@ -201,10 +201,15 @@ BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/PyQt4/QtXml.so:${PORTSDIR}/textproc/py-qt4 #Dependency from metis & scotsch .if ${SAL_MODULE} == "med" -BUILD_DEPENDS+= kmetis:${PORTSDIR}/math/metis \ - gmap:${PORTSDIR}/cad/scotch -RUN_DEPENDS+= kmetis:${PORTSDIR}/math/metis \ - gmap:${PORTSDIR}/cad/scotch +. if exists(${LOCALBASE}/bin/graphchk) +BUILD_DEPENDS+= kmetis:${PORTSDIR}/math/metis +RUN_DEPENDS+= kmetis:${PORTSDIR}/math/metis +. else +BUILD_DEPENDS+= kmetis:${PORTSDIR}/math/metis-edf +RUN_DEPENDS+= kmetis:${PORTSDIR}/math/metis-edf +.endif +BUILD_DEPENDS+= gmap:${PORTSDIR}/cad/scotch +RUN_DEPENDS+= gmap:${PORTSDIR}/cad/scotch CONFIGURE_ENV+= METISDIR=${LOCALBASE} SCOTCHDIR=${LOCALBASE} CPPFLAGS+= -I${LOCALBASE}/include/metis .endif |