From 1e0b6a75567d99b6ebcdd520f9b10f124b4f4d19 Mon Sep 17 00:00:00 2001
From: kili
Blob Wars : Metal Blob Solid is distributed and licensed under the GNU General Public License. You can read +-the full license by clicking here.
++the full license by clicking here. + +This license agreement is shown the first time the game is played. IT MUST NOT BE REMOVED UNDER ANY + CIRCUMSTANCES. DO NOT DISTRIBUTE THIS GAME IN ANY FORM WHERE THE USER DOES NOT SEE THE LICENSE.
diff --git a/games/blobwars/patches/patch-makefile b/games/blobwars/patches/patch-makefile new file mode 100644 index 00000000000..fd0732cfa09 --- /dev/null +++ b/games/blobwars/patches/patch-makefile @@ -0,0 +1,95 @@ +$OpenBSD: patch-makefile,v 1.1.1.1 2007/05/27 15:34:55 kili Exp $ +--- makefile.orig Sat May 5 16:22:48 2007 ++++ makefile Sun May 27 17:24:06 2007 +@@ -1,15 +1,14 @@ + PROG = blobwars + PAKNAME = blobwars.pak +-DOCS = doc/* ++DOCS = doc/*.{gif,png,html} + ICONS = icons/ + + VERSION = 1.07 + RELEASE = 1 + USEPAK = 1 + +-PREFIX=$(DESTDIR)/usr +-BINDIR = $(PREFIX)/games/ +-DATADIR = $(PREFIX)/share/games/blobwars/ ++BINDIR = $(PREFIX)/bin/ ++DATADIR = $(PREFIX)/share/$(PROG)/data/ + DOCDIR = $(PREFIX)/share/doc/$(PROG)/ + ICONDIR = $(PREFIX)/share/icons/hicolor/ + DESKTOPDIR = $(PREFIX)/share/applications/ +@@ -19,7 +18,7 @@ CXXFLAGS += `sdl-config --cflags` -DVERSION=$(VERSION) + CXXFLAGS += -DPAKNAME=\"$(PAKNAME)\" -DPAKLOCATION=\"$(DATADIR)\" -DUNIX -DGAMEPLAYMANUAL=\"$(DOCDIR)index.html\" -Wall + CXXFLAGS += -DLOCALEDIR=\"$(LOCALEDIR)\" + CXXFLAGS += $(CFLAGS) +-LIBS = `sdl-config --libs` -lSDL_mixer -lSDL_image -lSDL_ttf -lz ++LIBS = `sdl-config --libs` -lSDL_mixer -lSDL_image -lSDL_ttf -lz -lintl -liconv + + OBJS += aquaBoss.o bosses.o bullets.o cutscene.o + OBJS += CAudio.o CBoss.o CCollision.o CCutscene.o CData.o CEffect.o CEngine.o CEntity.o CFileData.o CGame.o +@@ -38,7 +37,7 @@ PAKOBJS = CFileData.o pak.o + LOCALE_MO = $(patsubst %.po,%.mo,$(wildcard locale/*.po)) + + # top-level rule to create the program. +-all: $(PROG) pak $(LOCALE_MO) ++all: $(PROG) buildpak $(LOCALE_MO) + + # compiling other source files. + %.o: src/%.cpp src/%.h src/defs.h src/defines.h src/headers.h +@@ -61,35 +60,33 @@ mapeditor: $(MAPOBJS) + clean: + $(RM) $(GAMEOBJS) mapEditor.o pak.o $(PROG) $(PAKNAME) pak mapeditor $(LOCALE_MO) + +-buildpak: ++buildpak: pak + ./pak data gfx music sound $(PAKNAME) + + # install + install: ++ $(BSD_INSTALL_PROGRAM_DIR) $(BINDIR) ++ $(BSD_INSTALL_DATA_DIR) $(DATADIR) ++ $(BSD_INSTALL_DATA_DIR) $(DOCDIR) ++ $(BSD_INSTALL_DATA_DIR) $(ICONDIR)16x16/apps ++ $(BSD_INSTALL_DATA_DIR) $(ICONDIR)32x32/apps ++ $(BSD_INSTALL_DATA_DIR) $(ICONDIR)64x64/apps ++ $(BSD_INSTALL_DATA_DIR) $(DESKTOPDIR) + +- ./pak data gfx music sound $(PAKNAME) ++ $(BSD_INSTALL_PROGRAM) $(PROG) $(BINDIR) ++ $(BSD_INSTALL_DATA) $(PAKNAME) $(DATADIR) ++ $(BSD_INSTALL_DATA) $(DOCS) $(DOCDIR) ++ $(BSD_INSTALL_DATA) $(ICONS)$(PROG).png $(ICONDIR)32x32/apps ++ $(BSD_INSTALL_DATA) $(ICONS)$(PROG)-mini.png \ ++ $(ICONDIR)16x16/apps/$(PROG).png ++ $(BSD_INSTALL_DATA) $(ICONS)$(PROG)-large.png \ ++ $(ICONDIR)64x64/apps/$(PROG).png ++ $(BSD_INSTALL_DATA) $(ICONS)$(PROG).desktop $(DESKTOPDIR) + +- mkdir -p $(BINDIR) +- mkdir -p $(DATADIR) +- mkdir -p $(DOCDIR) +- mkdir -p $(ICONDIR)16x16/apps +- mkdir -p $(ICONDIR)32x32/apps +- mkdir -p $(ICONDIR)64x64/apps +- mkdir -p $(DESKTOPDIR) +- +- install -o root -g games -m 755 $(PROG) $(BINDIR)$(PROG) +- install -o root -g games -m 644 $(PAKNAME) $(DATADIR)$(PAKNAME) +- install -o root -g games -m 644 $(DOCS) $(DOCDIR) +- cp $(ICONS)$(PROG).png $(ICONDIR)32x32/apps/ +- cp $(ICONS)$(PROG)-mini.png $(ICONDIR)16x16/apps/$(PROG).png +- cp $(ICONS)$(PROG)-large.png $(ICONDIR)64x64/apps/$(PROG).png +- cp $(ICONS)$(PROG).desktop $(DESKTOPDIR) +- + @for f in $(LOCALE_MO); do \ + lang=`echo $$f | sed -e 's/^locale\///;s/\.mo$$//'`; \ +- mkdir -p $(LOCALEDIR)$$lang/LC_MESSAGES; \ +- echo "cp $$f $(LOCALEDIR)$$lang/LC_MESSAGES/$(PROG).mo"; \ +- cp $$f $(LOCALEDIR)$$lang/LC_MESSAGES/$(PROG).mo; \ ++ $(BSD_INSTALL_DATA_DIR) $(LOCALEDIR)$$lang/LC_MESSAGES; \ ++ $(BSD_INSTALL_DATA) $$f $(LOCALEDIR)$$lang/LC_MESSAGES/$(PROG).mo; \ + done + + uninstall: diff --git a/games/blobwars/pkg/DESCR b/games/blobwars/pkg/DESCR new file mode 100644 index 00000000000..bc599cddf51 --- /dev/null +++ b/games/blobwars/pkg/DESCR @@ -0,0 +1,9 @@ +Since their world was invaded by an alien race, the Blobs have faced +a lifetime of war. But now they have a chance to win the war once +and for all. + +In Blob Wars : Metal Blob Solid, you take on the role of a fearless +Blob agent, Bob. Bob's mission is to infiltrate the various enemy +bases around the Blobs' homeworld and rescue as many MIAs as possible. +But standing in his way are many vicious aliens, other Blobs who +have been assimilated and the evil alien leader, Galdov. diff --git a/games/blobwars/pkg/PLIST b/games/blobwars/pkg/PLIST new file mode 100644 index 00000000000..f6d2198fb4d --- /dev/null +++ b/games/blobwars/pkg/PLIST @@ -0,0 +1,44 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/05/27 15:34:55 kili Exp $ +bin/blobwars +share/applications/ +share/applications/blobwars.desktop +share/blobwars/ +share/blobwars/data/ +share/blobwars/data/blobwars.pak +share/doc/blobwars/ +share/doc/blobwars/alienDevice.gif +share/doc/blobwars/aquaLung.png +share/doc/blobwars/bob.gif +share/doc/blobwars/cherry.png +share/doc/blobwars/contents.html +share/doc/blobwars/eyeDroid.gif +share/doc/blobwars/galdov.png +share/doc/blobwars/grenadeIcon.png +share/doc/blobwars/index.html +share/doc/blobwars/jetpack.gif +share/doc/blobwars/keyCard.gif +share/doc/blobwars/laserIcon.png +share/doc/blobwars/machineGunIcon.png +share/doc/blobwars/manual.html +share/doc/blobwars/pistolBlob.gif +share/doc/blobwars/pistolIcon.png +share/doc/blobwars/points.gif +share/doc/blobwars/scaredMIA.gif +share/doc/blobwars/spreadIcon.png +share/doc/blobwars/title.png +share/icons/ +share/icons/hicolor/ +share/icons/hicolor/16x16/ +share/icons/hicolor/16x16/apps/ +share/icons/hicolor/16x16/apps/blobwars.png +share/icons/hicolor/32x32/ +share/icons/hicolor/32x32/apps/ +share/icons/hicolor/32x32/apps/blobwars.png +share/icons/hicolor/64x64/ +share/icons/hicolor/64x64/apps/ +share/icons/hicolor/64x64/apps/blobwars.png +share/locale/ca/LC_MESSAGES/blobwars.mo +share/locale/es/LC_MESSAGES/blobwars.mo +share/locale/nl/LC_MESSAGES/blobwars.mo +@exec %D/bin/update-desktop-database +@unexec %D/bin/update-desktop-database