aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2010-05-25 22:02:10 +0000
committerThierry Thomas <thierry@FreeBSD.org>2010-05-25 22:02:10 +0000
commit6cf8700f3378a5fc98ae3b92fd35fffcce37a28c (patch)
tree3180ee6dd807ccb13f8dff2a36b1eb9de544d852
parent8baeafe842a6bb57b11cce97f561e9e792c84672 (diff)
downloadports-6cf8700f3378a5fc98ae3b92fd35fffcce37a28c.tar.gz
ports-6cf8700f3378a5fc98ae3b92fd35fffcce37a28c.zip
Notes
-rw-r--r--cad/salome/Makefile2
-rw-r--r--cad/salome/Makefile.ext13
2 files changed, 10 insertions, 5 deletions
diff --git a/cad/salome/Makefile b/cad/salome/Makefile
index 975bbadb3638..47720b7ad94e 100644
--- a/cad/salome/Makefile
+++ b/cad/salome/Makefile
@@ -6,7 +6,7 @@
PORTNAME= salome
PORTVERSION= 5.1.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= cad science
MASTER_SITES= http://www.stasyan.com/devel/distfiles/
DISTNAME= src5.1.3
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