[131249] trunk/dports/perl/p5-mac-carbon

larryv at macports.org larryv at macports.org
Wed Jan 7 11:04:39 PST 2015


Revision: 131249
          https://trac.macports.org/changeset/131249
Author:   larryv at macports.org
Date:     2015-01-07 11:04:39 -0800 (Wed, 07 Jan 2015)
Log Message:
-----------
p5-mac-carbon: Fix sundry linking issues

- Blah blah
- Mac::AppleEvents hard-codes `c++` for linking.

Modified Paths:
--------------
    trunk/dports/perl/p5-mac-carbon/Portfile

Added Paths:
-----------
    trunk/dports/perl/p5-mac-carbon/files/fix-linking.patch

Modified: trunk/dports/perl/p5-mac-carbon/Portfile
===================================================================
--- trunk/dports/perl/p5-mac-carbon/Portfile	2015-01-07 19:04:36 UTC (rev 131248)
+++ trunk/dports/perl/p5-mac-carbon/Portfile	2015-01-07 19:04:39 UTC (rev 131249)
@@ -24,6 +24,8 @@
 if {${perl5.major} != ""} {
     supported_archs     i386 ppc
     patchfiles          avoid-FlatCarbon-headers.patch \
+                        fix-linking.patch \
                         no-arch-flag.patch
+    compiler.library_path
     configure.post_args TRY_ANYWAY=1
 }

Added: trunk/dports/perl/p5-mac-carbon/files/fix-linking.patch
===================================================================
--- trunk/dports/perl/p5-mac-carbon/files/fix-linking.patch	                        (rev 0)
+++ trunk/dports/perl/p5-mac-carbon/files/fix-linking.patch	2015-01-07 19:04:39 UTC (rev 131249)
@@ -0,0 +1,33 @@
+Index: AppleEvents/Makefile.PL
+===================================================================
+--- AppleEvents/Makefile.PL.orig
++++ AppleEvents/Makefile.PL
+@@ -5,7 +5,6 @@ use vars qw(%ARGS);
+ do(catfile(updir(), 'common.pl'));
+ 
+ if ($^O eq 'darwin') {
+-	$ARGS{'LD'}		= 'c++';
+ 	$ARGS{'OBJECT'}		= 'AppleEvents.o PerlAEUtils.o';
+ 
+ 	# i'm sure there's a way to tell MakeMaker to use .cp,
+Index: common.pl
+===================================================================
+--- common.pl.orig
++++ common.pl
+@@ -47,6 +47,8 @@ if ($^O eq 'darwin') {
+ 	$ARGS{'depend'}{$C}     = catfile($BASEDIR, 'Carbon.h');
+ 
+ 	$ARGS{'LDFLAGS'}        = $Config{ldflags};
++	$ARGS{'LDFLAGS'}        =~ s/-L\S+//;
++
+ 	$ARGS{'CCFLAGS'}        = $Config{ccflags} . ' -fpascal-strings';
+ #	$ARGS{'LDDLFLAGS'}      = '-dynamiclib -prebind -flat_namespace -undefined suppress -framework Carbon';
+ #	$ARGS{'DLEXT'}          = 'dylib';
+@@ -54,6 +56,7 @@ if ($^O eq 'darwin') {
+ 	$ARGS{'LDDLFLAGS'}      = $Config{lddlflags};
+ 	$ARGS{'LDDLFLAGS'}      =~ s/-undefined\s+\w+//;
+ 	$ARGS{'LDDLFLAGS'}      =~ s/-bundle\b//;
++	$ARGS{'LDDLFLAGS'}      =~ s/-L\S+//;
+ 	$ARGS{'LDDLFLAGS'}      .= ' -bundle -flat_namespace -undefined suppress -framework Carbon';
+ 
+ 	fixargs(\%ARGS);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150107/03c3c31c/attachment.html>


More information about the macports-changes mailing list