diff options
Diffstat (limited to 'games/reminiscence')
-rw-r--r-- | games/reminiscence/Makefile | 13 | ||||
-rw-r--r-- | games/reminiscence/distinfo | 4 | ||||
-rw-r--r-- | games/reminiscence/files/patch-Makefile | 40 | ||||
-rw-r--r-- | games/reminiscence/files/patch-main.cpp | 24 |
4 files changed, 44 insertions, 37 deletions
diff --git a/games/reminiscence/Makefile b/games/reminiscence/Makefile index d67bea6a9235..f3413c16af07 100644 --- a/games/reminiscence/Makefile +++ b/games/reminiscence/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= REminiscence -PORTVERSION= 0.2.1 -PORTREVISION= 3 +PORTVERSION= 0.3.0 CATEGORIES= games MASTER_SITES= http://cyxdown.free.fr/reminiscence/ \ http://mirror.amdmi3.ru/distfiles/ @@ -11,7 +10,9 @@ MASTER_SITES= http://cyxdown.free.fr/reminiscence/ \ MAINTAINER= amdmi3@FreeBSD.org COMMENT= Rewritten engine for Flashback -USES= tar:bzip2 gmake +LIB_DEPENDS= libvorbisidec.so:audio/libtremor + +USES= gmake pkgconfig tar:bzip2 USE_SDL= sdl ALL_TARGET= rs @@ -30,8 +31,10 @@ post-patch: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/rs ${STAGEDIR}${PREFIX}/bin/remin - ${MKDIR} ${STAGEDIR}${DATADIR}/data - ${MKDIR} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DATADIR}/data + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/ .include <bsd.port.mk> diff --git a/games/reminiscence/distinfo b/games/reminiscence/distinfo index c7b33c5407d3..bbd3b3cd276d 100644 --- a/games/reminiscence/distinfo +++ b/games/reminiscence/distinfo @@ -1,2 +1,2 @@ -SHA256 (REminiscence-0.2.1.tar.bz2) = 3168ffb7cd29e72a150e22edc6f0891001288f4c89d7900cbac8864ce763c2bd -SIZE (REminiscence-0.2.1.tar.bz2) = 101621 +SHA256 (REminiscence-0.3.0.tar.bz2) = 9bb3693ad6c2f6e2ec6a5672d887866eb528c2c206a1bf8a046c39e496382f5a +SIZE (REminiscence-0.3.0.tar.bz2) = 109524 diff --git a/games/reminiscence/files/patch-Makefile b/games/reminiscence/files/patch-Makefile index ae5ecfc02afb..482ae4db6495 100644 --- a/games/reminiscence/files/patch-Makefile +++ b/games/reminiscence/files/patch-Makefile @@ -1,18 +1,30 @@ ---- Makefile.orig 2011-03-10 20:47:57.000000000 +0300 -+++ Makefile 2011-05-05 11:43:09.000000000 +0400 -@@ -1,12 +1,11 @@ +--- Makefile.orig 2016-03-06 13:27:40 UTC ++++ Makefile +@@ -1,12 +1,13 @@ +- + SDL_CFLAGS = `sdl-config --cflags` + SDL_LIBS = `sdl-config --libs` +-VORBIS_LIBS = -lvorbisidec +-MODPLUG_LIBS = -lmodplug ++VORBIS_CFLAGS = `pkg-config --cflags vorbisidec` ++VORBIS_LIBS = `pkg-config --libs vorbisidec` ++#MODPLUG_CFLAGS = `pkg-config --cflags libmodplug` ++#MODPLUG_LIBS = `pkg-config --libs libmodplug` + ZLIB_LIBS = -lz --SDL_CFLAGS = `sdl-config --cflags` --SDL_LIBS = `sdl-config --libs` -+SDL_CFLAGS = `${SDL_CONFIG} --cflags` -+SDL_LIBS = `${SDL_CONFIG} --libs` +-CXX := clang++ +-CXXFLAGS := -Wall -MMD $(SDL_CFLAGS) -DUSE_ZLIB # -DUSE_MODPLUG ++CXX ?= clang++ ++CXXFLAGS += -Wall -MMD $(SDL_CFLAGS) $(VORBIS_CFLAGS) -DUSE_ZLIB # -DUSE_MODPLUG - DEFINES = -DBYPASS_PROTECTION - #DEFINES = -DBYPASS_PROTECTION -DENABLE_PASSWORD_MENU -DNDEBUG + SRCS = collision.cpp cutscene.cpp file.cpp fs.cpp game.cpp graphics.cpp main.cpp menu.cpp \ + mixer.cpp mod_player.cpp ogg_player.cpp piege.cpp resource.cpp resource_aba.cpp \ +@@ -16,7 +17,7 @@ SRCS = collision.cpp cutscene.cpp file.c + OBJS = $(SRCS:.cpp=.o) + DEPS = $(SRCS:.cpp=.d) --CXX = g++ --CXXFLAGS := -g -O -Wall -Wuninitialized -Wshadow -Wimplicit -Wundef -Wreorder -Wnon-virtual-dtor -Wno-multichar -+CXXFLAGS += -Wall -Wuninitialized -Wshadow -Wimplicit -Wundef -Wreorder -Wnon-virtual-dtor -Wno-multichar - CXXFLAGS += -MMD $(SDL_CFLAGS) -DUSE_ZLIB $(DEFINES) +-LIBS = $(SDL_LIBS) $(VORBIS_LIBS) $(MODPLUG_LIBS) $(ZLIB_LIBS) ++LIBS = $(SDL_LIBS) $(VORBIS_LIBS) $(ZLIB_LIBS) - SRCS = collision.cpp cutscene.cpp file.cpp fs.cpp game.cpp graphics.cpp main.cpp menu.cpp \ + rs: $(OBJS) + $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) diff --git a/games/reminiscence/files/patch-main.cpp b/games/reminiscence/files/patch-main.cpp index 402034fb67af..a16b6e478877 100644 --- a/games/reminiscence/files/patch-main.cpp +++ b/games/reminiscence/files/patch-main.cpp @@ -1,14 +1,6 @@ ---- main.cpp.orig 2011-03-10 23:37:01.000000000 +0300 -+++ main.cpp 2011-05-05 11:40:07.000000000 +0400 -@@ -19,6 +19,7 @@ - #include "fs.h" - #include "game.h" - #include "systemstub.h" -+#include <sys/stat.h> - - static const char *USAGE = - "REminiscence - Flashback Interpreter\n" -@@ -83,8 +84,15 @@ +--- main.cpp.orig 2016-03-02 09:36:17 UTC ++++ main.cpp +@@ -125,8 +125,15 @@ static const int DEFAULT_SCALER = SCALER #undef main int main(int argc, char *argv[]) { @@ -22,12 +14,12 @@ const char *dataPath = "DATA"; - const char *savePath = "."; + const char *savePath = buf; - const char *levelNum = "0"; - for (int i = 1; i < argc; ++i) { - bool opt = false; -@@ -111,5 +119,6 @@ - g->run(); + int levelNum = 0; + int scaler = DEFAULT_SCALER; + bool fullscreen = false; +@@ -191,5 +198,6 @@ int main(int argc, char *argv[]) { delete g; + stub->destroy(); delete stub; + free(buf); return 0; |