diff options
author | petef <petef@FreeBSD.org> | 2001-08-26 14:00:14 +0800 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2001-08-26 14:00:14 +0800 |
commit | 16c20b750cb05487848124f0a5c50d3aaf31700c (patch) | |
tree | a0a414532fb3b050cad0443aebb8ecc7f2d8e728 /x11-toolkits/p5-TclTk | |
parent | 15992d9fd78169b52ddbff72de248280de001eb7 (diff) | |
download | freebsd-ports-graphics-16c20b750cb05487848124f0a5c50d3aaf31700c.tar.gz freebsd-ports-graphics-16c20b750cb05487848124f0a5c50d3aaf31700c.tar.zst freebsd-ports-graphics-16c20b750cb05487848124f0a5c50d3aaf31700c.zip |
Fix compilation by telling Makefile.PL to look for the tcl/tk headers
in the right place.
PR: 28394
Diffstat (limited to 'x11-toolkits/p5-TclTk')
-rw-r--r-- | x11-toolkits/p5-TclTk/Makefile | 4 | ||||
-rw-r--r-- | x11-toolkits/p5-TclTk/files/patch-aa | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/x11-toolkits/p5-TclTk/Makefile b/x11-toolkits/p5-TclTk/Makefile index 3ce135bdf39..41edb4c4b99 100644 --- a/x11-toolkits/p5-TclTk/Makefile +++ b/x11-toolkits/p5-TclTk/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-TclTk/files/patch-aa b/x11-toolkits/p5-TclTk/files/patch-aa index d916d5e67b5..d9f2c423b56 100644 --- a/x11-toolkits/p5-TclTk/files/patch-aa +++ b/x11-toolkits/p5-TclTk/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 = :" } |