openbsd-ports/devel/p5-SDL/patches/patch-Build_PL
sthen 07a13c31f0 import devel/p5-SDL, from James Wright
SDL_perl is a package of perl modules that provides both functional
and object orient interfaces to the Simple DirectMedia Layer for Perl
5. This package does take some liberties with the SDL API, and
attempts to adhere to the spirit of both the SDL and Perl. For the
object oriented programming interface please see the documentation
provided on a per class basis.
2009-06-02 21:57:38 +00:00

46 lines
1.2 KiB
Plaintext

$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',