diff options
Diffstat (limited to 'Perl')
-rw-r--r-- | Perl/Makefile.PL | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Perl/Makefile.PL b/Perl/Makefile.PL index de5430a..2539b7a 100644 --- a/Perl/Makefile.PL +++ b/Perl/Makefile.PL @@ -50,16 +50,23 @@ if ($WIN) { } my $ZincObj = "Zinc" . $Config{"_o"}; +my $INC = "-I. -I$TkLibDir -I$TkLibDir/pTk -I$TkLibDir/X11"; + +unless ($WIN) { + $INC .= " -I/usr/X11R6/include"; +} + # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( + 'ABSTRACT' => 'a canvas offering groups, tranformations, transparency, color gradient...', 'AUTHOR' => 'Patrick Lecoanet <lecoanet@cena.fr>', 'NAME' => 'Tk::Zinc', 'VERSION' => $VERSION, - 'PREREQ_PM' => {Tk => 8.0}, + 'PREREQ_PM' => $WIN ? {Tk => 8.004} : {Tk => 8.0}, 'LIBS' => $NeededLibs, 'DEFINE' => &get_flags, - 'INC' => "-I. -I$TkLibDir -I$TkLibDir/pTk -I$TkLibDir/X11", + 'INC' => $INC, 'C' => [@C], 'XS_VERSION' => $Tk::Config::VERSION, 'XS' => {'Zinc.xs' => 'Zinc.c'}, |