[113354] trunk/dports/math/xylib

ryandesign at macports.org ryandesign at macports.org
Thu Nov 14 03:28:51 PST 2013


Revision: 113354
          https://trac.macports.org/changeset/113354
Author:   ryandesign at macports.org
Date:     2013-11-14 03:28:51 -0800 (Thu, 14 Nov 2013)
Log Message:
-----------
xylib: fix build on Mavericks (#41084)

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

Added Paths:
-----------
    trunk/dports/math/xylib/files/
    trunk/dports/math/xylib/files/patch-configure.diff

Modified: trunk/dports/math/xylib/Portfile
===================================================================
--- trunk/dports/math/xylib/Portfile	2013-11-14 11:15:02 UTC (rev 113353)
+++ trunk/dports/math/xylib/Portfile	2013-11-14 11:28:51 UTC (rev 113354)
@@ -28,6 +28,8 @@
 depends_lib         port:bzip2 \
                     port:zlib
 
+patchfiles          patch-configure.diff
+
 post-destroot {
     set docdir ${prefix}/share/doc/${subport}
     xinstall -d ${destroot}${docdir}

Added: trunk/dports/math/xylib/files/patch-configure.diff
===================================================================
--- trunk/dports/math/xylib/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/math/xylib/files/patch-configure.diff	2013-11-14 11:28:51 UTC (rev 113354)
@@ -0,0 +1,16 @@
+https://github.com/wojdyr/xylib/issues/4
+https://github.com/wojdyr/xylib/commit/eb40b1cd39c2d2bcac255bafba1f848975cb0bb0
+--- configure.orig	2013-08-01 18:54:08.000000000 -0500
++++ configure	2013-11-14 05:26:16.000000000 -0600
+@@ -15846,9 +15846,9 @@
+ # in this header would cause problems in programs using xylib.
+ uses_tr1_memory=`grep '#define XYLIB_USE_TR1_MEMORY ' $srcdir/xylib/cache.h | sed 's/.*\([01]\)/\1/g'`
+ if test "$ac_cv_header_tr1_memory" = "yes" && test $uses_tr1_memory != "1"; then
+-    sed -i 's/\(#define XYLIB_USE_TR1_MEMORY\) 0/\1 1/' $srcdir/xylib/cache.h
++    sed -i.bak 's/\(#define XYLIB_USE_TR1_MEMORY\) 0/\1 1/' $srcdir/xylib/cache.h
+ elif test "$ac_cv_header_tr1_memory" != "yes" && test $uses_tr1_memory = "1"; then
+-    sed -i 's/\(#define XYLIB_USE_TR1_MEMORY\) 1/\1 0/' $srcdir/xylib/cache.h
++    sed -i.bak 's/\(#define XYLIB_USE_TR1_MEMORY\) 1/\1 0/' $srcdir/xylib/cache.h
+ fi
+ 
+ # this is used in Makefile.am to define XYLIB_DLL when building xyconv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131114/cf3051a0/attachment-0001.html>


More information about the macports-changes mailing list