Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Aug 2013 04:22:47 +0000 (UTC)
From:      Maho Nakata <maho@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r325428 - head/cad/calculix
Message-ID:  <201308270422.r7R4Mlpl075273@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: maho
Date: Tue Aug 27 04:22:46 2013
New Revision: 325428
URL: http://svnweb.freebsd.org/changeset/ports/325428

Log:
  Now metis-edf is selectable.

Modified:
  head/cad/calculix/Makefile

Modified: head/cad/calculix/Makefile
==============================================================================
--- head/cad/calculix/Makefile	Tue Aug 27 03:36:50 2013	(r325427)
+++ head/cad/calculix/Makefile	Tue Aug 27 04:22:46 2013	(r325428)
@@ -32,7 +32,6 @@ LICENSE=	GPLv2
 
 LIB_DEPENDS=	arpack.1:${PORTSDIR}/math/arpack	\
 		spooles.1:${PORTSDIR}/math/spooles \
-		metis.1:${PORTSDIR}/math/metis4	\
 		taucs.1:${PORTSDIR}/math/taucs
 
 USE_BZIP2=	yes
@@ -58,6 +57,17 @@ CCX_VER=	ccx_${PORTVERSION}
 CGX_VER=	cgx_2.6
 
 .include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
+
+OPTIONS_DEFINE= METIS METIS_EDF
+OPTIONS_DEFAULT=METIS
+
+.if ${PORT_OPTIONS:MMETIS}
+LIB_DEPENDS+= 	metis.1:${PORTSDIR}/math/metis4
+.endif
+.if ${PORT_OPTIONS:MMETIS_EDF}
+LIB_DEPENDS+= 	metis.1:${PORTSDIR}/math/metis-edf
+.endif
 
 .if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS)
 WITH_ATLAS=             yes



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308270422.r7R4Mlpl075273>