Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 667 lines (647 sloc) 15.6 kB
85fcc9e @kthakore Fixed v2.2.0
kthakore authored
1 #! perl -w
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
2 #
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
3 # Copyright (C) 2003 chromatic
85fcc9e @kthakore Fixed v2.2.0
kthakore authored
4 # Copyright (C) 2004 David J. Goehrig
dd33fb6 @kthakore Admit it! You break back compat. Bad boy
kthakore authored
5 # Copyright (C) 2010 Kartik Thakore
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
6
7 use strict;
084b921 @kthakore Brought all packages under eye of strict, warnings and love of Carp, For
kthakore authored
8 use warnings;
9 use Carp;
8fde61e @kthakore 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 @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
13
d512b50 @kthakore We are the borg, We have no feelings for your measly back_compat. Res…
kthakore authored
14 print STDERR <<BROKENMSG;
dd33fb6 @kthakore Admit it! You break back compat. Bad boy
kthakore authored
15 *************************** !!!WARNING!!! ********************************
928cc89 @kthakore Updated Deps on Alien::SDL
kthakore authored
16 This Release breaks back compatibility support with versions 2.4x and below
dd33fb6 @kthakore Admit it! You break back compat. Bad boy
kthakore authored
17 **************************************************************************
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
18 BROKENMSG
49ee715 @kthakore Added windows message for help
kthakore authored
19
171a4d3 @adamkennedy Removed superfluous warning. Also brought in the capitalisation and s…
adamkennedy authored
20 ### We need the platform-specific module
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
21 my %platforms = (
36a0ca5 @kthakore Tidied the code
kthakore authored
22 MSWin32 => 'Windows',
23 MacOS => 'Darwin',
24 darwin => 'Darwin',
25 cygwin => 'Unix',
26 freebsd => 'Unix',
27 gnukfreebsd => 'Unix',
28 linux => 'Unix',
29 netbsd => 'Unix',
30 openbsd => 'Unix',
31 solaris => 'Unix',
b10581a Redesign towards new Alien::SDL (part 2)
unknown authored
32 );
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
33 my $package = 'My::Builder::' . ( $platforms{$^O} || 'Unix' );
baf0191 @adamkennedy Missed a "Gonna"
adamkennedy authored
34 print "Using '$package' class ...\n";
dba96c0 fixed namespace for Carp::cluck
Tobias Leich authored
35 eval "require $package" or Carp::confess "Require '$package' failed: $@\n";
69141f7 @kthakore BSD set to experimental
kthakore authored
36
171a4d3 @adamkennedy Removed superfluous warning. Also brought in the capitalisation and s…
adamkennedy authored
37 ### Subsystems to build
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
38 # <subsystem>
39 # <file> = hash of the following 2 values:
171a4d3 @adamkennedy Removed superfluous warning. Also brought in the capitalisation and s…
adamkennedy authored
40 # <from> = location of source file
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
41 # <to> = location of build file to get name right
42 # <libraries> = list reqiured libraries, names the same as keys to hash %libraries
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
43 my %subsystems = (
36a0ca5 @kthakore Tidied the code
kthakore authored
44 SDL => {
45 file => {
46 from => 'src/SDL.xs',
47 to => 'lib/SDL_perl.xs',
48 },
49 libraries => [qw( SDL )],
50 },
51 Time => {
52 file => {
53 from => 'src/Core/Time.xs',
54 to => 'lib/SDL/Time.xs',
55 },
56 libraries => [qw( SDL )],
57 },
58 Events => {
59 file => {
60 from => 'src/Core/Events.xs',
61 to => 'lib/SDL/Events.xs',
62 },
63 libraries => [qw( SDL )],
64 },
65 Event => {
66 file => {
67 from => 'src/Core/objects/Event.xs',
68 to => 'lib/SDL/Event.xs',
69 },
70 libraries => [qw( SDL )],
71 },
72 GFX => {
73 file => {
74 from => 'src/GFX/GFX.xs',
75 to => 'lib/SDL/GFX.xs',
76 },
77 libraries => [qw( SDL SDL_gfx_primitives )],
78 },
79 BlitFunc => {
80 file => {
81 from => 'src/GFX/BlitFunc.xs',
82 to => 'lib/SDL/GFX/BlitFunc.xs',
83 },
84 libraries => [qw( SDL SDL_gfx_blitfunc )],
85 },
86 Framerate => {
87 file => {
88 from => 'src/GFX/Framerate.xs',
89 to => 'lib/SDL/GFX/Framerate.xs',
90 },
91 libraries => [qw( SDL SDL_gfx_framerate )],
92 },
93 FPSManager => {
94 file => {
95 from => 'src/GFX/FPSManager.xs',
96 to => 'lib/SDL/GFX/FPSManager.xs',
97 },
98 libraries => [qw( SDL SDL_gfx_framerate )],
99 },
100 ImageFilter => {
101 file => {
102 from => 'src/GFX/ImageFilter.xs',
103 to => 'lib/SDL/GFX/ImageFilter.xs',
104 },
105 libraries => [qw( SDL SDL_gfx_imagefilter )],
106 },
107 Primitives => {
108 file => {
109 from => 'src/GFX/Primitives.xs',
110 to => 'lib/SDL/GFX/Primitives.xs',
111 },
112 libraries => [qw( SDL SDL_gfx_primitives )],
113 },
114 Rotozoom => {
115 file => {
116 from => 'src/GFX/Rotozoom.xs',
117 to => 'lib/SDL/GFX/Rotozoom.xs',
118 },
119 libraries => [qw( SDL SDL_gfx_rotozoom )],
120 },
121 MultiThread => {
122 file => {
123 from => 'src/Core/MultiThread.xs',
124 to => 'lib/SDL/MultiThread.xs',
125 },
126 libraries => [qw( SDL )],
127 },
128 Video => {
129 file => {
130 from => 'src/Core/Video.xs',
131 to => 'lib/SDL/Video.xs',
132 },
133 libraries => [qw( SDL )],
134 },
135 Audio => {
136 file => {
137 from => 'src/Core/Audio.xs',
138 to => 'lib/SDL/Audio.xs',
139 },
140 libraries => [qw( SDL )],
141 },
142 Rect => {
143 file => {
144 from => 'src/Core/objects/Rect.xs',
145 to => 'lib/SDL/Rect.xs',
146 },
147 libraries => [qw( SDL )],
148 },
149 Color => {
150 file => {
151 from => 'src/Core/objects/Color.xs',
152 to => 'lib/SDL/Color.xs',
153 },
154 libraries => [qw( SDL )],
155 },
156 Surface => {
157 file => {
158 from => 'src/Core/objects/Surface.xs',
159 to => 'lib/SDL/Surface.xs',
160 },
161 libraries => [qw( SDL )],
162 },
163 SurfaceX => {
164 file => {
165 from => 'src/SDLx/Surface.xs',
166 to => 'lib/SDLx/Surface.xs',
167 },
e26d051 implemented SDLx::Surface::draw_polygone, linking SDL_gfx to SDLx::Su…
Tobias Leich authored
168 libraries => [qw( SDL SDL_gfx_primitives )],
36a0ca5 @kthakore Tidied the code
kthakore authored
169 },
170 TimerX => {
171 file => {
172 from => 'src/SDLx/Timer.xs',
173 to => 'lib/SDLx/Controller/Timer.xs',
174 },
175 libraries => [qw( SDL )],
176 },
e83adc0 @kthakore Made SDLx::Validate::_color_number() ... 1 failing test in t/sdlx_val…
kthakore authored
177 ValidateX => {
178 file => {
179 from => 'src/SDLx/Validate.xs',
180 to => 'lib/SDLx/Validate.xs',
181 },
182 libraries => [qw( SDL )],
183 },
5322259 @kthakore Renamed SDLx::Controller::Object to Interface
kthakore authored
184 InterfaceX => {
36a0ca5 @kthakore Tidied the code
kthakore authored
185 file => {
5322259 @kthakore Renamed SDLx::Controller::Object to Interface
kthakore authored
186 from => 'src/SDLx/Controller/Interface.xs',
187 to => 'lib/SDLx/Controller/Interface.xs',
36a0ca5 @kthakore Tidied the code
kthakore authored
188 },
189 libraries => [qw( SDL )],
190 },
191 StateX => {
192 file => {
193 from => 'src/SDLx/Controller/State.xs',
194 to => 'lib/SDLx/Controller/State.xs',
195 },
196 libraries => [qw( SDL )],
197 },
198 Overlay => {
199 file => {
200 from => 'src/Core/objects/Overlay.xs',
201 to => 'lib/SDL/Overlay.xs',
202 },
203 libraries => [qw( SDL )],
204 },
205 RWOps => {
206 file => {
207 from => 'src/Core/objects/RWOps.xs',
208 to => 'lib/SDL/RWOps.xs',
209 },
210 libraries => [qw( SDL )],
211 },
212 PixelFormat => {
213 file => {
214 from => 'src/Core/objects/PixelFormat.xs',
215 to => 'lib/SDL/PixelFormat.xs',
216 },
217 libraries => [qw( SDL )],
218 },
219 LayerManagerX => {
220 file => {
221 from => 'src/SDLx/LayerManager.xs',
222 to => 'lib/SDLx/LayerManager.xs',
223 },
224 libraries => [qw( SDL )],
225 },
226 LayerX => {
227 file => {
228 from => 'src/SDLx/Layer.xs',
229 to => 'lib/SDLx/Layer.xs',
230 },
231 libraries => [qw( SDL SDL_image )],
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
232 load_libs => [qw( png jpeg tiff )],
36a0ca5 @kthakore Tidied the code
kthakore authored
233 },
234 AudioSpec => {
235 file => {
236 from => 'src/Core/objects/AudioSpec.xs',
237 to => 'lib/SDL/AudioSpec.xs',
238 },
239 libraries => [qw( SDL )],
240 },
241 AudioCVT => {
242 file => {
243 from => 'src/Core/objects/AudioCVT.xs',
244 to => 'lib/SDL/AudioCVT.xs',
245 },
246 libraries => [qw( SDL )],
247 },
248 Mixer => {
249 file => {
250 from => 'src/Mixer/Mixer.xs',
251 to => 'lib/SDL/Mixer.xs',
252 },
d30b433 @jtpalmer Tidied code
jtpalmer authored
253 libraries => [qw( SDL SDL_mixer )],
254 load_libs => [qw( vorbisfile flac mikmod smpeg )],
36a0ca5 @kthakore Tidied the code
kthakore authored
255 },
256 MixerSamples => {
257 file => {
258 from => 'src/Mixer/Samples.xs',
259 to => 'lib/SDL/Mixer/Samples.xs',
260 },
261 libraries => [qw( SDL SDL_mixer )],
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
262 load_libs => [qw( vorbisfile flac mikmod smpeg )],
36a0ca5 @kthakore Tidied the code
kthakore authored
263 },
264 MixerChannels => {
265 file => {
266 from => 'src/Mixer/Channels.xs',
267 to => 'lib/SDL/Mixer/Channels.xs',
268 },
269 libraries => [qw( SDL SDL_mixer )],
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
270 load_libs => [qw( vorbisfile flac mikmod smpeg )],
36a0ca5 @kthakore Tidied the code
kthakore authored
271 },
272 MixerGroups => {
273 file => {
274 from => 'src/Mixer/Groups.xs',
275 to => 'lib/SDL/Mixer/Groups.xs',
276 },
277 libraries => [qw( SDL SDL_mixer )],
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
278 load_libs => [qw( vorbisfile flac mikmod smpeg )],
36a0ca5 @kthakore Tidied the code
kthakore authored
279 },
280 MixerMusic => {
281 file => {
282 from => 'src/Mixer/Music.xs',
283 to => 'lib/SDL/Mixer/Music.xs',
284 },
285 libraries => [qw( SDL SDL_mixer )],
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
286 load_libs => [qw( vorbisfile flac mikmod smpeg )],
36a0ca5 @kthakore Tidied the code
kthakore authored
287 },
288 MixerEffects => {
289 file => {
290 from => 'src/Mixer/Effects.xs',
291 to => 'lib/SDL/Mixer/Effects.xs',
292 },
293 libraries => [qw( SDL SDL_mixer )],
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
294 load_libs => [qw( vorbisfile flac mikmod smpeg )],
36a0ca5 @kthakore Tidied the code
kthakore authored
295 },
296 MixChunk => {
297 file => {
298 from => 'src/Mixer/objects/MixChunk.xs',
299 to => 'lib/SDL/Mixer/MixChunk.xs',
300 },
301 libraries => [qw( SDL SDL_mixer )],
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
302 load_libs => [qw( vorbisfile flac mikmod smpeg )],
36a0ca5 @kthakore Tidied the code
kthakore authored
303 },
304 MixMusic => {
305 file => {
306 from => 'src/Mixer/objects/MixMusic.xs',
307 to => 'lib/SDL/Mixer/MixMusic.xs',
308 },
309 libraries => [qw( SDL SDL_mixer )],
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
310 load_libs => [qw( vorbisfile flac mikmod smpeg )],
36a0ca5 @kthakore Tidied the code
kthakore authored
311 },
312 Palette => {
313 file => {
314 from => 'src/Core/objects/Palette.xs',
315 to => 'lib/SDL/Palette.xs',
316 },
317 libraries => [qw( SDL )],
318 },
319 VideoInfo => {
320 file => {
321 from => 'src/Core/objects/VideoInfo.xs',
322 to => 'lib/SDL/VideoInfo.xs',
323 },
324 libraries => [qw( SDL )],
325 },
326 Mouse => {
327 file => {
328 from => 'src/Core/Mouse.xs',
329 to => 'lib/SDL/Mouse.xs',
330 },
331 libraries => [qw( SDL )],
332 },
333 Cursor => {
334 file => {
335 from => 'src/Core/objects/Cursor.xs',
336 to => 'lib/SDL/Cursor.xs',
337 },
338 libraries => [qw( SDL )],
339 },
340 Joystick => {
341 file => {
342 from => 'src/Core/Joystick.xs',
343 to => 'lib/SDL/Joystick.xs',
344 },
345 libraries => [qw( SDL )],
346 },
347 CDROM => {
348 file => {
349 from => 'src/Core/CDROM.xs',
350 to => 'lib/SDL/CDROM.xs',
351 },
352 libraries => [qw( SDL )],
353 },
354 CDTrack => {
355 file => {
356 from => 'src/Core/objects/CDTrack.xs',
357 to => 'lib/SDL/CDTrack.xs',
358 },
359 libraries => [qw( SDL )],
360 },
361 CD => {
362 file => {
363 from => 'src/Core/objects/CD.xs',
364 to => 'lib/SDL/CD.xs',
365 },
366 libraries => [qw( SDL )],
367 },
368 TTF => {
369 file => {
370 from => 'src/TTF/TTF.xs',
371 to => 'lib/SDL/TTF.xs',
372 },
373 libraries => [qw( SDL SDL_ttf )],
374 },
375 TTF_Font => {
376 file => {
377 from => 'src/TTF/objects/Font.xs',
378 to => 'lib/SDL/TTF/Font.xs',
379 },
380 libraries => [qw( SDL SDL_ttf )],
381 },
382 Version => {
383 file => {
384 from => 'src/Core/objects/Version.xs',
385 to => 'lib/SDL/Version.xs',
386 },
387 libraries => [qw( SDL )],
388 },
389 Image => {
390 file => {
391 from => 'src/Image.xs',
392 to => 'lib/SDL/Image.xs',
393 },
394 libraries => [qw( SDL SDL_image )],
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
395 load_libs => [qw( png jpeg tiff )],
36a0ca5 @kthakore Tidied the code
kthakore authored
396 },
397 SFont => {
398 file => {
399 from => 'src/SDLx/SFont.xs',
400 to => 'lib/SDLx/SFont.xs',
401 },
402 libraries => [qw( SDL SDL_image )],
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
403 load_libs => [qw( png jpeg tiff )],
36a0ca5 @kthakore Tidied the code
kthakore authored
404 },
05989be @kthakore Perltidy
kthakore authored
405
d30b433 @jtpalmer Tidied code
jtpalmer authored
406 # SMPEG => {
407 # file => {
408 # from => 'src/SMPEG.xs',
409 # to => 'lib/SDL/SMPEG.xs',
410 # },
411 # libraries => [qw( SDL smpeg)],
412 # },
413 # MPEG => {
414 # file => {
415 # from => 'src/SMPEG/Info.xs',
416 # to => 'lib/SDL/SMPEG/Info.xs',
417 # },
418 # libraries => [qw( SDL smpeg)],
419 # },
36a0ca5 @kthakore Tidied the code
kthakore authored
420 Pango => {
421 file => {
422 from => 'src/Pango/Pango.xs',
423 to => 'lib/SDL/Pango.xs',
424 },
425 libraries => [qw( SDL SDL_Pango )],
426 },
427 Context => {
428 file => {
429 from => 'src/Pango/objects/Context.xs',
430 to => 'lib/SDL/Pango/Context.xs',
431 },
432 libraries => [qw( SDL SDL_Pango )],
433 },
fdf9930 @kthakore Added SDLx::SFont
kthakore authored
434
36a0ca5 @kthakore Tidied the code
kthakore authored
435 # Net => {
436 # file => {
437 # from => 'src/Net/Net.xs',
438 # to => 'lib/SDL/Net.xs',
439 # },
440 # libraries => [qw( SDL SDL_net )],
441 # },
442 # TCP => {
443 # file => {
444 # from => 'src/Net/TCP.xs',
445 # to => 'lib/SDL/Net/TCP.xs',
446 # },
447 # libraries => [qw( SDL SDL_net )],
448 # },
449 # UDP => {
450 # file => {
451 # from => 'src/Net/UDP.xs',
452 # to => 'lib/SDL/Net/UDP.xs',
453 # },
454 # libraries => [qw( SDL SDL_net )],
455 # },
456 # IPaddress => {
457 # file => {
458 # from => 'src/Net/objects/IPaddress.xs',
459 # to => 'lib/SDL/Net/IPaddress.xs',
460 # },
461 # libraries => [qw( SDL SDL_net )],
462 # },
90d6eb1 @kthakore [ticket 70] Stubs
kthakore authored
463
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
464 );
465
171a4d3 @adamkennedy Removed superfluous warning. Also brought in the capitalisation and s…
adamkennedy authored
466 ### External libraries
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
467 # <library name> = symbolic library name
468 # <define> = value that will be used as -D<value> option when compiling XS code
1dae658 @kmx Builder enhancements - proper disabling SDL submodules based on detec…
kmx authored
469 # <header> = header related to the library that will be used for avalability detection,
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
470 # could be a sigle value or an array of values
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
471 # <lib> = value that will be used as -l<value> option when linking XS code
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
472 my %libraries = (
36a0ca5 @kthakore Tidied the code
kthakore authored
473 SDL => {
474 define => 'HAVE_SDL',
475 header => 'SDL.h',
476 lib => 'SDL',
477 },
478 SDL_image => {
479 define => 'HAVE_SDL_IMAGE',
480 header => 'SDL_image.h',
481 lib => 'SDL_image',
482 },
483 SDL_mixer => {
484 define => 'HAVE_SDL_MIXER',
485 header => 'SDL_mixer.h',
486 lib => 'SDL_mixer',
487 },
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
488
36a0ca5 @kthakore Tidied the code
kthakore authored
489 # SDL_net => {
490 # define => 'HAVE_SDL_NET',
491 # header => 'SDL_net.h',
492 # lib => 'SDL_net',
493 # },
494 SDL_ttf => {
495 define => 'HAVE_SDL_TTF',
496 header => 'SDL_ttf.h',
497 lib => 'SDL_ttf',
498 },
499 SDL_gfx => {
500 define => 'HAVE_SDL_GFX',
501 header => 'SDL_gfxPrimitives.h',
502 lib => 'SDL_gfx',
503 },
504 SDL_gfx_blitfunc => {
505 define => 'HAVE_SDL_GFX_BLITFUNC',
506 header => 'SDL_gfxBlitFunc.h',
507 lib => 'SDL_gfx',
508 },
509 SDL_gfx_framerate => {
510 define => 'HAVE_SDL_GFX_FRAMERATE',
511 header => 'SDL_framerate.h',
512 lib => 'SDL_gfx',
513 },
514 SDL_gfx_imagefilter => {
515 define => 'HAVE_SDL_GFX_IMAGEFILTER',
516 header => 'SDL_imageFilter.h',
517 lib => 'SDL_gfx',
518 },
519 SDL_gfx_primitives => {
520 define => 'HAVE_SDL_GFX_PRIMITIVES',
521 header => 'SDL_gfxPrimitives.h',
522 lib => 'SDL_gfx',
523 },
524 SDL_gfx_rotozoom => {
525 define => 'HAVE_SDL_GFX_ROTOZOOM',
526 header => 'SDL_rotozoom.h',
527 lib => 'SDL_gfx',
528 },
529 SDL_Pango => {
530 define => 'HAVE_SDL_PANGO',
531 header => 'SDL_Pango.h',
532 lib => 'SDL_Pango',
533 },
534 png => {
535 define => 'HAVE_PNG',
536 header => 'png.h',
537 lib => 'png',
538 },
539 jpeg => {
540 define => 'HAVE_JPEG',
541 header => 'jpeglib.h',
542 lib => 'jpeg',
543 },
544 tiff => {
545 define => 'HAVE_TIFF',
546 header => 'tiff.h',
547 lib => 'tiff',
548 },
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
549 vorbisfile => {
d30b433 @jtpalmer Tidied code
jtpalmer authored
550 lib => 'vorbisfile',
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
551 },
552 flac => {
d30b433 @jtpalmer Tidied code
jtpalmer authored
553 lib => 'FLAC',
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
554 },
555 mikmod => {
d30b433 @jtpalmer Tidied code
jtpalmer authored
556 lib => 'mikmod',
686ccba @FROGGS added load_libs for SDL_image and SDL_mixer
FROGGS authored
557 },
36a0ca5 @kthakore Tidied the code
kthakore authored
558 smpeg => {
559 define => 'HAVE_SMPEG',
560 header => 'smpeg/smpeg.h',
561 lib => 'smpeg',
562 },
563 GL => {
564 define => 'HAVE_GL',
565 header => [ 'GL/gl.h', 'GL/glext.h' ],
566 lib => ( $^O =~ /^(MSWin32|cygwin)$/ )
567 ? 'opengl32'
568 : 'GL', # xxx not nice
569 },
570 GLU => {
571 define => 'HAVE_GLU',
572 header => 'GL/glu.h',
573 lib => ( $^O =~ /^(MSWin32|cygwin)$/ ) ? 'glu32' : 'GLU', # xxx not nice
574 },
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
575 );
576
171a4d3 @adamkennedy Removed superfluous warning. Also brought in the capitalisation and s…
adamkennedy authored
577 ### Mangle the compilable files into a format Module::Build can understand
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
578 my %xs =
36a0ca5 @kthakore Tidied the code
kthakore authored
579 map { $subsystems{$_}{file}{from} => $subsystems{$_}{file}{to} }
580 keys %subsystems;
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
581
171a4d3 @adamkennedy Removed superfluous warning. Also brought in the capitalisation and s…
adamkennedy authored
582 ### Standard Module::Build stuff
d30b433 @jtpalmer Tidied code
jtpalmer authored
583 $My::Builder::config = $My::Builder::config; # Prevent a warning
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
584 my $build = $package->new(
36a0ca5 @kthakore Tidied the code
kthakore authored
585 module_name => 'SDL',
586 dist_name => 'SDL',
587 license => 'lgpl',
588 dist_version_from => 'lib/SDL.pm',
589 configure_requires => {
731546e @jtpalmer Add Module::Build as a configure requirement
jtpalmer authored
590 'Module::Build' => '0',
36a0ca5 @kthakore Tidied the code
kthakore authored
591 'ExtUtils::CBuilder' => '0.260301',
d5cb28e @jtpalmer Updated Alien::SDL requirement to 1.437_2
jtpalmer authored
592 'Alien::SDL' => '1.437_2',
36a0ca5 @kthakore Tidied the code
kthakore authored
593 'File::Find' => '0',
e74beea @garu SDLx::Text now shipping with default font
garu authored
594 'File::ShareDir' => '1.0',
36a0ca5 @kthakore Tidied the code
kthakore authored
595 'Tie::Simple' => '0',
529d9f7 @kthakore Instead of croaking set hard limits to surface boundaries
kthakore authored
596 'Capture::Tiny' => '0',
36a0ca5 @kthakore Tidied the code
kthakore authored
597 },
598 build_requires => {
d30b433 @jtpalmer Tidied code
jtpalmer authored
599 'Test::Simple' => '0.88',
600 'Capture::Tiny' => '0',
601 'Test::Most' => '0.21',
d5cb28e @jtpalmer Updated Alien::SDL requirement to 1.437_2
jtpalmer authored
602 'Alien::SDL' => '1.437_2',
d30b433 @jtpalmer Tidied code
jtpalmer authored
603 'File::Find' => '0',
604 'File::ShareDir' => '1.0',
605 'Tie::Simple' => '0',
606 'Scalar::Util' => '0',
36a0ca5 @kthakore Tidied the code
kthakore authored
607 },
608 requires => {
7b10938 @garu adding Scalar::Util as requirement, just to be safe
garu authored
609 'Scalar::Util' => '0',
e74beea @garu SDLx::Text now shipping with default font
garu authored
610 'Tie::Simple' => '0',
611 'File::ShareDir' => '1.0',
612 'CPAN' => '1.92',
af8639d @FROGGS perl 5.8.0 should be good enough for SDL
FROGGS authored
613 'perl' => '5.008000',
36a0ca5 @kthakore Tidied the code
kthakore authored
614 },
e74beea @garu SDLx::Text now shipping with default font
garu authored
615 share_dir => 'share',
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
616
36a0ca5 @kthakore Tidied the code
kthakore authored
617 build_recommends => {
e74beea @garu SDLx::Text now shipping with default font
garu authored
618 'Pod::ToDemo' => '0.20',
36a0ca5 @kthakore Tidied the code
kthakore authored
619 },
d30b433 @jtpalmer Tidied code
jtpalmer authored
620 config => $My::Builder::config,
621 c_source => 'src',
622 xs_files => \%xs,
623 meta_add => {},
668feb2 @kthakore We install our typemap now
kthakore authored
624 typemap_files => { 'typemap' => 'lib/SDL/typemap' },
5e9f0a3 @kthakore Added ShareDir as a dependency for failing test. Fixes http://cpanidx…
kthakore authored
625
36a0ca5 @kthakore Tidied the code
kthakore authored
626 #create_readme => 1, ### make sense only if there is some POD doc in the file specified by dist_version_from
627 meta_merge => {
628 resources => {
74afda1 @jtpalmer fixed bugtracker link
jtpalmer authored
629 bugtracker => 'http://github.com/PerlGameDev/SDL/issues',
36a0ca5 @kthakore Tidied the code
kthakore authored
630 repository => 'http://github.com/PerlGameDev/SDL'
631 }
632 },
633 dist_abstract => 'SDL bindings to Perl',
634 dist_author => 'Kartik Thakore <KTHAKORE@cpan.org>',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
635 );
636
1dae658 @kmx Builder enhancements - proper disabling SDL submodules based on detec…
kmx authored
637 ### Alien::SDL quick check
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
638 warn "###WARNING### Alien::SDL seems to be broken"
36a0ca5 @kthakore Tidied the code
kthakore authored
639 unless Alien::SDL->config('prefix');
1dae658 @kmx Builder enhancements - proper disabling SDL submodules based on detec…
kmx authored
640
171a4d3 @adamkennedy Removed superfluous warning. Also brought in the capitalisation and s…
adamkennedy authored
641 ### See which subsystems can be built -- do we have headers for them?
baf0191 @adamkennedy Missed a "Gonna"
adamkennedy authored
642 print "Detecting available libraries ...\n";
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
643 my $build_systems = $build->find_subsystems( \%subsystems, \%libraries );
644 my $lib_translate = $build->translate_table( \%subsystems, \%libraries );
f466624 @kthakore Added darwin build to Build.PL, fixed configure requires
kthakore authored
645
171a4d3 @adamkennedy Removed superfluous warning. Also brought in the capitalisation and s…
adamkennedy authored
646 ### Save info about available subsystems for future SDL::ConfigData
baf0191 @adamkennedy Missed a "Gonna"
adamkennedy authored
647 print "Writing config_data ...\n";
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
648 $build->config_data( 'SDL_cfg', $build_systems );
649 $build->config_data( 'SDL_lib_translate', $lib_translate );
650 $build->config_data( 'subsystems', \%subsystems );
651 $build->config_data( 'libraries', \%libraries );
eb33e5f @kthakore Added more info
kthakore authored
652
171a4d3 @adamkennedy Removed superfluous warning. Also brought in the capitalisation and s…
adamkennedy authored
653 ### Something that was originally special to MacOS/Darwin
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
654 # somebody MacOS/Darwin friendly should review whether it is still necessary
655 $build->special_build_settings();
656
171a4d3 @adamkennedy Removed superfluous warning. Also brought in the capitalisation and s…
adamkennedy authored
657 ### Get some info into M::B notes
baf0191 @adamkennedy Missed a "Gonna"
adamkennedy authored
658 print "Saving some info to 'notes' ...\n";
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
659 $build->notes( 'subsystems', \%subsystems );
660 $build->notes( 'libraries', \%libraries );
661 $build->notes( 'build_systems', $build_systems );
662 $build->notes( 'sdl_cflags', Alien::SDL->config('cflags') );
663 $build->notes( 'sdl_libs', Alien::SDL->config('libs') );
36a0ca5 @kthakore Tidied the code
kthakore authored
664 $build->set_file_flags(); # creates notes('file_flags')
668feb2 @kthakore We install our typemap now
kthakore authored
665 $build->add_build_element('typemap');
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
666 $build->create_build_script();
Something went wrong with that request. Please try again.