Permalink
Browse files

BSD set to experimental

  • Loading branch information...
Kartik Thakore
Kartik Thakore committed Dec 7, 2009
1 parent de4717f commit 69141f797f92107e06a9d0107f25c16822fe5a4e
Showing with 10 additions and 7 deletions.
  1. +4 −2 Build.PL
  2. +6 −5 t/lib/SDL/TestTool.pm
View
@@ -15,14 +15,16 @@ use SDL::Utility;
use YAML;
use YAML::Node;
-print STDERR <<BROKENWIN if ($^O =~ /MSWin.*|cygwin/ );
+print STDERR <<BROKENWIN if ($^O =~ /bsd|solaris/i );
*************************** !!!WARNING!!! *****************************
-Windows support is currently experimental - you can continue, but
+BSD support is currently experimental - you can continue, but
you've been warned! If you are interested in helping please contact us
at sdl-devel\@perl.org, or join us on #sdl in irc.perl.org
***********************************************************************
BROKENWIN
+
+
my $sdl_compile_flags = SDL::Utility->sdl_c_flags();
my $sdl_link_flags = SDL::Utility->sdl_libs();
# subsystem to build
View
@@ -23,6 +23,12 @@ sub init {
my $stdout = '';
my $stderr = '';
+ if( $ENV{SDL_BSD_TEST} && $^O =~ /bsd|solaris/i)
+ {
+ warn "Timer, Audio and Video is experimental in BSD environments. ";
+ return ;
+ }
+
if( $init == SDL_INIT_VIDEO)
{
if( $^O !~ /win/i && !$ENV{DISPLAY} )
@@ -42,11 +48,6 @@ sub init {
SDL::quit();
}
- if( $init == SDL_INIT_TIMER && $^O =~ /bsd|solaris/i)
- {
- warn "Timer is not supported in BSD environments";
- return ;
- }
capture { SDL::init($init) } \$stdout, \$stderr;
if ( $stderr ne '' )
{

0 comments on commit 69141f7

Please sign in to comment.