Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 513 lines (493 sloc) 11.848 kb
85fcc9e Kartik Thakore Fixed v2.2.0
kthakore authored
1 #! perl -w
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
2 #
85fcc9e Kartik Thakore Fixed v2.2.0
kthakore authored
3 # Copyright (C) 2003 chromatic
4 # Copyright (C) 2004 David J. Goehrig
5 # Copyright (C) 2009 Kartik Thakore
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
6
7 use strict;
084b921 Kartik Thakore Brought all packages under eye of strict, warnings and love of Carp, For
kthakore authored
8 use warnings;
9 use Carp;
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
10
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
11 use lib 'inc';
12 use Alien::SDL;
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
13
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
14 print STDERR <<BROKENMSG if ($^O =~ /bsd|solaris/i );
6fc151b Breno G. de Oliveira improved Win32 warning/invitation message
garu authored
15 *************************** !!!WARNING!!! *****************************
69141f7 Kartik Thakore BSD set to experimental
kthakore authored
16 BSD support is currently experimental - you can continue, but
6fc151b Breno G. de Oliveira improved Win32 warning/invitation message
garu authored
17 you've been warned! If you are interested in helping please contact us
18 at sdl-devel\@perl.org, or join us on #sdl in irc.perl.org
19 ***********************************************************************
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
20 BROKENMSG
49ee715 Kartik Thakore Added windows message for help
kthakore authored
21
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
22 ### we need the platform-specific module
23 my $package = 'My::Builder::' . ucfirst( $^O );
24 eval "require $package" or croak "No module for '$^O' platform: $@\n";
69141f7 Kartik Thakore BSD set to experimental
kthakore authored
25
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
26 ### subsystems to build
27 # <subsystem>
28 # <file> = hash of the following 2 values:
29 # <from> = location of source file
30 # <to> = location of build file to get name right
31 # <libraries> = list reqiured libraries, names the same as keys to hash %libraries
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
32 my %subsystems =
33 (
34 SDL => {
35 file => {
36 from => 'src/SDL.xs',
2a66806 Kartik Thakore Patched kmx's patch from here http://rt.cpan.org/Ticket/Display.html?id=...
kthakore authored
37 to => 'lib/SDL_perl.xs',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
38 },
85fcc9e Kartik Thakore Fixed v2.2.0
kthakore authored
39 libraries => [qw( SDL SDL_image SDL_mixer SDL_net SDL_ttf SDL_gfx
40 png jpeg smpeg )],
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
41 },
a8c66d1 Kartik Thakore Still failing
kthakore authored
42 Time => {
43 file => {
44 from => 'src/Core/Time.xs',
45 to => 'lib/SDL/Time.xs',
46 },
47 libraries => [qw( SDL )],
48 },
bfb478a Kartik Thakore Now compiling src/Core/Events.XS for SDL::Events
kthakore authored
49 Events => {
50 file => {
51 from => 'src/Core/Events.xs',
52 to => 'lib/SDL/Events.xs',
53 },
54 libraries => [qw( SDL )],
55 },
7a2c406 added event accessors
Tobias Leich authored
56 Event => {
57 file => {
58 from => 'src/Core/objects/Event.xs',
59 to => 'lib/SDL/Event.xs',
60 },
61 libraries => [qw( SDL )],
62 },
e44b38f xs for rotozoom [Ticket #73]
Tobias Leich authored
63 BlitFunc => {
64 file => {
65 from => 'src/GFX/BlitFunc.xs',
66 to => 'lib/SDL/GFX/BlitFunc.xs',
67 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
68 libraries => [qw( SDL SDL_gfx_blitfunc )],
e44b38f xs for rotozoom [Ticket #73]
Tobias Leich authored
69 },
70 Framerate => {
71 file => {
72 from => 'src/GFX/Framerate.xs',
73 to => 'lib/SDL/GFX/Framerate.xs',
74 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
75 libraries => [qw( SDL SDL_gfx_framerate )],
e44b38f xs for rotozoom [Ticket #73]
Tobias Leich authored
76 },
0919311 added FPSManager
Tobias Leich authored
77 FPSManager => {
78 file => {
79 from => 'src/GFX/FPSManager.xs',
80 to => 'lib/SDL/GFX/FPSManager.xs',
81 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
82 libraries => [qw( SDL SDL_gfx_framerate )],
0919311 added FPSManager
Tobias Leich authored
83 },
bf9cf73 +SDL::GFX::ImageFilter
Tobias Leich authored
84 ImageFilter => {
85 file => {
86 from => 'src/GFX/ImageFilter.xs',
87 to => 'lib/SDL/GFX/ImageFilter.xs',
88 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
89 libraries => [qw( SDL SDL_gfx_imagefilter )],
bf9cf73 +SDL::GFX::ImageFilter
Tobias Leich authored
90 },
be0c2a2 started on SDL::GFX::Primitives
Tobias Leich authored
91 Primitives => {
92 file => {
93 from => 'src/GFX/Primitives.xs',
94 to => 'lib/SDL/GFX/Primitives.xs',
95 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
96 libraries => [qw( SDL SDL_gfx_primitives )],
be0c2a2 started on SDL::GFX::Primitives
Tobias Leich authored
97 },
e44b38f xs for rotozoom [Ticket #73]
Tobias Leich authored
98 Rotozoom => {
99 file => {
100 from => 'src/GFX/Rotozoom.xs',
101 to => 'lib/SDL/GFX/Rotozoom.xs',
102 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
103 libraries => [qw( SDL SDL_gfx_rotozoom )],
e44b38f xs for rotozoom [Ticket #73]
Tobias Leich authored
104 },
0a0ec34 Kartik Thakore Added docs, XS , PM and test file stubs for SDL::MultiThread
kthakore authored
105 MultiThread => {
106 file => {
107 from => 'src/Core/MultiThread.xs',
108 to => 'lib/SDL/MultiThread.xs',
109 },
110 libraries => [qw( SDL )],
111 },
95f5be3 Kartik Thakore cleaned up MANIFEST, Added it to .gitignore. Added lib/SDL/Video.pm with...
kthakore authored
112 Video => {
113 file => {
114 from => 'src/Core/Video.xs',
115 to => 'lib/SDL/Video.xs',
116 },
117 libraries => [qw( SDL )],
118 },
80a2e43 Léon Brocard Implement open_audio, pause_audio, close_audio, get_audio_status
acme authored
119 Audio => {
120 file => {
121 from => 'src/Core/Audio.xs',
122 to => 'lib/SDL/Audio.xs',
123 },
124 libraries => [qw( SDL )],
125 },
e4ab5b2 Kartik Thakore Using new Rect with v2.2.2.11. Had to change getClipRect paramters.
kthakore authored
126 Rect => {
127 file => {
f9be87f Kartik Thakore Moved Rect and Color to Core/objects
kthakore authored
128 from => 'src/Core/objects/Rect.xs',
e4ab5b2 Kartik Thakore Using new Rect with v2.2.2.11. Had to change getClipRect paramters.
kthakore authored
129 to => 'lib/SDL/Rect.xs',
130 },
9346cc6 Kartik Thakore Added test for Overlay, updated Build.PL to add Overlay, Also made sure ...
kthakore authored
131 libraries => [qw( SDL )],
e4ab5b2 Kartik Thakore Using new Rect with v2.2.2.11. Had to change getClipRect paramters.
kthakore authored
132 },
3e3f41e Léon Brocard Split out SDL_Color into its own C-level class
acme authored
133 Color => {
134 file => {
f9be87f Kartik Thakore Moved Rect and Color to Core/objects
kthakore authored
135 from => 'src/Core/objects/Color.xs',
3e3f41e Léon Brocard Split out SDL_Color into its own C-level class
acme authored
136 to => 'lib/SDL/Color.xs',
137 },
138 libraries => [qw( SDL )],
139 },
88a46ef Léon Brocard try seperating out surface - not quite working yet
acme authored
140 Surface => {
141 file => {
f32a534 Léon Brocard Move Surface.xs to src/Core/objects/
acme authored
142 from => 'src/Core/objects/Surface.xs',
88a46ef Léon Brocard try seperating out surface - not quite working yet
acme authored
143 to => 'lib/SDL/Surface.xs',
144 },
9346cc6 Kartik Thakore Added test for Overlay, updated Build.PL to add Overlay, Also made sure ...
kthakore authored
145 libraries => [qw( SDL )],
146 },
147 Overlay => {
148 file => {
149 from => 'src/Core/objects/Overlay.xs',
150 to => 'lib/SDL/Overlay.xs',
151 },
152 libraries => [qw( SDL )],
88a46ef Léon Brocard try seperating out surface - not quite working yet
acme authored
153 },
0f35edd Kartik Thakore Cleanup. Added RWops xs,pm, and pod. Added tests to 00-load
kthakore authored
154 RWOps => {
155 file => {
156 from => 'src/Core/objects/RWOps.xs',
157 to => 'lib/SDL/RWOps.xs',
158 },
159 libraries => [qw( SDL )],
160 },
161
50d9130 Léon Brocard Wrap PixelFormat
acme authored
162 PixelFormat => {
163 file => {
164 from => 'src/Core/objects/PixelFormat.xs',
165 to => 'lib/SDL/PixelFormat.xs',
166 },
9346cc6 Kartik Thakore Added test for Overlay, updated Build.PL to add Overlay, Also made sure ...
kthakore authored
167 libraries => [qw( SDL )],
50d9130 Léon Brocard Wrap PixelFormat
acme authored
168 },
afb3d72 Léon Brocard Implement SDL::AudioSpec
acme authored
169 AudioSpec => {
170 file => {
171 from => 'src/Core/objects/AudioSpec.xs',
172 to => 'lib/SDL/AudioSpec.xs',
173 },
174 libraries => [qw( SDL )],
175 },
e512f66 Kartik Thakore Added stubs for AudioCVT
kthakore authored
176 AudioCVT => {
177 file => {
178 from => 'src/Core/objects/AudioCVT.xs',
179 to => 'lib/SDL/AudioCVT.xs',
180 },
181 libraries => [qw( SDL )],
182 },
77f8bd7 added SDL::Mixer::init() for >= 1.2.10
Tobias Leich authored
183 Mixer => {
184 file => {
185 from => 'src/Mixer/Mixer.xs',
186 to => 'lib/SDL/Mixer.xs',
187 },
188 libraries => [qw( SDL SDL_mixer )],
189 },
13cfc95 Kartik Thakore Added test and module for SDL::Mixer::Samples
kthakore authored
190 MixerSamples => {
191 file => {
192 from => 'src/Mixer/Samples.xs',
193 to => 'lib/SDL/Mixer/Samples.xs',
194 },
195 libraries => [qw( SDL SDL_mixer )],
196 },
4870636 Kartik Thakore Added Channels to build and load. Also test loading it
kthakore authored
197 MixerChannels => {
198 file => {
199 from => 'src/Mixer/Channels.xs',
200 to => 'lib/SDL/Mixer/Channels.xs',
201 },
202 libraries => [qw( SDL SDL_mixer )],
203 },
ca8d0be Kartik Thakore XS and loading doen for SDL::Mixer::Groups
kthakore authored
204 MixerGroups => {
205 file => {
206 from => 'src/Mixer/Groups.xs',
207 to => 'lib/SDL/Mixer/Groups.xs',
208 },
209 libraries => [qw( SDL SDL_mixer )],
210 },
089e43d Kartik Thakore Building Music and Effect
kthakore authored
211 MixerMusic => {
212 file => {
213 from => 'src/Mixer/Music.xs',
214 to => 'lib/SDL/Mixer/Music.xs',
215 },
216 libraries => [qw( SDL SDL_mixer )],
217 },
218 MixerEffects => {
219 file => {
220 from => 'src/Mixer/Effects.xs',
221 to => 'lib/SDL/Mixer/Effects.xs',
222 },
223 libraries => [qw( SDL SDL_mixer )],
224 },
225
13cfc95 Kartik Thakore Added test and module for SDL::Mixer::Samples
kthakore authored
226
42bd71c Léon Brocard Implement MixChunk
acme authored
227 MixChunk => {
228 file => {
1f745fc Léon Brocard Rename, move MixChunk and MixMusic to the right place
acme authored
229 from => 'src/Mixer/objects/MixChunk.xs',
230 to => 'lib/SDL/Mixer/MixChunk.xs',
42bd71c Léon Brocard Implement MixChunk
acme authored
231 },
47cda86 Léon Brocard Implement MixMusic
acme authored
232 libraries => [qw( SDL SDL_mixer )],
233 },
234 MixMusic => {
235 file => {
1f745fc Léon Brocard Rename, move MixChunk and MixMusic to the right place
acme authored
236 from => 'src/Mixer/objects/MixMusic.xs',
237 to => 'lib/SDL/Mixer/MixMusic.xs',
47cda86 Léon Brocard Implement MixMusic
acme authored
238 },
239 libraries => [qw( SDL SDL_mixer )],
42bd71c Léon Brocard Implement MixChunk
acme authored
240 },
fca2734 Kartik Thakore Added SDL_Pallete Capability
kthakore authored
241 Palette => {
242 file => {
243 from => 'src/Core/objects/Palette.xs',
244 to => 'lib/SDL/Palette.xs',
245 },
246 libraries => [qw( SDL )],
247 },
f1ad86b Kartik Thakore Added VideoInfo as an object with appropriate docs
kthakore authored
248 VideoInfo => {
249 file => {
250 from => 'src/Core/objects/VideoInfo.xs',
251 to => 'lib/SDL/VideoInfo.xs',
252 },
253 libraries => [qw( SDL )],
254 },
a95ab5c Kartik Thakore Implemented Mouse and Cursor. Need to test
kthakore authored
255 Mouse => {
256 file => {
257 from => 'src/Core/Mouse.xs',
258 to => 'lib/SDL/Mouse.xs',
259 },
260 libraries => [qw( SDL )],
261 },
262 Cursor => {
263 file => {
264 from => 'src/Core/objects/Cursor.xs',
265 to => 'lib/SDL/Cursor.xs',
266 },
267 libraries => [qw( SDL )],
268 },
f104313 Kartik Thakore Added Joystick XS, Added surface tests. Need a joystick to test the rest...
kthakore authored
269 Joystick => {
270 file => {
271 from => 'src/Core/Joystick.xs',
272 to => 'lib/SDL/Joystick.xs',
273 },
274 libraries => [qw( SDL )],
275 },
0ceb978 Kartik Thakore Migrate CD, CDTrack, CDROM. use safemalloc instead of malloc in AudioSpe...
kthakore authored
276 CDROM => {
277 file => {
278 from => 'src/Core/CDROM.xs',
279 to => 'lib/SDL/CDROM.xs',
280 },
281 libraries => [qw( SDL )],
282 },
283 CDTrack => {
284 file => {
285 from => 'src/Core/objects/CDTrack.xs',
286 to => 'lib/SDL/CDTrack.xs',
287 },
288 libraries => [qw( SDL )],
289 },
290 CD => {
291 file => {
292 from => 'src/Core/objects/CD.xs',
293 to => 'lib/SDL/CD.xs',
294 },
295 libraries => [qw( SDL )],
296 },
f1ad86b Kartik Thakore Added VideoInfo as an object with appropriate docs
kthakore authored
297
b41abbd Léon Brocard Wrap TTF_Font with a few calls
acme authored
298 TTF_Font => {
299 file => {
300 from => 'src/TTF/objects/TTF_Font.xs',
301 to => 'lib/SDL/TTF_Font.xs',
302 },
303 libraries => [qw( SDL SDL_ttf )],
304 },
ce88b52 Léon Brocard Wrap SDL_version
acme authored
305 Version => {
306 file => {
307 from => 'src/Core/objects/Version.xs',
308 to => 'lib/SDL/Version.xs',
309 },
310 libraries => [qw( SDL )],
311 },
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
312 OpenGL => {
313 file => {
314 from => 'src/OpenGL.xs',
2a66806 Kartik Thakore Patched kmx's patch from here http://rt.cpan.org/Ticket/Display.html?id=...
kthakore authored
315 to => 'lib/SDL/OpenGL.xs',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
316 },
317 libraries => [qw( SDL GL GLU )],
318 },
319 SFont => {
320 file => {
321 from => 'src/SFont.xs',
2a66806 Kartik Thakore Patched kmx's patch from here http://rt.cpan.org/Ticket/Display.html?id=...
kthakore authored
322 to => 'lib/SDL/SFont.xs',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
323 },
9346cc6 Kartik Thakore Added test for Overlay, updated Build.PL to add Overlay, Also made sure ...
kthakore authored
324 libraries => [qw( SDL SDL_ttf )],
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
325 },
90d6eb1 Kartik Thakore [ticket 70] Stubs
kthakore authored
326 Image => {
327 file => {
cac7de6 Kartik Thakore We only need on XS for image
kthakore authored
328 from => 'src/Image.xs',
90d6eb1 Kartik Thakore [ticket 70] Stubs
kthakore authored
329 to => 'lib/SDL/Image.xs',
330 },
331 libraries => [qw( SDL SDL_image )],
332 },
66c9210 Kartik Thakore Testing load of SDL::Net, TCP, UDP, IPaddress
kthakore authored
333 Net => {
334 file => {
335 from => 'src/Net/Net.xs',
336 to => 'lib/SDL/Net.xs',
337 },
338 libraries => [qw( SDL SDL_net )],
339 },
340 TCP => {
341 file => {
342 from => 'src/Net/TCP.xs',
343 to => 'lib/SDL/Net/TCP.xs',
344 },
345 libraries => [qw( SDL SDL_net )],
346 },
347 UDP => {
348 file => {
349 from => 'src/Net/UDP.xs',
350 to => 'lib/SDL/Net/UDP.xs',
351 },
352 libraries => [qw( SDL SDL_net )],
353 },
354
355 IPaddress => {
356 file => {
357 from => 'src/Net/objects/IPaddress.xs',
358 to => 'lib/SDL/Net/IPaddress.xs',
359 },
360 libraries => [qw( SDL SDL_net )],
361 },
90d6eb1 Kartik Thakore [ticket 70] Stubs
kthakore authored
362
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
363 );
364
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
365 ### external libraries
366 # <library name> = symbolic library name
367 # <define> = value that will be used as -D<value> option when compiling XS code
368 # <header> = header related to the library that will be used for avalability detection
369 # <lib> = value that will be used as -l<value> option when linking XS code
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
370 my %libraries = (
371 SDL => {
372 define => 'HAVE_SDL',
373 header => 'SDL.h',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
374 lib => 'SDL',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
375 },
376 SDL_image => {
377 define => 'HAVE_SDL_IMAGE',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
378 header => 'SDL_image.h',
379 lib => 'SDL_image',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
380 },
381 SDL_mixer => {
382 define => 'HAVE_SDL_MIXER',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
383 header => 'SDL_mixer.h',
384 lib => 'SDL_mixer',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
385 },
386 SDL_net => {
387 define => 'HAVE_SDL_NET',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
388 header => 'SDL_net.h',
389 lib => 'SDL_net',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
390 },
391 SDL_ttf => {
392 define => 'HAVE_SDL_TTF',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
393 header => 'SDL_ttf.h',
394 lib => 'SDL_ttf',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
395 },
396 SDL_gfx => {
397 define => 'HAVE_SDL_GFX',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
398 header => 'SDL_gfxPrimitives.h',
399 lib => 'SDL_gfx',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
400 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
401 SDL_gfx_blitfunc => {
402 define => 'HAVE_SDL_GFX_BLITFUNC',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
403 header => 'SDL_gfxBlitFunc.h',
404 lib => 'SDL_gfx',
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
405 },
406 SDL_gfx_framerate => {
407 define => 'HAVE_SDL_GFX_FRAMERATE',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
408 header => 'SDL_framerate.h',
409 lib => 'SDL_gfx',
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
410 },
411 SDL_gfx_imagefilter => {
412 define => 'HAVE_SDL_GFX_IMAGEFILTER',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
413 header => 'SDL_imageFilter.h',
414 lib => 'SDL_gfx',
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
415 },
416 SDL_gfx_primitives => {
417 define => 'HAVE_SDL_GFX_PRIMITIVES',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
418 header => 'SDL_gfxPrimitives.h',
419 lib => 'SDL_gfx',
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
420 },
421 SDL_gfx_rotozoom => {
422 define => 'HAVE_SDL_GFX_ROTOZOOM',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
423 header => 'SDL_rotozoom.h',
424 lib => 'SDL_gfx',
d73a896 Kartik Thakore Not every version of GFX has BlitFunc, Added a catch for it in Build.PL
kthakore authored
425 },
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
426 png => {
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
427 define => 'HAVE_PNG',
428 header => 'png.h',
429 lib => 'png',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
430 },
431 jpeg => {
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
432 define => 'HAVE_JPEG',
433 header => 'jpeglib.h',
434 lib => 'jpeg',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
435 },
436 smpeg => {
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
437 define => 'HAVE_SMPEG',
438 header => 'smpeg.h',
439 lib => 'smpeg',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
440 },
441 GL => {
442 define => 'HAVE_GL',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
443 header => 'GL/gl.h',
444 lib => 'GL',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
445 },
446 GLU => {
447 define => 'HAVE_GLU',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
448 header => 'GL/glu.h',
449 lib => 'GLU',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
450 },
451 );
452
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
453 ### mangle the compilable files into a format Module::Build can understand
454 my %xs = map { $subsystems{$_}{file}{from} => $subsystems{$_}{file}{to} } keys %subsystems;
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
455
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
456 ### stadard Module::Build stuff
457 my $build = $package->new(
85fcc9e Kartik Thakore Fixed v2.2.0
kthakore authored
458 module_name => 'SDL',
7076f70 Kartik Thakore v2.3_1 release for stupid mistakes
kthakore authored
459 dist_name => 'SDL',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
460 license => 'lgpl',
461 dist_version_from => 'lib/SDL.pm',
c4191b5 Kartik Thakore Build.PL fix
kthakore authored
462 configure_requires =>
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
463 {
c4191b5 Kartik Thakore Build.PL fix
kthakore authored
464 'YAML' => '0.68',
465 'ExtUtils::CBuilder' => '0.260301',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
466 'Alien::SDL' => '0.8.0',
c4191b5 Kartik Thakore Build.PL fix
kthakore authored
467 },
468 build_requires =>
469 {
3d2ac19 Kartik Thakore Test MOre is in Simple
kthakore authored
470 'Test::Simple' => '0.88',
40ccf32 Kartik Thakore For the last time negative test for failing soundcards
kthakore authored
471 'IO::CaptureOutput' => '0',
0697d1d Kartik Thakore Fixed use_ok bug for t/core_events.t. Made 00-load.t test for loading mo...
kthakore authored
472 'Test::Most' => '0.21',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
473 'Alien::SDL' => '0.8.0',
bf87e76 Kartik Thakore Updated SDL::App docs
kthakore authored
474 },
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
475 build_recommends =>
476 {
eb33e5f Kartik Thakore Added more info
kthakore authored
477 'Pod::ToDemo' => '0.20'
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
478 },
85fcc9e Kartik Thakore Fixed v2.2.0
kthakore authored
479 c_source => 'src',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
480 xs_files => \%xs,
fc3f64f Kartik Thakore Added no_index for files in make here is the bug https://rt.cpan.org/Tic...
kthakore authored
481 meta_add =>
482 {
483 },
2111676 Kartik Thakore Cannot have a 2mb image in this distro
kthakore authored
484 dist_abstract => 'SDL bindings to Perl',
485 dist_author => 'Kartik Thakore <KTHAKORE@cpan.org>',
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
486 );
487
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
488 ### see which subsystems can be built -- do we have headers for them?
489 print "Gonna autodetect available libraries ...\n";
490 my $build_systems = $build->find_subsystems( \%subsystems, \%libraries );
f466624 Kartik Thakore Added darwin build to Build.PL, fixed configure requires
kthakore authored
491
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
492 ### save info about available subsystems for future SDL::ConfigData
493 print "Gonna write config_data ...\n";
494 $build->config_data('SDL_cfg', $build_systems );
eb33e5f Kartik Thakore Added more info
kthakore authored
495
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
496 ### something that was originally special to MacOS/Darwin
497 # somebody MacOS/Darwin friendly should review whether it is still necessary
498 # xxx TODO xxx
499 $build->special_build_settings();
500
501 ### get some info into M::B notes
502 print "Gonna save some info to 'notes' ...\n";
503 $build->notes('subsystems', \%subsystems);
504 $build->notes('libraries', \%libraries);
505 $build->notes('build_systems', $build_systems);
506 $build->notes('sdl_cflags', Alien::SDL->config('cflags'));
507 $build->notes('sdl_libs', Alien::SDL->config('libs'));
508 $build->set_build_opts(); # creates notes('defines') and notes('links')
509 $build->set_file_flags(); # creates notes('file_flags')
4e5315f Daniel Ruoso now the audio callback runs in a different ithread, which is initialized...
ruoso authored
510
8fde61e Kartik Thakore First commit of SDL_Perl-2.1.3
kthakore authored
511 # now we're ready to go!
512 $build->create_build_script();
Something went wrong with that request. Please try again.