Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2013-07-06 13:38:40 +0400
committerAlessandro Ranellucci <aar@cpan.org>2013-07-06 13:38:40 +0400
commit28f8083ab7c76ce8bfee1f4c879e2fb57d36c238 (patch)
tree0309177d69a2decbfcc7c8da8e6a77f2f0938eca /Build.PL
parenteb2d20d062374513e276a6c29ead81217164d06a (diff)
parent2ecc31c0aa99405bbfbb279249ae76365565f47d (diff)
Merge branch 'master' into xs
Diffstat (limited to 'Build.PL')
-rw-r--r--Build.PL15
1 files changed, 12 insertions, 3 deletions
diff --git a/Build.PL b/Build.PL
index 75b74c516..650934dd9 100644
--- a/Build.PL
+++ b/Build.PL
@@ -28,9 +28,15 @@ my %recommends = qw(
Growl::GNTP 0.15
XML::SAX::ExpatXS 0
);
-
-# removed:
-# Wx 0.9901
+if ($ARGV[0] eq '--gui') {
+ %prereqs = qw(
+ Wx 0.9901
+ );
+ %recommends = qw(
+ Wx::GLCanvas 0
+ OpenGL 0
+ );
+}
my $missing_prereqs = 0;
if ($ENV{SLIC3R_NO_AUTO}) {
@@ -80,6 +86,9 @@ If it is installed in a non-standard location you can do:
EOF
if !$cpanm;
+ # make sure our cpanm is updated (old ones don't support the ~ syntax)
+ system $cpanm, 'App::cpanminus';
+
my %modules = (%prereqs, %recommends);
foreach my $module (sort keys %modules) {
my $version = $modules{$module};