1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
--- Makefile.freebsd.orig Wed Mar 12 03:38:56 2003
+++ Makefile.freebsd Tue Sep 12 18:08:44 2006
@@ -1,6 +1,7 @@
#!/usr/bin/env perl
use strict;
+use Config;
use ExtUtils::MakeMaker;
#
@@ -13,8 +14,8 @@
# Configuration detection of Linux / Unix
#
-chomp ($sdl_cflags = "-I/usr/X11R6/include " . `sdl11-config --cflags`);
-chomp ($sdl_libs = "-L/usr/X11R6/lib " . `sdl11-config --libs`);
+chomp ($sdl_cflags = "-I/usr/X11R6/include " . `sdl-config --cflags`);
+chomp ($sdl_libs = "-L/usr/X11R6/lib " . `sdl-config --libs`);
$sdl_libs =~ s/-Wl,-rpath,\/usr\/local\/lib//; # suppress the insanity
$sdl_libs =~ s/-pthread//;
@@ -24,7 +25,7 @@
@dirs=(
'/usr/local/include',
- '/usr/local/include/SDL11',
+ '/usr/local/include/SDL',
'/usr/local/include/smpeg',
'/usr/X11R6/include',
'/usr/X11R6/include/GL',
@@ -96,7 +97,7 @@
my %options = (
'NAME' => 'SDL_perl',
- 'VERSION_FROM' => 'SDL.pm',
+ 'VERSION_FROM' => 'lib/SDL.pm',
'LIBS' => [ join( " ", "$sdl_libs",
map { $ext{$_}{exists} ? "-l$_" : '' } (sort keys %ext),
)
|