[133790] trunk/dports/lang/MoarVM
ionic at macports.org
ionic at macports.org
Wed Mar 11 09:31:11 PDT 2015
Revision: 133790
https://trac.macports.org/changeset/133790
Author: ionic at macports.org
Date: 2015-03-11 09:31:11 -0700 (Wed, 11 Mar 2015)
Log Message:
-----------
MoarVM: add upstream CFLAGS/LDFLAGS patch. Enable now-working universal variant. Revbump and remove old universal comment.
Modified Paths:
--------------
trunk/dports/lang/MoarVM/Portfile
Added Paths:
-----------
trunk/dports/lang/MoarVM/files/
trunk/dports/lang/MoarVM/files/patch-Configure.pl-respect-CFLAGS-and-LDFLAGS.diff
Modified: trunk/dports/lang/MoarVM/Portfile
===================================================================
--- trunk/dports/lang/MoarVM/Portfile 2015-03-11 16:27:49 UTC (rev 133789)
+++ trunk/dports/lang/MoarVM/Portfile 2015-03-11 16:31:11 UTC (rev 133790)
@@ -5,7 +5,7 @@
name MoarVM
version 2015.02
-revision 1
+revision 2
categories lang devel
platforms darwin
license Artistic-2 MIT BSD ISC public-domain
@@ -19,16 +19,18 @@
checksums rmd160 853c106a02040f832b11dff0fa1bde14f6f890fa \
sha256 4093ff80e6b40f215dd238282a464de59bbd5c2ef42cb9099e9ef68f07fe8d1b
+# Delete this upstream patch once a new version comes out that includes it.
+patchfiles patch-Configure.pl-respect-CFLAGS-and-LDFLAGS.diff
+
+patch.args -p1
+
# FIXME: may need ExtUtil::Command if by chance our default perl5 binary
# does not match what Apple ships.
depends_build port:perl5
# Unsupported by configure.pl.
-#configure.universal_args-delete --disable-dependency-tracking
+configure.universal_args-delete --disable-dependency-tracking
-# Currently does not build universal at all.
-# Check GH:MoarVM:#182. Once Configure.pl accepts *CFLAGS from the environment,
-# try to re-enable this.
-universal_variant no
+universal_variant yes
configure.cmd ${prefix}/bin/perl Configure.pl
Added: trunk/dports/lang/MoarVM/files/patch-Configure.pl-respect-CFLAGS-and-LDFLAGS.diff
===================================================================
--- trunk/dports/lang/MoarVM/files/patch-Configure.pl-respect-CFLAGS-and-LDFLAGS.diff (rev 0)
+++ trunk/dports/lang/MoarVM/files/patch-Configure.pl-respect-CFLAGS-and-LDFLAGS.diff 2015-03-11 16:31:11 UTC (rev 133790)
@@ -0,0 +1,29 @@
+From 09393586b6207b5aafd0067fc6f6ee339b7d3ff4 Mon Sep 17 00:00:00 2001
+From: Tobias Leich <email at froggs.de>
+Date: Wed, 11 Mar 2015 16:07:37 +0100
+Subject: [PATCH] use env's CFLAGS and LDFLAGS if set, fixes #182
+
+---
+ Configure.pl | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/Configure.pl b/Configure.pl
+index 59e51e9..1403356 100644
+--- a/Configure.pl
++++ b/Configure.pl
+@@ -305,6 +305,7 @@
+ push @cflags, $config{ccdefflags};
+ push @cflags, $config{ccshared} unless $args{static};
+ push @cflags, '-fno-omit-frame-pointer -fsanitize=address' if $args{asan};
++push @cflags, $ENV{CFLAGS} if $ENV{CFLAGS};
+ $config{cflags} = join ' ', @cflags;
+
+ # generate LDFLAGS
+@@ -314,6 +315,7 @@
+ push @ldflags, $config{ldinstflags} if $args{instrument};
+ push @ldflags, $config{ldrpath} unless $args{static};
+ push @ldflags, $^O eq 'darwin' ? '-faddress-sanitizer' : '-fsanitize=address' if $args{asan};
++push @ldflags, $ENV{LDFLAGS} if $ENV{LDFLAGS};
+ $config{ldflags} = join ' ', @ldflags;
+
+ # setup library names
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150311/92a80e9b/attachment.html>
More information about the macports-changes
mailing list