8590f61773
Changes: Nearly exactly one year after the first ever release of Frozen-Bubble, the team strikes back with a new release providing major features enhancements: * a level editor has been added * the 1p-game now comes with 100 levels (instead of 50) * all the graphics have been re-designed * the 2p-game features the chain-reaction mechanism (as an option) * manual pages (from Debian)
47 lines
1.8 KiB
Text
47 lines
1.8 KiB
Text
$NetBSD: patch-ab,v 1.3 2003/04/16 22:04:32 salo Exp $
|
|
|
|
--- Makefile.orig 2003-02-03 15:36:55.000000000 +0100
|
|
+++ Makefile 2003-04-16 23:45:54.000000000 +0200
|
|
@@ -1,33 +1,30 @@
|
|
DIRS = c_stuff
|
|
|
|
-PREFIX = /usr/local
|
|
DATADIR = $(PREFIX)/share
|
|
BINDIR = $(PREFIX)/bin
|
|
-MANDIR = $(DATADIR)/man
|
|
+MANDIR = $(PREFIX)/man
|
|
|
|
all: dirs
|
|
|
|
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 1 if $$mj<1 || $$mn<19'; then echo -e "\n *** I need perl-SDL version 1.19.0 or upper"; false; fi
|
|
+ @if ! ${PERL5} -e 'use SDL'; then echo -e "\n *** I need perl-SDL installed"; false; fi
|
|
+ @if ! ${PERL5} -e 'use SDL; ($$mj, $$mn, $$mc) = split /\./, $$SDL::VERSION; exit 1 if $$mj<1 || $$mn<19'; 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 ;\
|
|
done
|
|
@if [ ! -d save_virgin ]; then mkdir save_virgin; cp c_stuff/lib/fb_stuff.pm save_virgin; fi
|
|
- cp -f save_virgin/fb_stuff.pm c_stuff/lib/fb_stuff.pm
|
|
- perl -pi -e 's|\@DATADIR\@|$(DATADIR)|' c_stuff/lib/fb_stuff.pm
|
|
+ ${CP} -f save_virgin/fb_stuff.pm c_stuff/lib/fb_stuff.pm
|
|
+ ${PERL5} -pi -e 's|\@DATADIR\@|$(DATADIR)|' c_stuff/lib/fb_stuff.pm
|
|
|
|
|
|
install: $(ALL)
|
|
@for n in $(DIRS); do \
|
|
(cd $$n; $(MAKE) install) \
|
|
done
|
|
- install -d $(BINDIR)
|
|
- install frozen-bubble frozen-bubble-editor $(BINDIR)
|
|
- install -d $(DATADIR)/frozen-bubble
|
|
- cp -a gfx snd data $(DATADIR)/frozen-bubble
|
|
- install -d $(MANDIR)/man6
|
|
- install doc/*.6 $(MANDIR)/man6
|
|
+ ${BSD_INSTALL_SCRIPT} frozen-bubble frozen-bubble-editor $(BINDIR)
|
|
+ ${BSD_INSTALL_DATA_DIR} $(DATADIR)/frozen-bubble
|
|
+ ${CP} -R gfx snd data $(DATADIR)/frozen-bubble
|
|
+ ${BSD_INSTALL_MAN} doc/*.6 $(MANDIR)/man6
|
|
|
|
clean:
|
|
@for n in $(DIRS); do \
|