From 8408f73c0a9cdf1487121ec9c54e35f49730f19c Mon Sep 17 00:00:00 2001 From: begasus Date: Sun, 31 Aug 2014 19:52:12 +0200 Subject: [PATCH] moleinvasion, added new recipe and patch file --- .../moleinvasion/moleinvasion-0.4.recipe | 58 +++++++++++++++++++ .../patches/moleinvasion-0.4.patch | 49 ++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 games-arcade/moleinvasion/moleinvasion-0.4.recipe create mode 100644 games-arcade/moleinvasion/patches/moleinvasion-0.4.patch diff --git a/games-arcade/moleinvasion/moleinvasion-0.4.recipe b/games-arcade/moleinvasion/moleinvasion-0.4.recipe new file mode 100644 index 000000000..2219c3b25 --- /dev/null +++ b/games-arcade/moleinvasion/moleinvasion-0.4.recipe @@ -0,0 +1,58 @@ +SUMMARY="Mole Invasion is a 2D platform adventure game for TUX" +DESCRIPTION="Mole Invasion is a 2D platform adventure game for TUX, \ +getting to kill the evil moles from the different scenarios." +HOMEPAGE="http://moleinvasion.tuxfamily.org/" +LICENSE="GNU GPL v2" +COPYRIGHT="Guinns(coding), Skeespin(gfx), Bohwaz(music)" +SRC_URI="ftp://download.tuxfamily.org/minvasion/packages/MoleInvasion-0.4.tar.bz2" +CHECKSUM_SHA256="a011361f07c06d79a5ba6d110d7b06b59da2c57970515d24fab063fe991d922c" +REVISION="1" +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" + +PATCHES="moleinvasion-0.4.patch" + +PROVIDES=" + cmd:moleinvasion = $portVersion + cmd:moleinvasion_editlevel = $portVersion + cmd:moleinvasion_editworld = $portVersion + " + +REQUIRES=" + haiku >= $haikuVersion + lib:libgl + lib:libsdl + lib:libsdl_mixer + lib:libsdl_image + lib:libsdl_ttf + lib:libsmpeg + " + +BUILD_REQUIRES=" + haiku_devel >= $haikuVersion + devel:libsdl + devel:libsdl_mixer + devel:libsdl_image + devel:libsdl_ttf + devel:libsmpeg + " + +BUILD_PREREQUIRES=" + cmd:make + cmd:find + cmd:gcc + " + +BUILD() +{ + cd src + make DESTDIR=$binDir FINALEXEDIR=$binDir FINALDATADIR=$dataDir +} + +INSTALL() +{ + mkdir -p music + cd src + make install DESTDIR=$binDir + make install-data DESTDIR=$dataDir + addAppDeskbarSymlink $binDir/moleinvasion MoleInvasion +} diff --git a/games-arcade/moleinvasion/patches/moleinvasion-0.4.patch b/games-arcade/moleinvasion/patches/moleinvasion-0.4.patch new file mode 100644 index 000000000..22891f5a1 --- /dev/null +++ b/games-arcade/moleinvasion/patches/moleinvasion-0.4.patch @@ -0,0 +1,49 @@ +--- moleinvasion-0.4/src/tool.c.org 2014-08-26 21:59:45.137625600 +0200 ++++ moleinvasion-0.4/src/tool.c 2014-08-26 21:26:28.667680768 +0200 +@@ -89,6 +89,7 @@ + #endif + { mapfailed=1; + /* no nmap() ... do it myself */ ++ { + unsigned char *ptr2,buff[256]; + int lu; + ptr=malloc(statb.st_size); +@@ -98,6 +99,7 @@ + ptr2+=lu; + } + memcpy(ptr2,buff,lu); ++ } + } + + ret=update_crc(0xffffffffL, ptr, statb.st_size) ^ 0xffffffffL; +--- moleinvasion-0.4/src/Makefile.org 2014-08-29 21:07:37.381157376 +0200 ++++ moleinvasion-0.4/src/Makefile 2014-08-29 21:04:24.757596160 +0200 +@@ -2,7 +2,7 @@ + + CFLAGS = -g -Wall $$(sdl-config --cflags) -DHAVE_OPENGL #--coverage #-fprofile-use #-pg + LDFLAGS = -O2 #--coverage #-fprofile-use #-pg +-LDLIBS = $$(sdl-config --libs) -lSDL_image -lSDL_mixer -lSDL_ttf ++LDLIBS = $$(sdl-config --libs) -lSDL_image -lSDL_mixer -lSDL_ttf -lsmpeg + + OBJS = graphics.o font.o list.o sprite.o events.o editor_texts.o \ + Splayer.o Sother.o background.o video.o tool.o \ +@@ -22,8 +22,8 @@ + WINEDT = ../win/editor.exe + WINEDW = ../win/editworld.exe + +-FINALEXEDIR=$(DESTDIR)/usr/games +-FINALDATADIR=$(DESTDIR)/usr/share/games/moleinvasion ++FINALEXEDIR=$(DESTDIR) ++FINALDATADIR=$(DESTDIR) + + CFLAGS+=-DDATADIR='"$(FINALDATADIR)"' + +@@ -46,7 +46,7 @@ + mkdir -p $(FINALDATADIR)/lvl + mkdir -p $(FINALDATADIR)/txt + mkdir -p $(FINALDATADIR)/font +- cp -rf ../gfx ../font ../lvl ../snd ../music ../txt $(FINALDATADIR)/ ++ cp -rf ../gfx ../font ../lvl ../snd ../txt $(FINALDATADIR)/ + find $(FINALDATADIR)/ -name "*.*g" -exec chmod -x {} \; + -find $(FINALDATADIR)/ -name ".xvpics" -exec rm -rf {} \; +