import frozen-bubble from maintainer James Wright. it has a couple of
small issues but works well enough, they can be fixed in-tree. An amazingly cute game of popping bubbles. Full-featured, colorful animated penguin eye candy, 100 levels of 1p game, hours and hours of 2p game, a level-editor, 3 professional quality 20-channels musics, 15 stereo sound effects, 7 unique graphical transition effects.
This commit is contained in:
parent
7de79b5267
commit
d263920cb1
55
games/frozen-bubble/Makefile
Normal file
55
games/frozen-bubble/Makefile
Normal file
@ -0,0 +1,55 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/06/02 22:07:24 sthen Exp $
|
||||
|
||||
SHARED_ONLY = Yes
|
||||
|
||||
COMMENT-main = bubble popping game, like puzzle bobble
|
||||
COMMENT-server = server for the frozen-bubble bubble popping game
|
||||
|
||||
VER = 2.2.0
|
||||
DISTNAME = frozen-bubble-${VER}
|
||||
PKGNAME-main = ${DISTNAME}
|
||||
PKGNAME-server = frozen-bubble-server-${VER}
|
||||
CATEGORIES = games
|
||||
|
||||
HOMEPAGE = http://www.frozen-bubble.org
|
||||
MAINTAINER = James Wright <jamesw@bsdhosting.co.za>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = ${HOMEPAGE}/data/
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
USE_GMAKE = Yes
|
||||
|
||||
# No regress tests here
|
||||
NO_REGRESS = Yes
|
||||
|
||||
MODULES = perl converters/libiconv devel/gettext
|
||||
|
||||
BUILD_DEPENDS = ${RUN_DEPENDS-main} \
|
||||
${RUN_DEPENDS-server}
|
||||
|
||||
RUN_DEPENDS-main = ::devel/sdl \
|
||||
::devel/sdl-mixer \
|
||||
::devel/sdl-pango \
|
||||
::devel/p5-Locale-gettext \
|
||||
::devel/p5-SDL
|
||||
|
||||
LIB_DEPENDS-main = SDL::devel/sdl \
|
||||
SDL_Pango::devel/sdl-pango \
|
||||
SDL_mixer::devel/sdl-mixer \
|
||||
glib-2.0,gmodule-2.0,gobject-2.0::devel/glib2
|
||||
|
||||
LIB_DEPENDS-server = glib-2.0::devel/glib2
|
||||
|
||||
WANTLIB = iconv intl
|
||||
WANTLIB-main = ${WANTLIB} X11 m pango-1.0 pthread
|
||||
WANTLIB-server = ${WANTLIB} c
|
||||
|
||||
MULTI_PACKAGES = -main -server
|
||||
|
||||
.include <bsd.port.mk>
|
5
games/frozen-bubble/distinfo
Normal file
5
games/frozen-bubble/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (frozen-bubble-2.2.0.tar.bz2) = 95hyAUcNZ1XtMJdi00jg3Q==
|
||||
RMD160 (frozen-bubble-2.2.0.tar.bz2) = G74BY8KEIcSXl5yFqY9kqYF0x4A=
|
||||
SHA1 (frozen-bubble-2.2.0.tar.bz2) = 31qMg5p2/WYnd5JbLrgPy4rfP6Y=
|
||||
SHA256 (frozen-bubble-2.2.0.tar.bz2) = 2tqSMi7zrbdd96QnCy52xXLD+OQgBu06Wq7vpo/Kpbc=
|
||||
SIZE (frozen-bubble-2.2.0.tar.bz2) = 20585572
|
40
games/frozen-bubble/patches/patch-Makefile
Normal file
40
games/frozen-bubble/patches/patch-Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2009/06/02 22:07:25 sthen Exp $
|
||||
--- Makefile.orig Sat Nov 8 06:47:24 2008
|
||||
+++ Makefile Tue May 26 00:08:19 2009
|
||||
@@ -10,7 +10,7 @@ prepare:
|
||||
echo '@ISA = qw(Exporter);' >> c_stuff/lib/fb_config.pm
|
||||
echo '@EXPORT = qw($$FPATH $$FLPATH);' >> c_stuff/lib/fb_config.pm
|
||||
echo '$$FPATH = "$(DATADIR)/frozen-bubble";' >> c_stuff/lib/fb_config.pm
|
||||
- echo '$$FLPATH = "$(LIBDIR)/frozen-bubble";' >> c_stuff/lib/fb_config.pm
|
||||
+ echo '$$FLPATH = "$(LIBEXECDIR)/frozen-bubble";' >> c_stuff/lib/fb_config.pm
|
||||
perl -ne "print \$$1 if m|\\\$$version = '(.*)';|" c_stuff/lib/fb_stuff.pm > VERSION
|
||||
|
||||
dirs:
|
||||
@@ -25,12 +25,21 @@ install: $(ALL)
|
||||
@for n in $(DIRS); do \
|
||||
(cd $$n; $(MAKE) install) \
|
||||
done
|
||||
- install -d $(DESTDIR)$(BINDIR)
|
||||
- install frozen-bubble frozen-bubble-editor $(DESTDIR)$(BINDIR)
|
||||
- install -d $(DESTDIR)$(DATADIR)/frozen-bubble
|
||||
- cp -a gfx snd data $(DESTDIR)$(DATADIR)/frozen-bubble
|
||||
- install -d $(DESTDIR)$(MANDIR)/man6
|
||||
- install doc/*.6 $(DESTDIR)$(MANDIR)/man6
|
||||
+ ${BSD_INSTALL_PROGRAM_DIR} $(DESTDIR)$(BINDIR)
|
||||
+ ${BSD_INSTALL_PROGRAM} frozen-bubble frozen-bubble-editor $(DESTDIR)$(BINDIR)
|
||||
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(DATADIR)/frozen-bubble
|
||||
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(DATADIR)/frozen-bubble/{gfx/{menu/anims,balls,flags,intro,pinguins},snd,data}
|
||||
+ ${BSD_INSTALL_DATA} gfx/*.{png,gif} $(DESTDIR)$(DATADIR)/frozen-bubble/gfx
|
||||
+ ${BSD_INSTALL_DATA} gfx/balls/*.{png,gif} $(DESTDIR)$(DATADIR)/frozen-bubble/gfx/balls
|
||||
+ ${BSD_INSTALL_DATA} gfx/menu/*.png $(DESTDIR)$(DATADIR)/frozen-bubble/gfx/menu
|
||||
+ ${BSD_INSTALL_DATA} gfx/menu/anims/*.png $(DESTDIR)$(DATADIR)/frozen-bubble/gfx/menu/anims
|
||||
+ ${BSD_INSTALL_DATA} gfx/flags/*.png $(DESTDIR)$(DATADIR)/frozen-bubble/gfx/flags
|
||||
+ ${BSD_INSTALL_DATA} gfx/intro/*.png $(DESTDIR)$(DATADIR)/frozen-bubble/gfx/intro
|
||||
+ ${BSD_INSTALL_DATA} gfx/pinguins/*.png $(DESTDIR)$(DATADIR)/frozen-bubble/gfx/pinguins
|
||||
+ ${BSD_INSTALL_DATA} snd/* $(DESTDIR)$(DATADIR)/frozen-bubble/snd
|
||||
+ ${BSD_INSTALL_DATA} data/* $(DESTDIR)$(DATADIR)/frozen-bubble/data
|
||||
+ ${BSD_INSTALL_MAN_DIR} $(DESTDIR)$(MANDIR)/man6
|
||||
+ ${BSD_INSTALL_MAN} doc/*.6 $(DESTDIR)$(MANDIR)/man6
|
||||
|
||||
clean:
|
||||
@for n in $(DIRS); do \
|
21
games/frozen-bubble/patches/patch-c_stuff_Makefile
Normal file
21
games/frozen-bubble/patches/patch-c_stuff_Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-c_stuff_Makefile,v 1.1.1.1 2009/06/02 22:07:25 sthen Exp $
|
||||
--- c_stuff/Makefile.orig Sat Nov 15 06:23:58 2008
|
||||
+++ c_stuff/Makefile Tue May 26 01:19:34 2009
|
||||
@@ -51,13 +51,15 @@ PERL_MAKE_OPTS = $(PMO_PREFIX) $(PMO_INSTALLPRIVLIB) $
|
||||
$(PMO_INSTALLMAN1DIR) $(PMO_INSTALLMAN3DIR)
|
||||
|
||||
Makefile_c: Makefile.PL
|
||||
- perl Makefile.PL $(PERL_MAKE_OPTS) INSTALLDIRS=$(INSTALLDIRS)
|
||||
+ perl Makefile.PL
|
||||
|
||||
+# perl Makefile.PL $(PERL_MAKE_OPTS) INSTALLDIRS=$(INSTALLDIRS)
|
||||
+
|
||||
fb_c_stuff: %: %.xs Makefile_c
|
||||
$(MAKE) -f Makefile_c
|
||||
|
||||
install:
|
||||
- $(MAKE) -f Makefile_c install
|
||||
+ $(MAKE) -f Makefile_c pure_install
|
||||
|
||||
clean:
|
||||
test ! -e Makefile_c || $(MAKE) -f Makefile_c clean
|
58
games/frozen-bubble/patches/patch-c_stuff_Makefile_PL
Normal file
58
games/frozen-bubble/patches/patch-c_stuff_Makefile_PL
Normal file
@ -0,0 +1,58 @@
|
||||
$OpenBSD: patch-c_stuff_Makefile_PL,v 1.1.1.1 2009/06/02 22:07:25 sthen Exp $
|
||||
--- c_stuff/Makefile.PL.orig Wed Jul 2 14:07:14 2008
|
||||
+++ c_stuff/Makefile.PL Tue May 26 00:43:53 2009
|
||||
@@ -31,11 +31,12 @@ system("sdl-config --cflags 2>/dev/null 1>/dev/null")
|
||||
die_ 'SDL development environment seems to be missing ("sdl-config --cflags" reports an error)';
|
||||
|
||||
|
||||
+(my $sdl_libs = qx{sdl-config --libs}) =~ s{-pthread}{-lpthread};
|
||||
ccompile('#include <SDL.h>
|
||||
#include <SDL_mixer.h>',
|
||||
'',
|
||||
chomp_(`sdl-config --cflags`),
|
||||
- chomp_(`sdl-config --libs`) . ' -lSDL_mixer')
|
||||
+ chomp_($sdl_libs) . ' -lSDL_mixer')
|
||||
or
|
||||
die_ 'SDL_mixer development environment seems to be missing (failed to compile and link a simple program against libSDL_mixer)';
|
||||
|
||||
@@ -44,7 +45,7 @@ ccompile('#include <SDL.h>
|
||||
#include <SDL_mixer.h>',
|
||||
'Mix_FadeInMusicPos(NULL, 0, 0, 0);',
|
||||
chomp_(`sdl-config --cflags`),
|
||||
- chomp_(`sdl-config --libs`) . ' -lSDL_mixer')
|
||||
+ chomp_($sdl_libs) . ' -lSDL_mixer')
|
||||
or
|
||||
die_ 'SDL_mixer >= 1.2.2 is needed (impossible to create an executable with function Mix_FadeInMusicPos)';
|
||||
|
||||
@@ -57,7 +58,7 @@ system("pkg-config SDL_Pango --cflags 2>/dev/null 1>/d
|
||||
ccompile('#include <SDL_Pango.h>',
|
||||
'SDLPango_Context *context;',
|
||||
chomp_(`sdl-config --cflags`) . ' ' . chomp_(`pkg-config SDL_Pango --cflags`) . ' ',
|
||||
- chomp_(`sdl-config --libs`) . ' ' . chomp_(`pkg-config SDL_Pango --libs`) . ' ')
|
||||
+ chomp_($sdl_libs) . ' ' . chomp_(`pkg-config SDL_Pango --libs`) . ' ')
|
||||
or
|
||||
die_ 'SDL_Pango is needed (impossible to create an executable containing an SDLPango_Context pointer.';
|
||||
|
||||
@@ -65,7 +66,7 @@ ccompile('#include <SDL_Pango.h>',
|
||||
ccompile('#include <SDL_Pango.h>',
|
||||
'SDLPango_Context * context = SDLPango_CreateContext_GivenFontDesc(NULL);',
|
||||
chomp_(`sdl-config --cflags`) . ' ' . chomp_(`pkg-config SDL_Pango --cflags`) . ' ',
|
||||
- chomp_(`sdl-config --libs`) . ' ' . chomp_(`pkg-config SDL_Pango --libs`) . ' ')
|
||||
+ chomp_($sdl_libs) . ' ' . chomp_(`pkg-config SDL_Pango --libs`) . ' ')
|
||||
or
|
||||
die_ 'Frozen-Bubble patches are needed in SDL_Pango (impossible to create an executable calling the function SDLPango_CreateContext_GivenFontDesc)';
|
||||
|
||||
@@ -73,10 +74,11 @@ ccompile('#include <SDL_Pango.h>',
|
||||
|
||||
WriteMakefile(
|
||||
'NAME' => 'fb_c_stuff',
|
||||
- 'LIBS' => [ '-lm ' . chomp_(`sdl-config --libs`) . ' -lSDL_mixer ' . chomp_(`pkg-config SDL_Pango --libs`)],
|
||||
+ 'LIBS' => [ '-lm ' . chomp_($sdl_libs) . ' -lSDL_mixer ' . chomp_(`pkg-config SDL_Pango --libs`)],
|
||||
'VERSION_FROM' => 'fb_c_stuff.pm', # finds VERSION
|
||||
'OBJECT' => 'fb_c_stuff.o',
|
||||
+ 'INSTALLDIRS' => 'site',
|
||||
'INC' => chomp_(`sdl-config --cflags`) . ' ' . chomp_(`pkg-config SDL_Pango --cflags`) . ' -I.',
|
||||
- 'OPTIMIZE' => '-O2 -Wall',
|
||||
+ 'OPTIMIZE' => $ENV{CFLAGS} . ' -Wall',
|
||||
'MAKEFILE' => 'Makefile_c',
|
||||
);
|
14
games/frozen-bubble/patches/patch-server_Makefile
Normal file
14
games/frozen-bubble/patches/patch-server_Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-server_Makefile,v 1.1.1.1 2009/06/02 22:07:25 sthen Exp $
|
||||
--- server/Makefile.orig Tue May 26 00:05:45 2009
|
||||
+++ server/Makefile Tue May 26 00:06:26 2009
|
||||
@@ -21,8 +21,8 @@ clean:
|
||||
rm -f fb-server *.o .depend
|
||||
|
||||
install: fb-server
|
||||
- install -d $(DESTDIR)$(LIBDIR)/frozen-bubble
|
||||
- install fb-server $(DESTDIR)$(LIBDIR)/frozen-bubble
|
||||
+ install -d $(DESTDIR)$(LIBEXECDIR)/frozen-bubble
|
||||
+ install fb-server $(DESTDIR)$(LIBEXECDIR)/frozen-bubble
|
||||
|
||||
.depend:
|
||||
$(CPP) $(CFLAGS) $(CPPFLAGS) -M $(ALLSRC) > .depend
|
13
games/frozen-bubble/patches/patch-settings_mk
Normal file
13
games/frozen-bubble/patches/patch-settings_mk
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-settings_mk,v 1.1.1.1 2009/06/02 22:07:25 sthen Exp $
|
||||
--- settings.mk.orig Sun Jun 8 15:48:22 2008
|
||||
+++ settings.mk Tue May 26 00:05:38 2009
|
||||
@@ -1,6 +1,7 @@
|
||||
-PREFIX = /usr/local
|
||||
+PREFIX = ${LOCALBASE}
|
||||
DATADIR = $(PREFIX)/share
|
||||
LIBDIR = $(PREFIX)/lib
|
||||
+LIBEXECDIR = $(PREFIX)/libexec
|
||||
BINDIR = $(PREFIX)/bin
|
||||
-MANDIR = $(DATADIR)/man
|
||||
+MANDIR = $(PREFIX)/man
|
||||
LOCALEDIR = $(DATADIR)/locale
|
4
games/frozen-bubble/pkg/DESCR-main
Normal file
4
games/frozen-bubble/pkg/DESCR-main
Normal file
@ -0,0 +1,4 @@
|
||||
An amazingly cute game of popping bubbles. Full-featured, colorful
|
||||
animated penguin eye candy, 100 levels of 1p game, hours and hours of
|
||||
2p game, a level-editor, 3 professional quality 20-channels musics, 15
|
||||
stereo sound effects, 7 unique graphical transition effects.
|
7
games/frozen-bubble/pkg/DESCR-server
Normal file
7
games/frozen-bubble/pkg/DESCR-server
Normal file
@ -0,0 +1,7 @@
|
||||
The Frozen-Bubble server is a standalone program acting as a bridge
|
||||
between Frozen-Bubble clients (where the players are). It uses the IP
|
||||
protocol thus players need Internet connectivity (though it's possible
|
||||
to play LAN games on a LAN with IP support but no Internet
|
||||
connectivity). It has some logic to control creating and joining a
|
||||
game, and then becomes a pure relay for in-game information
|
||||
communicated between players.
|
3274
games/frozen-bubble/pkg/PLIST-main
Normal file
3274
games/frozen-bubble/pkg/PLIST-main
Normal file
File diff suppressed because it is too large
Load Diff
5
games/frozen-bubble/pkg/PLIST-server
Normal file
5
games/frozen-bubble/pkg/PLIST-server
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $OpenBSD: PLIST-server,v 1.1.1.1 2009/06/02 22:07:25 sthen Exp $
|
||||
@comment @dirrm ${P5ARCH}/
|
||||
@comment @dirrm ${P5ARCH}/auto/
|
||||
libexec/frozen-bubble/
|
||||
@bin libexec/frozen-bubble/fb-server
|
Loading…
x
Reference in New Issue
Block a user