summaryrefslogtreecommitdiff
path: root/packages/frozen-bubble/frozen-bubble-2.2.0
diff options
context:
space:
mode:
authorwoglinde <heinold@inf.fu-berlin.de>2009-01-20 17:15:12 +0100
committerwoglinde <heinold@inf.fu-berlin.de>2009-01-20 17:17:15 +0100
commitb8ca7a77c3cab1b34261bbaa6eb8ab392c17a370 (patch)
tree2d9b35607149928d0db7bf785077e4f4d67e9b4f /packages/frozen-bubble/frozen-bubble-2.2.0
parentabddaf9a0995cf0abf7a5ee1810fbcb60012b9a1 (diff)
frozen-bubble: add version 2.2.0
* not default version yet we need to workaround the messie perl buildystem in one case * recipe orginal from GNUtoo * closes BUG 4965
Diffstat (limited to 'packages/frozen-bubble/frozen-bubble-2.2.0')
-rw-r--r--packages/frozen-bubble/frozen-bubble-2.2.0/Makefile.PL.patch32
-rw-r--r--packages/frozen-bubble/frozen-bubble-2.2.0/Makefile.patch13
-rw-r--r--packages/frozen-bubble/frozen-bubble-2.2.0/Makefile_top.patch15
-rw-r--r--packages/frozen-bubble/frozen-bubble-2.2.0/localespath-fix.patch11
4 files changed, 71 insertions, 0 deletions
diff --git a/packages/frozen-bubble/frozen-bubble-2.2.0/Makefile.PL.patch b/packages/frozen-bubble/frozen-bubble-2.2.0/Makefile.PL.patch
new file mode 100644
index 0000000000..7b8035b65c
--- /dev/null
+++ b/packages/frozen-bubble/frozen-bubble-2.2.0/Makefile.PL.patch
@@ -0,0 +1,32 @@
+Index: frozen-bubble-2.2.0/c_stuff/Makefile.PL
+===================================================================
+--- frozen-bubble-2.2.0.orig/c_stuff/Makefile.PL
++++ frozen-bubble-2.2.0/c_stuff/Makefile.PL
+@@ -16,8 +16,8 @@ $main;
+ }
+ EOTEST
+ close(CTEST);
+- $r = system("$Config{cc} -o $fname $fname.c $cflags $libs 2>/dev/null 1>/dev/null");
+- warn("RUNNING: $Config{cc} -o $fname $fname.c $cflags $libs\n") if $ENV{VERBOSE};
++ $r = system("$ENV{CC} $ENV{CFLAGS} $ENV{LDFLAGS} -o $fname $fname.c $cflags $libs 2>/dev/null 1>/dev/null");
++ warn("RUNNING: $ENV{CC} $ENV{CFLAGS} $ENV{LDFLAGS} -o $fname $fname.c $cflags $libs\n") if $ENV{VERBOSE};
+ unlink($fname, "$fname.c");
+ return $r == 0;
+ }
+@@ -70,13 +70,13 @@ ccompile('#include <SDL_Pango.h>',
+ die_ 'Frozen-Bubble patches are needed in SDL_Pango (impossible to create an executable calling the function SDLPango_CreateContext_GivenFontDesc)';
+
+
+-
++
+ WriteMakefile(
+ 'NAME' => 'fb_c_stuff',
+- 'LIBS' => [ '-lm ' . chomp_(`sdl-config --libs`) . ' -lSDL_mixer ' . chomp_(`pkg-config SDL_Pango --libs`)],
++ 'LIBS' => [ $ENV{LDFLAGS} . " " . '-lm ' . chomp_(`sdl-config --libs`) . ' -lSDL_mixer ' . chomp_(`pkg-config SDL_Pango --libs`)],
+ 'VERSION_FROM' => 'fb_c_stuff.pm', # finds VERSION
+ 'OBJECT' => 'fb_c_stuff.o',
+- 'INC' => chomp_(`sdl-config --cflags`) . ' ' . chomp_(`pkg-config SDL_Pango --cflags`) . ' -I.',
++ 'INC' => $ENV{CFLAGS} . " " . chomp_(`sdl-config --cflags`) . ' ' . chomp_(`pkg-config SDL_Pango --cflags`) . ' -I.',
+ 'OPTIMIZE' => '-O2 -Wall',
+ 'MAKEFILE' => 'Makefile_c',
+ );
diff --git a/packages/frozen-bubble/frozen-bubble-2.2.0/Makefile.patch b/packages/frozen-bubble/frozen-bubble-2.2.0/Makefile.patch
new file mode 100644
index 0000000000..d3a370c6ab
--- /dev/null
+++ b/packages/frozen-bubble/frozen-bubble-2.2.0/Makefile.patch
@@ -0,0 +1,13 @@
+Index: frozen-bubble-2.2.0/c_stuff/Makefile
+===================================================================
+--- frozen-bubble-2.2.0.orig/c_stuff/Makefile
++++ frozen-bubble-2.2.0/c_stuff/Makefile
+@@ -51,7 +51,7 @@ PERL_MAKE_OPTS = $(PMO_PREFIX) $(PMO_INS
+ $(PMO_INSTALLMAN1DIR) $(PMO_INSTALLMAN3DIR)
+
+ Makefile_c: Makefile.PL
+- perl Makefile.PL $(PERL_MAKE_OPTS) INSTALLDIRS=$(INSTALLDIRS)
++ perl Makefile.PL $(PERL_MAKE_OPTS) INSTALLDIRS=$(INSTALLDIRS) CC="$(CC)" LD="$(LD)"
+
+ fb_c_stuff: %: %.xs Makefile_c
+ $(MAKE) -f Makefile_c
diff --git a/packages/frozen-bubble/frozen-bubble-2.2.0/Makefile_top.patch b/packages/frozen-bubble/frozen-bubble-2.2.0/Makefile_top.patch
new file mode 100644
index 0000000000..2dfc4e8d8c
--- /dev/null
+++ b/packages/frozen-bubble/frozen-bubble-2.2.0/Makefile_top.patch
@@ -0,0 +1,15 @@
+Index: frozen-bubble-2.2.0/Makefile
+===================================================================
+--- frozen-bubble-2.2.0.orig/Makefile
++++ frozen-bubble-2.2.0/Makefile
+@@ -14,8 +14,8 @@ prepare:
+ perl -ne "print \$$1 if m|\\\$$version = '(.*)';|" c_stuff/lib/fb_stuff.pm > VERSION
+
+ dirs:
+- @if ! perl -e 'use SDL'; then echo -e "\n *** I need perl-SDL installed"; false; fi
+- @if ! perl -e 'use SDL; ($$mj, $$mn, $$mc) = split /\./, $$SDL::VERSION; exit 0 if $$mj > 1 || $$mn >= 19; exit 1'; then echo -e "\n *** I need perl-SDL version 1.19.0 or upper"; false; fi
++# @if ! perl -e 'use SDL'; then echo -e "\n *** I need perl-SDL installed"; false; fi
++# @if ! perl -e 'use SDL; ($$mj, $$mn, $$mc) = split /\./, $$SDL::VERSION; exit 0 if $$mj > 1 || $$mn >= 19; exit 1'; then echo -e "\n *** I need perl-SDL version 1.19.0 or upper"; false; fi
+ @for n in . $(DIRS); do \
+ [ "$$n" = "." ] || $(MAKE) -C $$n || exit $$? ;\
+ done
diff --git a/packages/frozen-bubble/frozen-bubble-2.2.0/localespath-fix.patch b/packages/frozen-bubble/frozen-bubble-2.2.0/localespath-fix.patch
new file mode 100644
index 0000000000..c083b29886
--- /dev/null
+++ b/packages/frozen-bubble/frozen-bubble-2.2.0/localespath-fix.patch
@@ -0,0 +1,11 @@
+Index: frozen-bubble-2.2.0/settings.mk
+===================================================================
+--- frozen-bubble-2.2.0.orig/settings.mk
++++ frozen-bubble-2.2.0/settings.mk
+@@ -1,4 +1,5 @@
+-PREFIX = /usr/local
++
++PREFIX = /usr
+ DATADIR = $(PREFIX)/share
+ LIBDIR = $(PREFIX)/lib
+ BINDIR = $(PREFIX)/bin