Date: Wed, 08 Jul 2009 23:04:26 +0200 From: Cezary Morga <cm@therek.net> To: QAT@freebsd.org Cc: perl@freebsd.org Subject: Re: [Custom LOCALBASE/PREFIX] lang/p5-Tcl - fails: compiler_error Message-ID: <4A5509DA.3040308@therek.net> In-Reply-To: <20090708133042.9A1F48FCB7@release.ixsystems.com> References: <20090708133042.9A1F48FCB7@release.ixsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
QAT@freebsd.org pisze:
> The Restless Daemon identified a compiler error while trying to build:
> p5-Tcl-0.97_2 maintained by perl@FreeBSD.org
> Makefile ident: $FreeBSD: ports/lang/p5-Tcl/Makefile,v 1.33 2009/03/05 11:36:12 mm Exp $
A patch for this issue in attachment. HTH
--
Cezary Morga
"The world is a tragedy to those who feel, but a comedy to those who
think." (Horace Walpole)
[-- Attachment #2 --]
diff -ruN lang/p5-Tcl.orig/files/patch-Makefile.PL lang/p5-Tcl/files/patch-Makefile.PL
--- lang/p5-Tcl.orig/files/patch-Makefile.PL 1970-01-01 01:00:00.000000000 +0100
+++ lang/p5-Tcl/files/patch-Makefile.PL 2009-07-08 22:53:46.624734000 +0200
@@ -0,0 +1,13 @@
+--- Makefile.PL.orig 2008-09-07 00:32:03.000000000 +0000
++++ Makefile.PL 2009-07-08 20:52:52.404852410 +0000
+@@ -192,8 +192,9 @@ if (defined($libpath) && defined($incpat
+ $defs .= " -DTCL_LIB_FILE=\\\"tcl$tclver.dll\\\"" if $usestubs;
+ }
+ elsif ($^O eq 'freebsd') {
++ $tclcfg{tcl_library} =~ /^(.*)[\\\/]lib[\\\/]/ and
++ $incpath .= " -I$1/include/tcl$tclver";
+ $tclver=~s/\.//;
+- $tclsh=~/([\d.]+)$/ and $incpath .= " -I/usr/local/include/tcl$1";
+ $defs .= " -DTCL_LIB_FILE=\\\"libtcl$tclver.so\\\"" if $usestubs;
+ }
+ elsif ($^O eq 'hpux') {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A5509DA.3040308>
