openbsd-ports/devel/p5-SDL/patches/patch-Build_PL

46 lines
1.2 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-Build_PL,v 1.1.1.1 2009/06/02 21:57:38 sthen Exp $
--- Build.PL.orig Wed Oct 5 02:25:49 2005
+++ Build.PL Mon May 25 14:22:30 2009
@@ -13,6 +13,7 @@ use YAML;
my $sdl_compile_flags = `sdl-config --cflags`;
my $sdl_link_flags = `sdl-config --libs`;
+$sdl_link_flags =~ s{-pthread}{-lpthread};
if ($? >> 8)
{
@@ -35,7 +36,7 @@ my %subsystems =
SDL => {
file => {
from => 'src/SDL.xs',
- to => 'src/SDL_perl.xs',
+ to => './SDL_perl.xs',
},
libraries => [qw( SDL SDL_image SDL_mixer SDL_net SDL_ttf SDL_gfx
png jpeg smpeg )],
@@ -43,14 +44,14 @@ my %subsystems =
OpenGL => {
file => {
from => 'src/OpenGL.xs',
- to => 'src/SDL/OpenGL.xs',
+ to => 'SDL/OpenGL.xs',
},
libraries => [qw( SDL GL GLU )],
},
SFont => {
file => {
from => 'src/SFont.xs',
- to => 'src/SDL/SFont.xs',
+ to => 'SDL/SFont.xs',
},
libraries => [qw( SDL SDL_image )],
},
@@ -123,6 +124,7 @@ my %xs = map { $subsystems{$_}{file}{from} => $subsyst
keys %subsystems;
my $build = SDL::Build->new(
+ module_name => 'SDL',
dist_name => 'SDL_Perl',
license => 'lgpl',
dist_version_from => 'lib/SDL.pm',