Commit efa0a956 authored by Dominique Dumont's avatar Dominique Dumont

Import original source of Games-FrozenBubble 2.212

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

=encoding UTF-8
=head1 NAME
AUTHORS
Copyright © 2000-2010 The Frozen-Bubble Team.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2, as published by the Free Software Foundation.
=head2 Design & Programming
=over
=item Guillaume Cottenceau <gc zarb.org>
=back
=head2 Artwork
=over
=item Alexis Younes <73lab free.fr>
=item Amaury Amblard-Ladurantie <amaury linuxfr.org>
=back
=head2 Soundtrack
=over
=item Matthias Le Bidan <matthias.le_bidan caramail.com>
=back
=head2 Level Editor
=over
=item Kim and David Joham <[k|d]joham yahoo.com>
=back
=head2 Additional network programming
=over
=item Mark Glines <mark glines.org>
=back
=head2 Bugfixes and improvements
=over
=item Dirk Stoecker <fb dstoecker.de>
=item Anton Moll <anton.moll access.uzh.ch>
=back
=head2 Port to CPAN and sdlperl 2.4
=over
=item FROGGS
=item daxim
=item kthakore
=item kmx
=back
=head2 Helps and bugfixes
=over
=item Seth W. Klein <sk sethwklein.net>
=item Jonas Petersson <jonas.petersson xms.se>
=back
=head2 Translations
=over
=item afrikaans
Buchan Milne <bgmilne gmail.com>
=item brazilian portuguese
Helio Chissini de Castro <helio mandriva.com>
=item breton
Thierry Vignaud <tvignaud mandriva.com>
=item bulgarian
Svetoslav Stefanov <lfu.project gmail.com>
=item catalan
Benny Beat <bennybeat gmail.com>
=item chinese
holywen <shaohua.wen gmail.com>
=item czech
Vitezslav Smid <me ze.phyr.us>
=item danish
Swoop <swoopdk gmail.com>
=item esperanto
Stephane Fillod <f8cfe free.fr>
=item farsi
Mostafa Hajizadeh <mostafa hajizadeh.info>
=item finnish
Anssi Hannula <anssi.hannula gmail.com>
=item french
Guillaume Cottenceau <gc zarb.org>
=item galician
Adrian Chaves Fernandez <adriyetichaves gmail.com>
=item german
Steffen Pankratz <kratz00 gmx.de> and Dirk Stoecker <openstreetmap dstoecker.de>
=item greek
Gerasimos Vaiou <gvaiou csd.auth.gr>
=item italian
Dario Pilori <dapilori yahoo.it>
=item lithuanian
Julius Vitkauskas <zolookas gmail.com>
=item nepali
Ankur Sharma <yowlanku gmail.com>
=item norwegian
Karl Ove Hufthammer <karl huftis.org>
=item polish
Marcin Woloszczuk <zdebel gmail.com>
=item portuguese
Nelson do Nascimento <nelsonfnascimento gmail.com>
=item russian
Andrey 'Dragon' Vlasov <dragon1020 gmail.com>
=item slovak
Peter Mann <Peter.Mann tuke.sk> and Ivan Masar <helix84 centrum.sk>
=item slovenian
Marko Burjek <email4marko gmail.com>
=item spanish
javier martinez <villacampa gmail.com>
=item swedish
Oden Eriksson <oeriksson mandriva.com> and Jonas Petersson <catellie gmail.com>
=item turkish
Ugur Cetin <ugur.jnmbk gmail.com>
=back
#!perl
use 5.008;
use strict;
use warnings FATAL => 'all';
use lib 'inc';
use Alien::SDL qw();
use SDL::Config;
use File::Spec;
use Config qw(%Config);
use My::Builder;
use ExtUtils::CBuilder qw();
use lib 'lib';
use Games::FrozenBubble;
my $prefix = Alien::SDL->config('prefix');
my $cflags = '-I'
. File::Spec->catfile( $prefix, 'include' )
;
$cflags .= ' -fnested-functions' if $^O =~ /darwin/;
###!!! this looks strange, you perhaps meant "$cflags .= ..."
###!!! I intended Alien::SDL to add -I$prefix/include automatically, please tell me when it does not work (kmx)
my $devnull = File::Spec->devnull();
my @cflags = ExtUtils::CBuilder->new->split_like_shell( $cflags );
my @linkers = ( ExtUtils::CBuilder->new->split_like_shell( Alien::SDL->config('libs', '-lSDL_mixer', '-lSDL_Pango') ) );
push @linkers, '-liconv'
if $^O =~ /win/i; ###!!! really only Win needs this? ; BEWARE this matches also 'darwin', 'cygwin'!!!!
my $CPAN_test_NA;
$CPAN_test_NA = "Cannot find 'iconv.h'" unless Alien::SDL->check_header('iconv.h');
$CPAN_test_NA = "Cannot find 'math.h'" unless Alien::SDL->check_header('math.h');
$CPAN_test_NA = "Cannot find 'SDL.h'" unless Alien::SDL->check_header('SDL.h');
$CPAN_test_NA = "Cannot find 'SDL_mixer.h'" unless Alien::SDL->check_header('SDL_mixer.h');
$CPAN_test_NA = "SDL_perl need to be built with SDL_image (png) support" unless SDL::Config->has('SDL_image');
$CPAN_test_NA = "SDL_perl need to be built with SDL_mixer (ogg) support" unless SDL::Config->has('SDL_mixer');
$CPAN_test_NA = "SDL_perl need to be built with SDL_Pango support" unless SDL::Config->has('SDL_Pango');
$CPAN_test_NA = "SDL_perl need to be built with SDL_ttf support" unless SDL::Config->has('SDL_ttf');
if( $CPAN_test_NA ){ warn $CPAN_test_NA; exit(0) }
My::Builder->new(
add_to_cleanup => [
'lib/Games/FrozenBubble/CStuff.c',
'lib/Games/FrozenBubble/CStuff.o',
'server/fb-server.c', #preprocessed by perl from $cfile_tmp
'server/net.c',
'server/fb-server.o',
'server/game.o',
'server/log.o',
'server/net.o',
'server/tools.o',
'bin/fb-server',
],
dist_abstract => 'Puzzle with Bubbles', # taken from openSUSE rpm spec file
dynamic_config => 1,
extra_compiler_flags => \@cflags ,
extra_linker_flags => \@linkers,
license => 'gpl2',
meta_merge => {
resources => {
repository => 'http://github.com/kthakore/frozen-bubble',
bugtracker => 'http://sdlperl.ath.cx/projects/SDLPerl/query?component=FrozenBubble',
},
},
module_name => 'Games::FrozenBubble',
dist_version => $Games::FrozenBubble::VERSION,
share_dir => 'share',
no_index =>