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=65976cdf170a8e9325b7114c60420a224b2766a5;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 8ca726b..0000000 --- a/lib/SDL/Config.pm +++ /dev/null @@ -1,75 +0,0 @@ -package SDL::Config; - -my $sdl_config; -$sdl_config = { - '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;