diff options
Diffstat (limited to 'x11-toolkits/p5-Tcl-Tk')
-rw-r--r-- | x11-toolkits/p5-Tcl-Tk/Makefile | 4 | ||||
-rw-r--r-- | x11-toolkits/p5-Tcl-Tk/files/patch-aa | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/x11-toolkits/p5-Tcl-Tk/Makefile b/x11-toolkits/p5-Tcl-Tk/Makefile index 3ce135bdf39f..41edb4c4b99d 100644 --- a/x11-toolkits/p5-Tcl-Tk/Makefile +++ b/x11-toolkits/p5-Tcl-Tk/Makefile @@ -23,4 +23,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME} MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3= Tcl::Tk.3 +post-patch: + @${PERL} -pi -e 's,%LOCALBASE%,${LOCALBASE},g; \ + s,%X11BASE%,${X11BASE},g' ${WRKSRC}/Makefile.PL + .include <bsd.port.mk> diff --git a/x11-toolkits/p5-Tcl-Tk/files/patch-aa b/x11-toolkits/p5-Tcl-Tk/files/patch-aa index d916d5e67b56..d9f2c423b562 100644 --- a/x11-toolkits/p5-Tcl-Tk/files/patch-aa +++ b/x11-toolkits/p5-Tcl-Tk/files/patch-aa @@ -6,6 +6,6 @@ DISTNAME => "TclTk", - LIBS => ["-ltk -ltcl -L/usr/X11R6/lib -lX11 -lm"], - INC => "-I/usr/local/include -I/usr/include/tcl"); -+ LIBS => ["-L$ENV{PREFIX}/lib -L$ENV{X11BASE}/lib -ltk82 -ltcl82 -lX11 -lm"], -+ INC => "-I$ENV{PREFIX}/include -I$ENV{PREFIX}/include/tcl8.2 -I$ENV{PREFIX}/include/tk8.2 -I$ENV{X11BASE}/include"); ++ LIBS => ["-L%LOCALBASE%/lib -L%X11BASE%/lib -ltk82 -ltcl82 -lX11 -lm"], ++ INC => "-I%LOCALBASE%/include -I%LOCALBASE%/include/tcl8.2 -I%LOCALBASE%/include/tk8.2 -I%X11BASE%/include"); #sub MY::tool_autosplit { "AUTOSPLITFILE = :" } |