Revision
94814
Author
takeshi@macports.org
Date
2012-06-30 05:04:15 -0700 (Sat, 30 Jun 2012)

Log Message

netcdf: removed -lsz from LIBS when hdf5-18 is not compiled with +szip, closing #34985

Modified Paths

Added Paths

Diff

Modified: trunk/dports/science/netcdf/Portfile (94813 => 94814)


--- trunk/dports/science/netcdf/Portfile	2012-06-30 12:01:37 UTC (rev 94813)
+++ trunk/dports/science/netcdf/Portfile	2012-06-30 12:04:15 UTC (rev 94814)
@@ -7,7 +7,7 @@
 epoch                       2
 set realversion             4.2
 version                     ${realversion}.0
-revision                    3
+revision                    4
 maintainers                 takeshi openmaintainer
 platforms                   darwin
 categories                  science
@@ -29,6 +29,8 @@
                     rmd160  698fe12ba8857f3cb46be6e809842a8dd8245160
 worksrcdir          ${name}-${realversion}
 
+patchfiles          patch-configure.diff
+
 pre-configure {
     if {[variant_isset openmpi]} {
         set hdf5cc [exec grep "C Compiler" ${prefix}/lib/libhdf5.settings | awk {BEGIN{FS="/"}{print $NF}}]

Added: trunk/dports/science/netcdf/files/patch-configure.diff (0 => 94814)


--- trunk/dports/science/netcdf/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/science/netcdf/files/patch-configure.diff	2012-06-30 12:04:15 UTC (rev 94814)
@@ -0,0 +1,10 @@
+--- configure.orig	2012-06-30 20:38:38.000000000 +0900
++++ configure	2012-06-30 20:39:28.000000000 +0900
+@@ -16168,6 +16168,7 @@
+ else
+   USE_SZIP_TRUE='#'
+   USE_SZIP_FALSE=
++  LIBS=`echo ${LIBS} | sed 's/-lsz //'`
+ fi
+ 
+  if test ! "x$PNETCDFDIR" = x; then