From: Kartik Thakore Date: Mon, 28 Sep 2009 19:53:52 +0000 (-0400) Subject: Got rid of generated Config.pm X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5cb48263a6f563b46b88262a7b84b0679b114759;p=sdlgit%2FSDL_perl.git Got rid of generated Config.pm --- diff --git a/lib/SDL/Config.pm b/lib/SDL/Config.pm deleted file mode 100644 index 354975c..0000000 --- a/lib/SDL/Config.pm +++ /dev/null @@ -1,81 +0,0 @@ -package SDL::Config; - -my $sdl_config; -$sdl_config = { - 'Rect' => { - 'SDL' => [ - '/usr/include/SDL', - '/usr/lib' - ] - }, - 'OpenGL' => { - 'GL' => [ - '/usr/include/GL', - '/usr/lib' - ], - 'SDL' => [ - '/usr/include/SDL', - '/usr/lib' - ], - 'GLU' => [ - '/usr/include/GL', - '/usr/lib' - ] - }, - 'SDL' => { - 'png' => [ - '/usr/include', - '/usr/lib' - ], - 'SDL' => [ - '/usr/include/SDL', - '/usr/lib' - ], - 'SDL_ttf' => [ - '/usr/include/SDL', - '/usr/lib' - ], - 'SDL_net' => [ - '/usr/include/SDL', - '/usr/lib' - ], - 'SDL_image' => [ - '/usr/include/SDL', - '/usr/lib' - ], - 'SDL_gfx' => [ - '/usr/include/SDL', - '/usr/lib' - ], - 'jpeg' => [ - '/usr/include', - '/usr/lib' - ], - 'smpeg' => [ - '/usr/include/smpeg', - '/usr/lib' - ], - 'SDL_mixer' => [ - '/usr/include/SDL', - '/usr/lib' - ] - }, - 'SFont' => { - 'SDL_image' => [ - '/usr/include/SDL', - '/usr/lib' - ], - 'SDL' => [ - '/usr/include/SDL', - '/usr/lib' - ] - } - }; - -sub has -{ - my ($class, $define) = @_; - scalar grep { $$sdl_config{$_}{$define} } keys %$sdl_config; -} - -1;