Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 571 lines (554 sloc) 13.54 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 #
85fcc9e @kthakore Fixed v2.2.0
kthakore authored
3 # Copyright (C) 2003 chromatic
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
dd33fb6 @kthakore Admit it! You break back compat. Bad boy
kthakore authored
14 print STDERR <<BROKENMSG
15 *************************** !!!WARNING!!! ********************************
16 This Release breaks back compatibility support with versions 2.2 and below
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
b10581a Redesign towards new Alien::SDL (part 2)
unknown authored
21 my %platforms =(
22 MSWin32 => 'Windows',
23 MacOS => 'MacOS',
24 darwin => 'Darwin',
25 cygwin => 'Unix',
26 freebsd => 'Unix',
27 gnukfreebsd => 'Unix',
28 linux => 'Unix',
29 netbsd => 'Unix',
30 openbsd => 'Unix',
31 solaris => 'Unix',
32 );
33 my $package = 'My::Builder::' . ($platforms{$^O} || 'Unix');
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
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
43 my %subsystems =
44 (
45 SDL => {
46 file => {
47 from => 'src/SDL.xs',
2a66806 @kthakore Patched kmx's patch from here http://rt.cpan.org/Ticket/Display.html?id=...
kthakore authored
48 to => 'lib/SDL_perl.xs',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
49 },
053680d @kthakore Cleaned up the last of the sdl xs
kthakore authored
50 libraries => [qw( SDL )],
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
51 },
a8c66d1 @kthakore Still failing
kthakore authored
52 Time => {
53 file => {
54 from => 'src/Core/Time.xs',
55 to => 'lib/SDL/Time.xs',
56 },
57 libraries => [qw( SDL )],
58 },
bfb478a @kthakore Now compiling src/Core/Events.XS for SDL::Events
kthakore authored
59 Events => {
60 file => {
61 from => 'src/Core/Events.xs',
62 to => 'lib/SDL/Events.xs',
63 },
64 libraries => [qw( SDL )],
65 },
7a2c406 added event accessors
Tobias Leich authored
66 Event => {
67 file => {
68 from => 'src/Core/objects/Event.xs',
69 to => 'lib/SDL/Event.xs',
70 },
71 libraries => [qw( SDL )],
72 },
1b7ae47 added SDL::GFX and version print-out for all gfx tests
Tobias Leich authored
73 GFX => {
74 file => {
75 from => 'src/GFX/GFX.xs',
76 to => 'lib/SDL/GFX.xs',
77 },
78 libraries => [qw( SDL SDL_gfx_primitives )],
79 },
e44b38f xs for rotozoom [Ticket #73]
Tobias Leich authored
80 BlitFunc => {
81 file => {
82 from => 'src/GFX/BlitFunc.xs',
83 to => 'lib/SDL/GFX/BlitFunc.xs',
84 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
85 libraries => [qw( SDL SDL_gfx_blitfunc )],
e44b38f xs for rotozoom [Ticket #73]
Tobias Leich authored
86 },
87 Framerate => {
88 file => {
89 from => 'src/GFX/Framerate.xs',
90 to => 'lib/SDL/GFX/Framerate.xs',
91 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
92 libraries => [qw( SDL SDL_gfx_framerate )],
e44b38f xs for rotozoom [Ticket #73]
Tobias Leich authored
93 },
0919311 added FPSManager
Tobias Leich authored
94 FPSManager => {
95 file => {
96 from => 'src/GFX/FPSManager.xs',
97 to => 'lib/SDL/GFX/FPSManager.xs',
98 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
99 libraries => [qw( SDL SDL_gfx_framerate )],
0919311 added FPSManager
Tobias Leich authored
100 },
bf9cf73 +SDL::GFX::ImageFilter
Tobias Leich authored
101 ImageFilter => {
102 file => {
103 from => 'src/GFX/ImageFilter.xs',
104 to => 'lib/SDL/GFX/ImageFilter.xs',
105 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
106 libraries => [qw( SDL SDL_gfx_imagefilter )],
bf9cf73 +SDL::GFX::ImageFilter
Tobias Leich authored
107 },
be0c2a2 started on SDL::GFX::Primitives
Tobias Leich authored
108 Primitives => {
109 file => {
110 from => 'src/GFX/Primitives.xs',
111 to => 'lib/SDL/GFX/Primitives.xs',
112 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
113 libraries => [qw( SDL SDL_gfx_primitives )],
be0c2a2 started on SDL::GFX::Primitives
Tobias Leich authored
114 },
e44b38f xs for rotozoom [Ticket #73]
Tobias Leich authored
115 Rotozoom => {
116 file => {
117 from => 'src/GFX/Rotozoom.xs',
118 to => 'lib/SDL/GFX/Rotozoom.xs',
119 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
120 libraries => [qw( SDL SDL_gfx_rotozoom )],
e44b38f xs for rotozoom [Ticket #73]
Tobias Leich authored
121 },
0a0ec34 @kthakore Added docs, XS , PM and test file stubs for SDL::MultiThread
kthakore authored
122 MultiThread => {
123 file => {
124 from => 'src/Core/MultiThread.xs',
125 to => 'lib/SDL/MultiThread.xs',
126 },
127 libraries => [qw( SDL )],
128 },
95f5be3 @kthakore cleaned up MANIFEST, Added it to .gitignore. Added lib/SDL/Video.pm with...
kthakore authored
129 Video => {
130 file => {
131 from => 'src/Core/Video.xs',
132 to => 'lib/SDL/Video.xs',
133 },
134 libraries => [qw( SDL )],
135 },
80a2e43 @acme Implement open_audio, pause_audio, close_audio, get_audio_status
acme authored
136 Audio => {
137 file => {
138 from => 'src/Core/Audio.xs',
139 to => 'lib/SDL/Audio.xs',
140 },
141 libraries => [qw( SDL )],
142 },
e4ab5b2 @kthakore Using new Rect with v2.2.2.11. Had to change getClipRect paramters.
kthakore authored
143 Rect => {
144 file => {
f9be87f @kthakore Moved Rect and Color to Core/objects
kthakore authored
145 from => 'src/Core/objects/Rect.xs',
e4ab5b2 @kthakore Using new Rect with v2.2.2.11. Had to change getClipRect paramters.
kthakore authored
146 to => 'lib/SDL/Rect.xs',
147 },
9346cc6 @kthakore Added test for Overlay, updated Build.PL to add Overlay, Also made sure ...
kthakore authored
148 libraries => [qw( SDL )],
e4ab5b2 @kthakore Using new Rect with v2.2.2.11. Had to change getClipRect paramters.
kthakore authored
149 },
3e3f41e @acme Split out SDL_Color into its own C-level class
acme authored
150 Color => {
151 file => {
f9be87f @kthakore Moved Rect and Color to Core/objects
kthakore authored
152 from => 'src/Core/objects/Color.xs',
3e3f41e @acme Split out SDL_Color into its own C-level class
acme authored
153 to => 'lib/SDL/Color.xs',
154 },
155 libraries => [qw( SDL )],
156 },
88a46ef @acme try seperating out surface - not quite working yet
acme authored
157 Surface => {
158 file => {
f32a534 @acme Move Surface.xs to src/Core/objects/
acme authored
159 from => 'src/Core/objects/Surface.xs',
88a46ef @acme try seperating out surface - not quite working yet
acme authored
160 to => 'lib/SDL/Surface.xs',
161 },
9346cc6 @kthakore Added test for Overlay, updated Build.PL to add Overlay, Also made sure ...
kthakore authored
162 libraries => [qw( SDL )],
163 },
164 Overlay => {
165 file => {
166 from => 'src/Core/objects/Overlay.xs',
167 to => 'lib/SDL/Overlay.xs',
168 },
169 libraries => [qw( SDL )],
88a46ef @acme try seperating out surface - not quite working yet
acme authored
170 },
0f35edd @kthakore Cleanup. Added RWops xs,pm, and pod. Added tests to 00-load
kthakore authored
171 RWOps => {
172 file => {
173 from => 'src/Core/objects/RWOps.xs',
174 to => 'lib/SDL/RWOps.xs',
175 },
176 libraries => [qw( SDL )],
177 },
50d9130 @acme Wrap PixelFormat
acme authored
178 PixelFormat => {
179 file => {
180 from => 'src/Core/objects/PixelFormat.xs',
181 to => 'lib/SDL/PixelFormat.xs',
182 },
9346cc6 @kthakore Added test for Overlay, updated Build.PL to add Overlay, Also made sure ...
kthakore authored
183 libraries => [qw( SDL )],
50d9130 @acme Wrap PixelFormat
acme authored
184 },
afb3d72 @acme Implement SDL::AudioSpec
acme authored
185 AudioSpec => {
186 file => {
187 from => 'src/Core/objects/AudioSpec.xs',
188 to => 'lib/SDL/AudioSpec.xs',
189 },
190 libraries => [qw( SDL )],
191 },
e512f66 @kthakore Added stubs for AudioCVT
kthakore authored
192 AudioCVT => {
193 file => {
194 from => 'src/Core/objects/AudioCVT.xs',
195 to => 'lib/SDL/AudioCVT.xs',
196 },
197 libraries => [qw( SDL )],
198 },
77f8bd7 added SDL::Mixer::init() for >= 1.2.10
Tobias Leich authored
199 Mixer => {
200 file => {
201 from => 'src/Mixer/Mixer.xs',
202 to => 'lib/SDL/Mixer.xs',
203 },
204 libraries => [qw( SDL SDL_mixer )],
205 },
13cfc95 @kthakore Added test and module for SDL::Mixer::Samples
kthakore authored
206 MixerSamples => {
207 file => {
208 from => 'src/Mixer/Samples.xs',
209 to => 'lib/SDL/Mixer/Samples.xs',
210 },
211 libraries => [qw( SDL SDL_mixer )],
212 },
4870636 @kthakore Added Channels to build and load. Also test loading it
kthakore authored
213 MixerChannels => {
214 file => {
215 from => 'src/Mixer/Channels.xs',
216 to => 'lib/SDL/Mixer/Channels.xs',
217 },
218 libraries => [qw( SDL SDL_mixer )],
219 },
ca8d0be @kthakore XS and loading doen for SDL::Mixer::Groups
kthakore authored
220 MixerGroups => {
221 file => {
222 from => 'src/Mixer/Groups.xs',
223 to => 'lib/SDL/Mixer/Groups.xs',
224 },
225 libraries => [qw( SDL SDL_mixer )],
226 },
089e43d @kthakore Building Music and Effect
kthakore authored
227 MixerMusic => {
228 file => {
229 from => 'src/Mixer/Music.xs',
230 to => 'lib/SDL/Mixer/Music.xs',
231 },
232 libraries => [qw( SDL SDL_mixer )],
233 },
234 MixerEffects => {
235 file => {
236 from => 'src/Mixer/Effects.xs',
237 to => 'lib/SDL/Mixer/Effects.xs',
238 },
239 libraries => [qw( SDL SDL_mixer )],
240 },
42bd71c @acme Implement MixChunk
acme authored
241 MixChunk => {
242 file => {
1f745fc @acme Rename, move MixChunk and MixMusic to the right place
acme authored
243 from => 'src/Mixer/objects/MixChunk.xs',
244 to => 'lib/SDL/Mixer/MixChunk.xs',
42bd71c @acme Implement MixChunk
acme authored
245 },
47cda86 @acme Implement MixMusic
acme authored
246 libraries => [qw( SDL SDL_mixer )],
247 },
248 MixMusic => {
249 file => {
1f745fc @acme Rename, move MixChunk and MixMusic to the right place
acme authored
250 from => 'src/Mixer/objects/MixMusic.xs',
251 to => 'lib/SDL/Mixer/MixMusic.xs',
47cda86 @acme Implement MixMusic
acme authored
252 },
253 libraries => [qw( SDL SDL_mixer )],
42bd71c @acme Implement MixChunk
acme authored
254 },
fca2734 @kthakore Added SDL_Pallete Capability
kthakore authored
255 Palette => {
256 file => {
257 from => 'src/Core/objects/Palette.xs',
258 to => 'lib/SDL/Palette.xs',
259 },
260 libraries => [qw( SDL )],
261 },
f1ad86b @kthakore Added VideoInfo as an object with appropriate docs
kthakore authored
262 VideoInfo => {
263 file => {
264 from => 'src/Core/objects/VideoInfo.xs',
265 to => 'lib/SDL/VideoInfo.xs',
266 },
267 libraries => [qw( SDL )],
268 },
a95ab5c @kthakore Implemented Mouse and Cursor. Need to test
kthakore authored
269 Mouse => {
270 file => {
271 from => 'src/Core/Mouse.xs',
272 to => 'lib/SDL/Mouse.xs',
273 },
274 libraries => [qw( SDL )],
275 },
276 Cursor => {
277 file => {
278 from => 'src/Core/objects/Cursor.xs',
279 to => 'lib/SDL/Cursor.xs',
280 },
281 libraries => [qw( SDL )],
282 },
f104313 @kthakore Added Joystick XS, Added surface tests. Need a joystick to test the rest...
kthakore authored
283 Joystick => {
284 file => {
285 from => 'src/Core/Joystick.xs',
286 to => 'lib/SDL/Joystick.xs',
287 },
288 libraries => [qw( SDL )],
289 },
0ceb978 @kthakore Migrate CD, CDTrack, CDROM. use safemalloc instead of malloc in AudioSpe...
kthakore authored
290 CDROM => {
291 file => {
292 from => 'src/Core/CDROM.xs',
293 to => 'lib/SDL/CDROM.xs',
294 },
295 libraries => [qw( SDL )],
296 },
297 CDTrack => {
298 file => {
299 from => 'src/Core/objects/CDTrack.xs',
300 to => 'lib/SDL/CDTrack.xs',
301 },
302 libraries => [qw( SDL )],
303 },
304 CD => {
305 file => {
306 from => 'src/Core/objects/CD.xs',
307 to => 'lib/SDL/CD.xs',
308 },
309 libraries => [qw( SDL )],
310 },
440b3a3 beginning work on SDL::TTF
Tobias Leich authored
311 TTF => {
312 file => {
313 from => 'src/TTF/TTF.xs',
314 to => 'lib/SDL/TTF.xs',
315 },
316 libraries => [qw( SDL SDL_ttf )],
317 },
b41abbd @acme Wrap TTF_Font with a few calls
acme authored
318 TTF_Font => {
319 file => {
6236b91 Cleanup (versions in tests, added t_backcompat, ...)
Tobias Leich authored
320 from => 'src/TTF/objects/Font.xs',
321 to => 'lib/SDL/TTF/Font.xs',
b41abbd @acme Wrap TTF_Font with a few calls
acme authored
322 },
323 libraries => [qw( SDL SDL_ttf )],
324 },
ce88b52 @acme Wrap SDL_version
acme authored
325 Version => {
326 file => {
327 from => 'src/Core/objects/Version.xs',
328 to => 'lib/SDL/Version.xs',
329 },
330 libraries => [qw( SDL )],
331 },
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
332 OpenGL => {
333 file => {
334 from => 'src/OpenGL.xs',
2a66806 @kthakore Patched kmx's patch from here http://rt.cpan.org/Ticket/Display.html?id=...
kthakore authored
335 to => 'lib/SDL/OpenGL.xs',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
336 },
337 libraries => [qw( SDL GL GLU )],
338 },
90d6eb1 @kthakore [ticket 70] Stubs
kthakore authored
339 Image => {
340 file => {
cac7de6 @kthakore We only need on XS for image
kthakore authored
341 from => 'src/Image.xs',
90d6eb1 @kthakore [ticket 70] Stubs
kthakore authored
342 to => 'lib/SDL/Image.xs',
343 },
fedf824 @kthakore Added tiff lib
kthakore authored
344 libraries => [qw( SDL SDL_image jpeg png tiff)],
a74034f added stubs for SDL::Pango and SDL::Pango::Context
Tobias Leich authored
345 },
f9fbe8f added SDL_svg and SMPEG
Tobias Leich authored
346 SMPEG => {
347 file => {
348 from => 'src/SMPEG.xs',
349 to => 'lib/SDL/SMPEG.xs',
350 },
351 libraries => [qw( SDL smpeg)],
352 },
a74034f added stubs for SDL::Pango and SDL::Pango::Context
Tobias Leich authored
353 Pango => {
354 file => {
355 from => 'src/Pango/Pango.xs',
356 to => 'lib/SDL/Pango.xs',
357 },
358 libraries => [qw( SDL SDL_Pango )],
359 },
360 Context => {
361 file => {
362 from => 'src/Pango/objects/Context.xs',
363 to => 'lib/SDL/Pango/Context.xs',
364 },
365 libraries => [qw( SDL SDL_Pango )],
366 },
bd810d0 @kthakore Comment out net for now ... Less deps problems that way
kthakore authored
367 # Net => {
368 # file => {
369 # from => 'src/Net/Net.xs',
370 # to => 'lib/SDL/Net.xs',
371 # },
372 # libraries => [qw( SDL SDL_net )],
373 # },
374 # TCP => {
375 # file => {
376 # from => 'src/Net/TCP.xs',
377 # to => 'lib/SDL/Net/TCP.xs',
378 # },
379 # libraries => [qw( SDL SDL_net )],
380 # },
381 # UDP => {
382 # file => {
383 # from => 'src/Net/UDP.xs',
384 # to => 'lib/SDL/Net/UDP.xs',
385 # },
386 # libraries => [qw( SDL SDL_net )],
387 # },
388 # IPaddress => {
389 # file => {
390 # from => 'src/Net/objects/IPaddress.xs',
391 # to => 'lib/SDL/Net/IPaddress.xs',
392 # },
393 # libraries => [qw( SDL SDL_net )],
394 # },
90d6eb1 @kthakore [ticket 70] Stubs
kthakore authored
395
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
396 );
397
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
398 ### external libraries
399 # <library name> = symbolic library name
400 # <define> = value that will be used as -D<value> option when compiling XS code
1dae658 @kmx Builder enhancements - proper disabling SDL submodules based on detected...
kmx authored
401 # <header> = header related to the library that will be used for avalability detection,
402 # could be a sigle value or an array of values
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
403 # <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
404 my %libraries = (
405 SDL => {
406 define => 'HAVE_SDL',
407 header => 'SDL.h',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
408 lib => 'SDL',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
409 },
410 SDL_image => {
411 define => 'HAVE_SDL_IMAGE',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
412 header => 'SDL_image.h',
413 lib => 'SDL_image',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
414 },
415 SDL_mixer => {
416 define => 'HAVE_SDL_MIXER',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
417 header => 'SDL_mixer.h',
418 lib => 'SDL_mixer',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
419 },
bd810d0 @kthakore Comment out net for now ... Less deps problems that way
kthakore authored
420 # SDL_net => {
421 # define => 'HAVE_SDL_NET',
422 # header => 'SDL_net.h',
423 # lib => 'SDL_net',
424 # },
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
425 SDL_ttf => {
426 define => 'HAVE_SDL_TTF',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
427 header => 'SDL_ttf.h',
428 lib => 'SDL_ttf',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
429 },
430 SDL_gfx => {
431 define => 'HAVE_SDL_GFX',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
432 header => 'SDL_gfxPrimitives.h',
433 lib => 'SDL_gfx',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
434 },
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
435 SDL_gfx_blitfunc => {
436 define => 'HAVE_SDL_GFX_BLITFUNC',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
437 header => 'SDL_gfxBlitFunc.h',
438 lib => 'SDL_gfx',
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
439 },
440 SDL_gfx_framerate => {
441 define => 'HAVE_SDL_GFX_FRAMERATE',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
442 header => 'SDL_framerate.h',
443 lib => 'SDL_gfx',
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
444 },
445 SDL_gfx_imagefilter => {
446 define => 'HAVE_SDL_GFX_IMAGEFILTER',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
447 header => 'SDL_imageFilter.h',
448 lib => 'SDL_gfx',
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
449 },
450 SDL_gfx_primitives => {
451 define => 'HAVE_SDL_GFX_PRIMITIVES',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
452 header => 'SDL_gfxPrimitives.h',
453 lib => 'SDL_gfx',
a4193cb separate defines like `HAVE_SDL_GFX_PRIMITIVES� for all SDL::GFX::* [#73...
Tobias Leich authored
454 },
455 SDL_gfx_rotozoom => {
456 define => 'HAVE_SDL_GFX_ROTOZOOM',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
457 header => 'SDL_rotozoom.h',
458 lib => 'SDL_gfx',
d73a896 @kthakore Not every version of GFX has BlitFunc, Added a catch for it in Build.PL
kthakore authored
459 },
a74034f added stubs for SDL::Pango and SDL::Pango::Context
Tobias Leich authored
460 SDL_Pango => {
461 define => 'HAVE_SDL_PANGO',
462 header => 'SDL_Pango.h',
463 lib => 'SDL_Pango',
464 },
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
465 png => {
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
466 define => 'HAVE_PNG',
467 header => 'png.h',
468 lib => 'png',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
469 },
470 jpeg => {
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
471 define => 'HAVE_JPEG',
472 header => 'jpeglib.h',
473 lib => 'jpeg',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
474 },
fedf824 @kthakore Added tiff lib
kthakore authored
475 tiff => {
04cfa4b @kthakore Correct macro for TIFF exitance
kthakore authored
476 define => 'HAVE_TIFF',
fedf824 @kthakore Added tiff lib
kthakore authored
477 header => 'tiff.h',
478 lib => 'tiff',
479 },
480
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
481 smpeg => {
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
482 define => 'HAVE_SMPEG',
f9fbe8f added SDL_svg and SMPEG
Tobias Leich authored
483 header => 'smpeg/smpeg.h',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
484 lib => 'smpeg',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
485 },
486 GL => {
487 define => 'HAVE_GL',
1dae658 @kmx Builder enhancements - proper disabling SDL submodules based on detected...
kmx authored
488 header => [ 'GL/gl.h', 'GL/glext.h' ],
931e2b5 @kmx cygwin related fix1
kmx authored
489 lib => ($^O =~ /^(MSWin32|cygwin)$/) ? 'opengl32' : 'GL', # xxx not nice
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
490 },
491 GLU => {
492 define => 'HAVE_GLU',
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
493 header => 'GL/glu.h',
931e2b5 @kmx cygwin related fix1
kmx authored
494 lib => ($^O =~ /^(MSWin32|cygwin)$/) ? 'glu32' : 'GLU', # xxx not nice
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
495 },
496 );
497
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
498 ### mangle the compilable files into a format Module::Build can understand
499 my %xs = map { $subsystems{$_}{file}{from} => $subsystems{$_}{file}{to} } keys %subsystems;
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
500
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
501 ### stadard Module::Build stuff
502 my $build = $package->new(
05555ad @kthakore Moving back to SDL_perl name
kthakore authored
503 module_name => 'SDL_perl',
504 dist_name => 'SDL_perl',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
505 license => 'lgpl',
506 dist_version_from => 'lib/SDL.pm',
c4191b5 @kthakore Build.PL fix
kthakore authored
507 configure_requires =>
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
508 {
c4191b5 @kthakore Build.PL fix
kthakore authored
509 'YAML' => '0.68',
510 'ExtUtils::CBuilder' => '0.260301',
05555ad @kthakore Moving back to SDL_perl name
kthakore authored
511 'Alien::SDL' => '1.2',
4451ca4 @kthakore Look over Build.PL and minor changes
kthakore authored
512 'File::Find' => '2.07'
c4191b5 @kthakore Build.PL fix
kthakore authored
513 },
514 build_requires =>
515 {
3d2ac19 @kthakore Test MOre is in Simple
kthakore authored
516 'Test::Simple' => '0.88',
40ccf32 @kthakore For the last time negative test for failing soundcards
kthakore authored
517 'IO::CaptureOutput' => '0',
0697d1d @kthakore Fixed use_ok bug for t/core_events.t. Made 00-load.t test for loading mo...
kthakore authored
518 'Test::Most' => '0.21',
05555ad @kthakore Moving back to SDL_perl name
kthakore authored
519 'Alien::SDL' => '1.2',
bf87e76 @kthakore Updated SDL::App docs
kthakore authored
520 },
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
521 build_recommends =>
522 {
eb33e5f @kthakore Added more info
kthakore authored
523 'Pod::ToDemo' => '0.20'
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
524 },
85fcc9e @kthakore Fixed v2.2.0
kthakore authored
525 c_source => 'src',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
526 xs_files => \%xs,
fc3f64f @kthakore Added no_index for files in make here is the bug https://rt.cpan.org/Tic...
kthakore authored
527 meta_add =>
528 {
529 },
a696510 @kmx Build.PL cosmetics + returning back README (autogeneration via Module::B...
kmx authored
530 #create_readme => 1, ### make sense only if there is some POD doc in the file specified by dist_version_from
531 meta_merge => {
532 resources => {
533 bugtracker => 'http://sdlperl.ath.cx/projects/SDLPerl/report/1',
534 repository => 'http://github.com/kthakore/SDL_perl'
535 }
536 },
2111676 @kthakore Cannot have a 2mb image in this distro
kthakore authored
537 dist_abstract => 'SDL bindings to Perl',
538 dist_author => 'Kartik Thakore <KTHAKORE@cpan.org>',
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
539 );
540
1dae658 @kmx Builder enhancements - proper disabling SDL submodules based on detected...
kmx authored
541 ### Alien::SDL quick check
542 warn "###WARNING### Alien::SDL seems to be broken" unless Alien::SDL->config('prefix');
543
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
544 ### see which subsystems can be built -- do we have headers for them?
545 print "Gonna autodetect available libraries ...\n";
054aed7 @kmx more robust and reliable SDL::Internal::Loader
kmx authored
546 my $build_systems = $build->find_subsystems(\%subsystems, \%libraries);
547 my $lib_translate = $build->translate_table(\%subsystems, \%libraries);
f466624 @kthakore Added darwin build to Build.PL, fixed configure requires
kthakore authored
548
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
549 ### save info about available subsystems for future SDL::ConfigData
550 print "Gonna write config_data ...\n";
054aed7 @kmx more robust and reliable SDL::Internal::Loader
kmx authored
551 $build->config_data('SDL_cfg', $build_systems);
552 $build->config_data('SDL_lib_translate', $lib_translate);
b10581a Redesign towards new Alien::SDL (part 2)
unknown authored
553 $build->config_data('subsystems', \%subsystems);
554 $build->config_data('libraries', \%libraries);
eb33e5f @kthakore Added more info
kthakore authored
555
0e54be1 Big redesign - interface to new Alien::SDL (part 1)
unknown authored
556 ### something that was originally special to MacOS/Darwin
557 # somebody MacOS/Darwin friendly should review whether it is still necessary
558 $build->special_build_settings();
559
560 ### get some info into M::B notes
561 print "Gonna save some info to 'notes' ...\n";
562 $build->notes('subsystems', \%subsystems);
563 $build->notes('libraries', \%libraries);
564 $build->notes('build_systems', $build_systems);
565 $build->notes('sdl_cflags', Alien::SDL->config('cflags'));
566 $build->notes('sdl_libs', Alien::SDL->config('libs'));
567 $build->set_file_flags(); # creates notes('file_flags')
4e5315f @ruoso now the audio callback runs in a different ithread, which is initialized...
ruoso authored
568
8fde61e @kthakore First commit of SDL_Perl-2.1.3
kthakore authored
569 # now we're ready to go!
570 $build->create_build_script();
Something went wrong with that request. Please try again.