aboutsummaryrefslogtreecommitdiff
path: root/lang/p5-Tcl
diff options
context:
space:
mode:
Diffstat (limited to 'lang/p5-Tcl')
-rw-r--r--lang/p5-Tcl/Makefile2
-rw-r--r--lang/p5-Tcl/files/patch-aa2
2 files changed, 3 insertions, 1 deletions
diff --git a/lang/p5-Tcl/Makefile b/lang/p5-Tcl/Makefile
index fc2e25fd79d3..3d3a2dc32974 100644
--- a/lang/p5-Tcl/Makefile
+++ b/lang/p5-Tcl/Makefile
@@ -17,6 +17,8 @@ MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82
PERL_CONFIGURE= yes
+CONFIGURE_ARGS+= POLLUTE=1
+CONFIGURE_ENV+= PREFIX=${PREFIX}
WRKSRC= ${WRKDIR}/${PORTNAME}
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
diff --git a/lang/p5-Tcl/files/patch-aa b/lang/p5-Tcl/files/patch-aa
index 8a764581870e..5707b5de5145 100644
--- a/lang/p5-Tcl/files/patch-aa
+++ b/lang/p5-Tcl/files/patch-aa
@@ -6,6 +6,6 @@
VERSION => "b2",
- LIBS => ["-ltcl -lm"],
- INC => "-I/usr/local/include -I/usr/include/tcl"
-+ LIBS => ["-L\${PREFIX}/lib -ltcl82 -lm"],
++ LIBS => ["-L$ENV{PREFIX}/lib -ltcl82 -lm"],
+ INC => "-I\${PREFIX}/include -I\${PREFIX}/include/tcl8.2"
);