[84355] trunk/dports/science/gnuradio-core
michaelld at macports.org
michaelld at macports.org
Fri Sep 23 08:12:00 PDT 2011
Revision: 84355
http://trac.macports.org/changeset/84355
Author: michaelld at macports.org
Date: 2011-09-23 08:11:59 -0700 (Fri, 23 Sep 2011)
Log Message:
-----------
gnuradio-core: Fix 'configure' detection of arch on 10.7; addresses ticket #31238.
Modified Paths:
--------------
trunk/dports/science/gnuradio-core/Portfile
Added Paths:
-----------
trunk/dports/science/gnuradio-core/files/
trunk/dports/science/gnuradio-core/files/patch-configure.diff
Modified: trunk/dports/science/gnuradio-core/Portfile
===================================================================
--- trunk/dports/science/gnuradio-core/Portfile 2011-09-23 15:09:42 UTC (rev 84354)
+++ trunk/dports/science/gnuradio-core/Portfile 2011-09-23 15:11:59 UTC (rev 84355)
@@ -33,6 +33,9 @@
archcheck.files lib/libgruel.dylib
+# fix up configure to handle 10.7 correctly.
+patchfiles patch-configure.diff
+
configure.args --disable-all-components \
--with-gruel \
--enable-gnuradio-core
Added: trunk/dports/science/gnuradio-core/files/patch-configure.diff
===================================================================
--- trunk/dports/science/gnuradio-core/files/patch-configure.diff (rev 0)
+++ trunk/dports/science/gnuradio-core/files/patch-configure.diff 2011-09-23 15:11:59 UTC (rev 84355)
@@ -0,0 +1,49 @@
+--- configure.orig_up 2011-09-20 14:22:43.000000000 -0400
++++ configure 2011-09-20 14:06:19.000000000 -0400
+@@ -20151,6 +20151,46 @@
+ cf_with_md_cpu="x86_64"
+ fi
+ ;;
++ *darwin*11*)
++ # The cast to long int works around a bug in the HP C Compiler
++# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
++# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
++# This bug is HP SR number 8606223364.
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
++$as_echo_n "checking size of void*... " >&6; }
++if ${ac_cv_sizeof_voidp+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
++
++else
++ if test "$ac_cv_type_voidp" = yes; then
++ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
++$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
++as_fn_error 77 "cannot compute sizeof (void*)
++See \`config.log' for more details" "$LINENO" 5; }
++ else
++ ac_cv_sizeof_voidp=0
++ fi
++fi
++
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
++$as_echo "$ac_cv_sizeof_voidp" >&6; }
++
++
++
++cat >>confdefs.h <<_ACEOF
++#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
++_ACEOF
++
++
++ if test "$ac_cv_sizeof_voidp" = 4; then
++ cf_with_md_cpu="i386"
++ else
++ cf_with_md_cpu="x86_64"
++ fi
++ ;;
+ *)
+ cf_with_md_cpu="$host_cpu"
+ ;;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110923/c0c4ff62/attachment.html>
More information about the macports-changes
mailing list