[20577] trunk/dports/math/SuiteSparse/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Nov 7 18:20:24 PST 2006


Revision: 20577
          http://trac.macosforge.org/projects/macports/changeset/20577
Author:   stechert at macports.org
Date:     2006-11-07 18:20:23 -0800 (Tue, 07 Nov 2006)

Log Message:
-----------
While fixing metis for Octave, I broke it for SuiteSparse.  It's kind of
arbitrary which way you go (either -I/opt/local/include/metis and have all the
metis header files refer to each other with no "metis/" prefix or use
-I/opt/local/include and have all the metis header files refer to each other
with a "metis/" prefix).  For the sake of simplicity in ports that depend on
metis and other packages, I opted for the latter.  Plus, that's how it already
is in the repository.

Modified Paths:
--------------
    trunk/dports/math/SuiteSparse/Portfile

Modified: trunk/dports/math/SuiteSparse/Portfile
===================================================================
--- trunk/dports/math/SuiteSparse/Portfile	2006-11-08 01:05:08 UTC (rev 20576)
+++ trunk/dports/math/SuiteSparse/Portfile	2006-11-08 02:20:23 UTC (rev 20577)
@@ -25,12 +25,13 @@
 pre-configure	{
 		reinplace "s,#define SIZE_T_MAX ((size_t) (-1)),," ${worksrcpath}/AMD/Include/amd_internal.h
 		reinplace "s,#define SIZE_T_MAX ((size_t) (-1)),," ${worksrcpath}/CAMD/Include/camd_internal.h
-		reinplace "s,METIS_PATH = ../../metis-4.0,METIS_PATH = ${prefix}/include/metis," ${worksrcpath}/UFconfig/UFconfig.mk
+		reinplace "s,METIS_PATH = ../../metis-4.0,METIS_PATH = ${prefix}/include," ${worksrcpath}/UFconfig/UFconfig.mk
 		reinplace "s,METIS = ../../metis-4.0/libmetis.a,METIS = ${prefix}/lib/libmetis.a," ${worksrcpath}/UFconfig/UFconfig.mk
 		reinplace "s,BLAS = -lgoto -lgfortran,BLAS = -L${prefix}/lib -lblas," ${worksrcpath}/UFconfig/UFconfig.mk
 		reinplace "s,-I\$(METIS_PATH)/Lib,-I\$(METIS_PATH)," ${worksrcpath}/CHOLMOD/Lib/Makefile
 		reinplace "s,f77,gfortran-dp-4.2," ${worksrcpath}/CXSparse/Demo/Makefile
 		reinplace "s,( cd metis-4.0 ; \$(MAKE) ),# ( cd metis-4.0 ; \$(MAKE) )," ${worksrcpath}/Makefile
+		reinplace "s,#include \"metis.h\",#include \"metis/metis.h\"," ${worksrcpath}/CHOLMOD/Partition/cholmod_metis.c
 }
 
 build.target	default

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061107/76819f50/attachment.html


More information about the macports-changes mailing list