frozen-bubble: init at 2.212

gstqt5
Puck Meerburg 2019-10-23 12:48:02 +00:00
parent 0b3a34f4bb
commit 9f52dabf79
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{ stdenv, fetchurl, perlPackages, pkgconfig, SDL, SDL_mixer, SDL_Pango, glib }:
perlPackages.buildPerlModule {
pname = "frozen-bubble";
version = "2.212";
src = fetchurl {
url = "mirror://cpan/authors/id/K/KT/KTHAKORE/Games-FrozenBubble-2.212.tar.gz";
sha256 = "721e04ff69c5233060656bfbf4002aa1aeadd96c95351f0c57bb85b6da35a305";
};
patches = [ ./fix-compilation.patch ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib SDL SDL_mixer SDL_Pango perlPackages.SDL perlPackages.FileSlurp ];
propagatedBuildInputs = with perlPackages; [ AlienSDL CompressBzip2 FileShareDir FileWhich IPCSystemSimple LocaleMaketextLexicon ];
perlPreHook = "export LD=$CC";
meta = {
description = "Puzzle with Bubbles";
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ puckipedia ];
};
}

View File

@ -0,0 +1,33 @@
diff --git a/Build.PL b/Build.PL
index b029d1e..8737395 100644
--- a/Build.PL
+++ b/Build.PL
@@ -16,13 +16,14 @@ use Games::FrozenBubble;
my $prefix = Alien::SDL->config('prefix');
my $cflags = '-I'
. File::Spec->catfile( $prefix, 'include' )
+ . ' ' . `pkg-config --cflags SDL_mixer`
;
$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') ) );
+my @linkers = ( ExtUtils::CBuilder->new->split_like_shell( Alien::SDL->config('libs', '-lSDL_Pango',`pkg-config --libs SDL_mixer`) ) );
push @linkers, '-liconv'
if $^O =~ /win/i; ###!!! really only Win needs this? ; BEWARE this matches also 'darwin', 'cygwin'!!!!
diff --git a/inc/My/Builder.pm b/inc/My/Builder.pm
index 2ebaf91..c420b9a 100644
--- a/inc/My/Builder.pm
+++ b/inc/My/Builder.pm
@@ -123,7 +123,7 @@ sub ACTION_server {
push @ofiles, $cbuilder->compile(
source => catfile($server_directory, $cfile),
extra_compiler_flags => [
- qw(-g -Wall -Werror -pipe), # verbatim from Makefile
+ qw(-g -pipe), # verbatim from Makefile
'-I' . $server_directory, # does not seem to be necessary
$cbuilder->split_like_shell(`pkg-config glib-2.0 --cflags`),
$cbuilder->split_like_shell(`pkg-config glib-2.0 --libs`),

View File

@ -22332,6 +22332,8 @@ in
frogatto = callPackage ../games/frogatto { };
frozen-bubble = callPackage ../games/frozen-bubble { };
fsg = callPackage ../games/fsg {
wxGTK = wxGTK28.override { unicode = false; };
};