[23024] trunk/dports/math/octave/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 22 04:03:22 PDT 2007


Revision: 23024
          http://trac.macosforge.org/projects/macports/changeset/23024
Author:   takanori at macports.org
Date:     2007-03-22 04:03:21 -0700 (Thu, 22 Mar 2007)

Log Message:
-----------
Better way to avoid using heimdal's broken fnmatch.h

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

Modified: trunk/dports/math/octave/Portfile
===================================================================
--- trunk/dports/math/octave/Portfile	2007-03-22 11:02:39 UTC (rev 23023)
+++ trunk/dports/math/octave/Portfile	2007-03-22 11:03:21 UTC (rev 23024)
@@ -51,12 +51,9 @@
 		--without-mpi	\
 		--with-blas="-framework Accelerate"
 
-pre-configure {
-	if {[file exists ${prefix}/include/fnmatch.h]} {
-		ui_msg "port:heimdal may prevent building this port."
-		ui_msg "Please uninstall (or deactivate) heimdal and restart the build."
-		exit 1
-	}
+post-patch {
+	# Avoid using heimdal's broken fnmatch.h
+	reinplace "s|<\\(fnmatch\.h\\)>|\"/usr/include/\\1\"|" ${worksrcpath}/liboctave/glob-match.cc
 }
 
 pre-destroot {

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


More information about the macports-changes mailing list