[20974] trunk/dports/devel/alex

source_changes at macosforge.org source_changes at macosforge.org
Fri Dec 15 08:11:34 PST 2006


Revision: 20974
          http://trac.macosforge.org/projects/macports/changeset/20974
Author:   gwright at macports.org
Date:     2006-12-15 08:11:33 -0800 (Fri, 15 Dec 2006)

Log Message:
-----------
Fix build on intel.

Modified Paths:
--------------
    trunk/dports/devel/alex/Portfile

Added Paths:
-----------
    trunk/dports/devel/alex/files/
    trunk/dports/devel/alex/files/patch-configure

Modified: trunk/dports/devel/alex/Portfile
===================================================================
--- trunk/dports/devel/alex/Portfile	2006-12-15 08:34:17 UTC (rev 20973)
+++ trunk/dports/devel/alex/Portfile	2006-12-15 16:11:33 UTC (rev 20974)
@@ -3,8 +3,9 @@
 PortSystem 1.0
 name		alex
 version		2.0.1
+revision	1
 categories	devel
-maintainers	gwright at opendarwin.org
+maintainers	gwright at macports.org
 platforms	darwin
 description	A Lexical Analyzer Generator for Haskell
 long_description	\
@@ -20,6 +21,8 @@
 
 checksums	md5 edb62560e29c8de23913c65c52adbf19
 
+patchfiles	patch-configure
+
 depends_build	bin:ghc:ghc
 
 pre-configure	{ set cfg [open "${worksrcpath}/mk/build.mk" w]

Added: trunk/dports/devel/alex/files/patch-configure
===================================================================
--- trunk/dports/devel/alex/files/patch-configure	                        (rev 0)
+++ trunk/dports/devel/alex/files/patch-configure	2006-12-15 16:11:33 UTC (rev 20974)
@@ -0,0 +1,36 @@
+--- configure.sav	2006-12-15 11:06:41.000000000 -0500
++++ configure	2006-12-15 11:12:37.000000000 -0500
+@@ -1777,6 +1777,15 @@
+ 	HostVendor_CPP='apple'
+ 	HostOS_CPP='darwin'
+ 	;;
++i386-apple-darwin*)
++	HostPlatform=i386-apple-darwin
++	TargetPlatform=i386-apple-darwin #hack
++	BuildPlatform=i386-apple-darwin #hack
++	HostPlatform_CPP='i386'
++	HostArch_CPP='i386'
++	HostVendor_CPP='apple'
++	HostOS_CPP='darwin'
++	;;
+ powerpc-unknown-linux*)
+         HostPlatform=powerpc-unknown-linux
+         TargetPlatform=powerpc-unknown-linux
+@@ -4115,7 +4124,7 @@
+ else
+   if test $fp_prog_ar_is_gnu = yes; then
+   fp_cv_prog_ar_needs_ranlib=no
+-elif test $TargetPlatform = powerpc-apple-darwin; then
++elif test $TargetPlatform = powerpc-apple-darwin || $TestPlatform = i386-apple-darwin; then
+   # It's quite tedious to check for Apple's crazy timestamps in .a files,
+   # so we hardcode it.
+   fp_cv_prog_ar_needs_ranlib=yes
+@@ -16630,7 +16639,7 @@
+ 
+ 
+ HaveFrameworkGMP=NO
+-if test $HostPlatform = "powerpc-apple-darwin"; then
++if test $HostPlatform = "powerpc-apple-darwin" || $HostPlatform = "i386-apple-darwin"; then
+  echo "$as_me:$LINENO: checking for GMP.framework" >&5
+ echo $ECHO_N "checking for GMP.framework... $ECHO_C" >&6
+  save_libs="$LIBS"

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


More information about the macports-changes mailing list