package SDL::Build::Darwin;

use base 'SDL::Build';

sub fetch_includes
{
	return (
	'/usr/local/include/SDL'   => '/usr/local/lib',
	'/usr/local/include'       => '/usr/local/lib',
	'/usr/local/include/smpeg' => '/usr/local/lib',
	'/usr/include/SDL'         => '/usr/lib',
	'/usr/include'             => '/usr/lib',
	'/usr/include/smpeg'       => '/usr/lib',
	'/usr/local/include/GL'    => '/usr/local/lib',
	'/usr/local/include/gl'    => '/usr/local/lib',
	'/usr/include/GL'          => '/usr/lib', 
	'/usr/include/gl'          => '/usr/lib', 
	
	'/Library/Frameworks/SDL.framework/Headers'	      => '../../lib',
	'/Library/Frameworks/SDL_mixer.framework/Headers'     => '../../lib',
	'/Library/Frameworks/SDL_image.framework/Headers'     => '../../lib',
	'/Library/Frameworks/SDL_net.framework/Headers'       => '../../lib',
	'/Library/Frameworks/SDL_ttf.framework/Headers'       => '../../lib',
	'/Library/Frameworks/SDL_gfx.framework/Headers'       => '../../lib',
	'/Library/Frameworks/libogg.framework/Headers'        => '../../lib',
	'/Library/Frameworks/libvorbis.framework/Headers'     => '../../lib',
	'/Frameworks/libvorbisfile.framework/Headers'	      => '../../lib',
	'/Library/Frameworks/libvorbisenc.framework/Headers'  => '../../lib',
	'../../include'                                       => '../../lib',
	'/System/Library/Frameworks/OpenGL.framework/Headers' =>
 		'/System/Library/Frameworks/OpenGL.framework/Libraries',
	);
}

sub build_defines
{
	my $self = shift;
	my $defines = $self->SUPER::build_defines(@_);

	push @{$defines->{SDL}}, "-Ddarwin", "-DMACOSX";

	return $defines;
}
1;
