Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 643 lines (615 sloc) 14.766 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
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown 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' );
b10581a Redesign towards new Alien::SDL (part 2)
unknown authored
34 print "Gonna use '$package' class ...\n";
35 eval "require $package" or croak "Require '$package' failed: $@\n";
69141f7 @kthakore BSD set to experimental
kthakore authored
36
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
37 ### subsystems to build
38 # <subsystem>
39 # <file> = hash of the following 2 values:
40 # <from> = location of source file
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 },
168 libraries => [qw( SDL )],
169 },
170 TimerX => {
171 file => {
172 from => 'src/SDLx/Timer.xs',
173 to => 'lib/SDLx/Controller/Timer.xs',
174 },
175 libraries => [qw( SDL )],
176 },
177 ObjectX => {
178 file => {
179 from => 'src/SDLx/Controller/Object.xs',
180 to => 'lib/SDLx/Controller/Object.xs',
181 },
182 libraries => [qw( SDL )],
183 },
184 StateX => {
185 file => {
186 from => 'src/SDLx/Controller/State.xs',
187 to => 'lib/SDLx/Controller/State.xs',
188 },
189 libraries => [qw( SDL )],
190 },
191 Overlay => {
192 file => {
193 from => 'src/Core/objects/Overlay.xs',
194 to => 'lib/SDL/Overlay.xs',
195 },
196 libraries => [qw( SDL )],
197 },
198 RWOps => {
199 file => {
200 from => 'src/Core/objects/RWOps.xs',
201 to => 'lib/SDL/RWOps.xs',
202 },
203 libraries => [qw( SDL )],
204 },
205 PixelFormat => {
206 file => {
207 from => 'src/Core/objects/PixelFormat.xs',
208 to => 'lib/SDL/PixelFormat.xs',
209 },
210 libraries => [qw( SDL )],
211 },
212 LayerManagerX => {
213 file => {
214 from => 'src/SDLx/LayerManager.xs',
215 to => 'lib/SDLx/LayerManager.xs',
216 },
217 libraries => [qw( SDL )],
218 },
219 LayerX => {
220 file => {
221 from => 'src/SDLx/Layer.xs',
222 to => 'lib/SDLx/Layer.xs',
223 },
224 libraries => [qw( SDL SDL_image )],
225 },
226 AudioSpec => {
227 file => {
228 from => 'src/Core/objects/AudioSpec.xs',
229 to => 'lib/SDL/AudioSpec.xs',
230 },
231 libraries => [qw( SDL )],
232 },
233 AudioCVT => {
234 file => {
235 from => 'src/Core/objects/AudioCVT.xs',
236 to => 'lib/SDL/AudioCVT.xs',
237 },
238 libraries => [qw( SDL )],
239 },
240 Mixer => {
241 file => {
242 from => 'src/Mixer/Mixer.xs',
243 to => 'lib/SDL/Mixer.xs',
244 },
245 libraries => [qw( SDL SDL_mixer )],
246 },
247 MixerSamples => {
248 file => {
249 from => 'src/Mixer/Samples.xs',
250 to => 'lib/SDL/Mixer/Samples.xs',
251 },
252 libraries => [qw( SDL SDL_mixer )],
253 },
254 MixerChannels => {
255 file => {
256 from => 'src/Mixer/Channels.xs',
257 to => 'lib/SDL/Mixer/Channels.xs',
258 },
259 libraries => [qw( SDL SDL_mixer )],
260 },
261 MixerGroups => {
262 file => {
263 from => 'src/Mixer/Groups.xs',
264 to => 'lib/SDL/Mixer/Groups.xs',
265 },
266 libraries => [qw( SDL SDL_mixer )],
267 },
268 MixerMusic => {
269 file => {
270 from => 'src/Mixer/Music.xs',
271 to => 'lib/SDL/Mixer/Music.xs',
272 },
273 libraries => [qw( SDL SDL_mixer )],
274 },
275 MixerEffects => {
276 file => {
277 from => 'src/Mixer/Effects.xs',
278 to => 'lib/SDL/Mixer/Effects.xs',
279 },
280 libraries => [qw( SDL SDL_mixer )],
281 },
282 MixChunk => {
283 file => {
284 from => 'src/Mixer/objects/MixChunk.xs',
285 to => 'lib/SDL/Mixer/MixChunk.xs',
286 },
287 libraries => [qw( SDL SDL_mixer )],
288 },
289 MixMusic => {
290 file => {
291 from => 'src/Mixer/objects/MixMusic.xs',
292 to => 'lib/SDL/Mixer/MixMusic.xs',
293 },
294 libraries => [qw( SDL SDL_mixer )],
295 },
296 Palette => {
297 file => {
298 from => 'src/Core/objects/Palette.xs',
299 to => 'lib/SDL/Palette.xs',
300 },
301 libraries => [qw( SDL )],
302 },
303 VideoInfo => {
304 file => {
305 from => 'src/Core/objects/VideoInfo.xs',
306 to => 'lib/SDL/VideoInfo.xs',
307 },
308 libraries => [qw( SDL )],
309 },
310 Mouse => {
311 file => {
312 from => 'src/Core/Mouse.xs',
313 to => 'lib/SDL/Mouse.xs',
314 },
315 libraries => [qw( SDL )],
316 },
317 Cursor => {
318 file => {
319 from => 'src/Core/objects/Cursor.xs',
320 to => 'lib/SDL/Cursor.xs',
321 },
322 libraries => [qw( SDL )],
323 },
324 Joystick => {
325 file => {
326 from => 'src/Core/Joystick.xs',
327 to => 'lib/SDL/Joystick.xs',
328 },
329 libraries => [qw( SDL )],
330 },
331 CDROM => {
332 file => {
333 from => 'src/Core/CDROM.xs',
334 to => 'lib/SDL/CDROM.xs',
335 },
336 libraries => [qw( SDL )],
337 },
338 CDTrack => {
339 file => {
340 from => 'src/Core/objects/CDTrack.xs',
341 to => 'lib/SDL/CDTrack.xs',
342 },
343 libraries => [qw( SDL )],
344 },
345 CD => {
346 file => {
347 from => 'src/Core/objects/CD.xs',
348 to => 'lib/SDL/CD.xs',
349 },
350 libraries => [qw( SDL )],
351 },
352 TTF => {
353 file => {
354 from => 'src/TTF/TTF.xs',
355 to => 'lib/SDL/TTF.xs',
356 },
357 libraries => [qw( SDL SDL_ttf )],
358 },
359 TTF_Font => {
360 file => {
361 from => 'src/TTF/objects/Font.xs',
362 to => 'lib/SDL/TTF/Font.xs',
363 },
364 libraries => [qw( SDL SDL_ttf )],
365 },
366 Version => {
367 file => {
368 from => 'src/Core/objects/Version.xs',
369 to => 'lib/SDL/Version.xs',
370 },
371 libraries => [qw( SDL )],
372 },
373 Image => {
374 file => {
375 from => 'src/Image.xs',
376 to => 'lib/SDL/Image.xs',
377 },
378 libraries => [qw( SDL SDL_image )],
379 },
380 SFont => {
381 file => {
382 from => 'src/SDLx/SFont.xs',
383 to => 'lib/SDLx/SFont.xs',
384 },
385 libraries => [qw( SDL SDL_image )],
386 },
05989be @kthakore Perltidy
kthakore authored
387
36a0ca5 @kthakore Tidied the code
kthakore authored
388 # SMPEG => {
389 # file => {
390 # from => 'src/SMPEG.xs',
391 # to => 'lib/SDL/SMPEG.xs',
392 # },
393 # libraries => [qw( SDL smpeg)],
394 # },
395 Pango => {
396 file => {
397 from => 'src/Pango/Pango.xs',
398 to => 'lib/SDL/Pango.xs',
399 },
400 libraries => [qw( SDL SDL_Pango )],
401 },
402 Context => {
403 file => {
404 from => 'src/Pango/objects/Context.xs',
405 to => 'lib/SDL/Pango/Context.xs',
406 },
407 libraries => [qw( SDL SDL_Pango )],
408 },
fdf9930 @kthakore Added SDLx::SFont
kthakore authored
409
36a0ca5 @kthakore Tidied the code
kthakore authored
410 # Net => {
411 # file => {
412 # from => 'src/Net/Net.xs',
413 # to => 'lib/SDL/Net.xs',
414 # },
415 # libraries => [qw( SDL SDL_net )],
416 # },
417 # TCP => {
418 # file => {
419 # from => 'src/Net/TCP.xs',
420 # to => 'lib/SDL/Net/TCP.xs',
421 # },
422 # libraries => [qw( SDL SDL_net )],
423 # },
424 # UDP => {
425 # file => {
426 # from => 'src/Net/UDP.xs',
427 # to => 'lib/SDL/Net/UDP.xs',
428 # },
429 # libraries => [qw( SDL SDL_net )],
430 # },
431 # IPaddress => {
432 # file => {
433 # from => 'src/Net/objects/IPaddress.xs',
434 # to => 'lib/SDL/Net/IPaddress.xs',
435 # },
436 # libraries => [qw( SDL SDL_net )],
437 # },
90d6eb1 @kthakore [ticket 70] Stubs
kthakore authored
438
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
439 );
440
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
441 ### external libraries
442 # <library name> = symbolic library name
443 # <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
444 # <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
445 # could be a sigle value or an array of values
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
446 # <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
447 my %libraries = (
36a0ca5 @kthakore Tidied the code
kthakore authored
448 SDL => {
449 define => 'HAVE_SDL',
450 header => 'SDL.h',
451 lib => 'SDL',
452 },
453 SDL_image => {
454 define => 'HAVE_SDL_IMAGE',
455 header => 'SDL_image.h',
456 lib => 'SDL_image',
457 },
458 SDL_mixer => {
459 define => 'HAVE_SDL_MIXER',
460 header => 'SDL_mixer.h',
461 lib => 'SDL_mixer',
462 },
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
463
36a0ca5 @kthakore Tidied the code
kthakore authored
464 # SDL_net => {
465 # define => 'HAVE_SDL_NET',
466 # header => 'SDL_net.h',
467 # lib => 'SDL_net',
468 # },
469 SDL_ttf => {
470 define => 'HAVE_SDL_TTF',
471 header => 'SDL_ttf.h',
472 lib => 'SDL_ttf',
473 },
474 SDL_gfx => {
475 define => 'HAVE_SDL_GFX',
476 header => 'SDL_gfxPrimitives.h',
477 lib => 'SDL_gfx',
478 },
479 SDL_gfx_blitfunc => {
480 define => 'HAVE_SDL_GFX_BLITFUNC',
481 header => 'SDL_gfxBlitFunc.h',
482 lib => 'SDL_gfx',
483 },
484 SDL_gfx_framerate => {
485 define => 'HAVE_SDL_GFX_FRAMERATE',
486 header => 'SDL_framerate.h',
487 lib => 'SDL_gfx',
488 },
489 SDL_gfx_imagefilter => {
490 define => 'HAVE_SDL_GFX_IMAGEFILTER',
491 header => 'SDL_imageFilter.h',
492 lib => 'SDL_gfx',
493 },
494 SDL_gfx_primitives => {
495 define => 'HAVE_SDL_GFX_PRIMITIVES',
496 header => 'SDL_gfxPrimitives.h',
497 lib => 'SDL_gfx',
498 },
499 SDL_gfx_rotozoom => {
500 define => 'HAVE_SDL_GFX_ROTOZOOM',
501 header => 'SDL_rotozoom.h',
502 lib => 'SDL_gfx',
503 },
504 SDL_Pango => {
505 define => 'HAVE_SDL_PANGO',
506 header => 'SDL_Pango.h',
507 lib => 'SDL_Pango',
508 },
509 png => {
510 define => 'HAVE_PNG',
511 header => 'png.h',
512 lib => 'png',
513 },
514 jpeg => {
515 define => 'HAVE_JPEG',
516 header => 'jpeglib.h',
517 lib => 'jpeg',
518 },
519 tiff => {
520 define => 'HAVE_TIFF',
521 header => 'tiff.h',
522 lib => 'tiff',
523 },
fedf824 @kthakore Added tiff lib
kthakore authored
524
36a0ca5 @kthakore Tidied the code
kthakore authored
525 smpeg => {
526 define => 'HAVE_SMPEG',
527 header => 'smpeg/smpeg.h',
528 lib => 'smpeg',
529 },
530 GL => {
531 define => 'HAVE_GL',
532 header => [ 'GL/gl.h', 'GL/glext.h' ],
533 lib => ( $^O =~ /^(MSWin32|cygwin)$/ )
534 ? 'opengl32'
535 : 'GL', # xxx not nice
536 },
537 GLU => {
538 define => 'HAVE_GLU',
539 header => 'GL/glu.h',
540 lib => ( $^O =~ /^(MSWin32|cygwin)$/ ) ? 'glu32' : 'GLU', # xxx not nice
541 },
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
542 );
543
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
544 ### mangle the compilable files into a format Module::Build can understand
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
545 my %xs =
36a0ca5 @kthakore Tidied the code
kthakore authored
546 map { $subsystems{$_}{file}{from} => $subsystems{$_}{file}{to} }
547 keys %subsystems;
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
548
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
549 ### stadard Module::Build stuff
550 my $build = $package->new(
36a0ca5 @kthakore Tidied the code
kthakore authored
551 module_name => 'SDL',
552 dist_name => 'SDL',
553 license => 'lgpl',
554 dist_version_from => 'lib/SDL.pm',
555 configure_requires => {
556 'ExtUtils::CBuilder' => '0.260301',
557 'Alien::SDL' => '1.413',
558 'File::Find' => '0',
559 'File::ShareDir' => '0',
560 'Tie::Simple' => '0',
561 'IO::CaptureOutput' => '0',
562 },
563 build_requires => {
564 'Test::Simple' => '0.88',
565 'IO::CaptureOutput' => '0',
566 'Test::Most' => '0.21',
567 'Alien::SDL' => '1.413',
568 'File::ShareDir' => '0',
569 'Tie::Simple' => '0'
570 },
571 requires => {
572 'Tie::Simple' => '0',
573 'CPAN' => '1.92'
574 },
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
575
36a0ca5 @kthakore Tidied the code
kthakore authored
576 build_recommends => {
577 'Pod::ToDemo' => '0.20'
c8b2d77 @kthakore Added Tie::Simple as a requirement to rurun. rindolf++
kthakore authored
578
36a0ca5 @kthakore Tidied the code
kthakore authored
579 },
580 c_source => 'src',
581 xs_files => \%xs,
582 meta_add => {},
5e9f0a3 @kthakore Added ShareDir as a dependency for failing test. Fixes http://cpanidx…
kthakore authored
583
36a0ca5 @kthakore Tidied the code
kthakore authored
584 #create_readme => 1, ### make sense only if there is some POD doc in the file specified by dist_version_from
585 meta_merge => {
586 resources => {
587 bugtracker => 'http://sdlperl.ath.cx/projects/SDLPerl',
588 repository => 'http://github.com/PerlGameDev/SDL'
589 }
590 },
591 dist_abstract => 'SDL bindings to Perl',
592 dist_author => 'Kartik Thakore <KTHAKORE@cpan.org>',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
593 );
594
1dae658 @kmx Builder enhancements - proper disabling SDL submodules based on detec…
kmx authored
595 ### Alien::SDL quick check
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
596 warn "###WARNING### Alien::SDL seems to be broken"
36a0ca5 @kthakore Tidied the code
kthakore authored
597 unless Alien::SDL->config('prefix');
1dae658 @kmx Builder enhancements - proper disabling SDL submodules based on detec…
kmx authored
598
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
599 ### see which subsystems can be built -- do we have headers for them?
600 print "Gonna autodetect available libraries ...\n";
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
601 my $build_systems = $build->find_subsystems( \%subsystems, \%libraries );
602 my $lib_translate = $build->translate_table( \%subsystems, \%libraries );
f466624 @kthakore Added darwin build to Build.PL, fixed configure requires
kthakore authored
603
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
604 ### save info about available subsystems for future SDL::ConfigData
605 print "Gonna write config_data ...\n";
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
606 $build->config_data( 'SDL_cfg', $build_systems );
607 $build->config_data( 'SDL_lib_translate', $lib_translate );
608 $build->config_data( 'subsystems', \%subsystems );
609 $build->config_data( 'libraries', \%libraries );
eb33e5f @kthakore Added more info
kthakore authored
610
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
611 ### something that was originally special to MacOS/Darwin
612 # somebody MacOS/Darwin friendly should review whether it is still necessary
613 $build->special_build_settings();
614
615 ### get some info into M::B notes
616 print "Gonna save some info to 'notes' ...\n";
e6e146e @kthakore Did perl tidy. Stole rc from padre. bricas++
kthakore authored
617 $build->notes( 'subsystems', \%subsystems );
618 $build->notes( 'libraries', \%libraries );
619 $build->notes( 'build_systems', $build_systems );
620 $build->notes( 'sdl_cflags', Alien::SDL->config('cflags') );
621 $build->notes( 'sdl_libs', Alien::SDL->config('libs') );
36a0ca5 @kthakore Tidied the code
kthakore authored
622 $build->set_file_flags(); # creates notes('file_flags')
4e5315f @ruoso now the audio callback runs in a different ithread, which is initiali…
ruoso authored
623
48f9e5b @kthakore added comments for MAcOSX arch fix
kthakore authored
624 =pod
625
626 ##TODO: MacOSx Arch Fix.
627 # Move this to appropriate place
628 my $sdl_lib_name = 'libSDL.dylib'; #get the right extentions dynamically
629 my $sdl_lib = Alien::SDL->config('prefix')."/lib/$sdl_lib_name";
630 #Note 'prefix' is not set when Alien::SDL is built with preinstall SDL
631
632 my $lipo_out = 'lipo -info '.$sdl_lib;
633 my $arch = $1 if $lipo_out = m/architecture:\s*(\w+)\b/;
634
635 my $lddflags = $build->config( 'lddflags' );
636 my $ccflags = $build->config( 'cflags' );
637 my $ldflags = $build->config( 'ldflags' );
638
639 ## foreach of above strip -arch foo and add -arch $arch
640 =cut
641
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
642 $build->create_build_script();
Something went wrong with that request. Please try again.