Index: head/games/einstein/Makefile =================================================================== --- head/games/einstein/Makefile (revision 473207) +++ head/games/einstein/Makefile (revision 473208) @@ -1,29 +1,27 @@ # Created by: edwin@mavetju.org # $FreeBSD$ PORTNAME= einstein PORTVERSION= 2.0 PORTREVISION= 10 CATEGORIES= games MASTER_SITES= http://games.flowix.com/files/einstein/ \ http://mirror.amdmi3.ru/distfiles/ DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= amdmi3@FreeBSD.org COMMENT= Remake of old DOS game Sherlock, which was inspired by Albert Einstein's puzzle LICENSE= GPLv2+ # (now dead) website mentions GPL +LIB_DEPENDS= libfreetype.so:print/freetype2 + USE_SDL= sdl ttf mixer WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -post-patch: - @${REINPLACE_CMD} \ - -e "s,@@STAGEDIR@@,${STAGEDIR}," \ - -e "s,@@PREFIX@@,${PREFIX}," \ - ${WRKSRC}/Makefile +CXXFLAGS+= -Wno-c++11-narrowing post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/einstein .include Index: head/games/einstein/files/patch-Makefile =================================================================== --- head/games/einstein/files/patch-Makefile (revision 473207) +++ head/games/einstein/files/patch-Makefile (revision 473208) @@ -1,34 +1,45 @@ ---- Makefile.orig Mon Sep 26 07:20:30 2005 -+++ Makefile Thu Oct 13 08:35:14 2005 -@@ -5,7 +5,7 @@ +--- Makefile.orig 2005-09-25 21:20:30 UTC ++++ Makefile +@@ -5,7 +5,6 @@ ######################################## # installation prefix -PREFIX=/usr/local -+PREFIX=@@PREFIX@@ ######################################## # -@@ -16,8 +16,8 @@ - OPTIMIZE=#-O6 -march=pentium4 -mfpmath=sse -fomit-frame-pointer -funroll-loops - PROFILER=#-pg - DEBUG=#-ggdb +@@ -13,11 +12,8 @@ PREFIX=/usr/local + # + ######################################## + +-OPTIMIZE=#-O6 -march=pentium4 -mfpmath=sse -fomit-frame-pointer -funroll-loops +-PROFILER=#-pg +-DEBUG=#-ggdb -CXXFLAGS=-pipe -Wall $(OPTIMIZE) $(DEBUG) `sdl-config --cflags` -DPREFIX=L\"$(PREFIX)\" $(PROFILER) -LNFLAGS=-pipe -lSDL_ttf -lfreetype `sdl-config --libs` -lz -lSDL_mixer $(PROFILER) -+CXXFLAGS=-pipe -Wall $(OPTIMIZE) $(DEBUG) `${SDL_CONFIG} --cflags` -DPREFIX=L\"$(PREFIX)\" $(PROFILER) -+LNFLAGS=-pipe -lSDL_ttf -lfreetype `${SDL_CONFIG} --libs` -lz -lSDL_mixer $(PROFILER) ++CXXFLAGS+=-Wall `${SDL_CONFIG} --cflags` -DPREFIX=L\"$(PREFIX)\" ++LDFLAGS+=-lSDL_ttf -lfreetype `${SDL_CONFIG} --libs` -lz -lSDL_mixer INSTALL=install TARGET=einstein -@@ -61,8 +61,9 @@ +@@ -49,7 +45,7 @@ all: $(TARGET) + + + $(TARGET): $(OBJECTS) +- $(CXX) $(LNFLAGS) $(OBJECTS) -o $(TARGET) ++ $(CXX) $(LDFLAGS) $(OBJECTS) -o $(TARGET) + + clean: + rm -f $(OBJECTS) core* *core $(TARGET) *~ +@@ -61,8 +57,9 @@ run: $(TARGET) ./$(TARGET) install: $(TARGET) - $(INSTALL) -s -D $(TARGET) $(PREFIX)/bin/$(TARGET) - $(INSTALL) -D einstein.res $(PREFIX)/share/einstein/res/einstein.res -+ $(INSTALL) $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) ++ $(BSD_INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET) + mkdir -p $(DESTDIR)$(PREFIX)/share/einstein/res/ -+ $(INSTALL) einstein.res $(DESTDIR)$(PREFIX)/share/einstein/res/einstein.res ++ $(BSD_INSTALL_DATA) einstein.res $(DESTDIR)$(PREFIX)/share/einstein/res/einstein.res # DO NOT DELETE THIS LINE -- make depend depends on it. Index: head/games/einstein/files/patch-convert.h =================================================================== --- head/games/einstein/files/patch-convert.h (revision 473207) +++ head/games/einstein/files/patch-convert.h (revision 473208) @@ -1,10 +1,10 @@ ---- convert.h.orig 2005-08-14 06:40:58.000000000 +0400 -+++ convert.h 2015-03-27 02:57:05.826432000 +0300 +--- convert.h.orig 2005-08-14 02:40:58 UTC ++++ convert.h @@ -5,6 +5,7 @@ #include #include #include +#include #include "exceptions.h" #include "unicode.h" Index: head/games/einstein/files/patch-formatter.cpp =================================================================== --- head/games/einstein/files/patch-formatter.cpp (revision 473207) +++ head/games/einstein/files/patch-formatter.cpp (revision 473208) @@ -1,31 +1,31 @@ -diff -urN einstein-2.0.orig/formatter.cpp einstein-2.0/formatter.cpp ---- formatter.cpp 2005-08-13 22:40:58.000000000 -0400 -+++ formatter.cpp 2006-08-15 11:18:28.000000000 -0400 -@@ -58,7 +58,7 @@ +--- formatter.cpp.orig 2005-08-14 02:40:58 UTC ++++ formatter.cpp +@@ -58,7 +58,7 @@ Formatter::Formatter(unsigned char *data if ((c.type == INT_ARG) || (c.type == STRING_ARG) || (c.type == FLOAT_ARG) || (c.type == DOUBLE_ARG)) { - int no = (int)c.data; + long int no = (long int)c.data; args[no - 1] = c.type; } } -@@ -123,7 +123,7 @@ +@@ -123,7 +123,7 @@ class StrArgValue: public ArgValue std::wstring Formatter::format(std::vector &argValues) const { std::wstring s; - int no; + long int no; for (int i = 0; i < commandsCnt; i++) { Command *cmd = &commands[i]; -@@ -135,8 +135,8 @@ +@@ -135,8 +135,8 @@ std::wstring Formatter::format(std::vect case STRING_ARG: case INT_ARG: - no = (int)cmd->data - 1; - if (no < (int)argValues.size()) + no = (long int)cmd->data - 1; + if (no < (long int)argValues.size()) s += argValues[no]->format(cmd); break; + Index: head/games/einstein/files/patch-random.cpp =================================================================== --- head/games/einstein/files/patch-random.cpp (revision 473207) +++ head/games/einstein/files/patch-random.cpp (revision 473208) @@ -1,8 +1,8 @@ ---- random.cpp.orig +--- random.cpp.orig 2005-08-14 02:40:58 UTC +++ random.cpp @@ -1,3 +1,5 @@ +#include "sys/time.h" + #include "random.h" #include "utils.h" - + Index: head/games/einstein/files/patch-unicode.cpp =================================================================== --- head/games/einstein/files/patch-unicode.cpp (revision 473207) +++ head/games/einstein/files/patch-unicode.cpp (revision 473208) @@ -1,9 +1,9 @@ ---- unicode.cpp.orig 2005-08-14 06:40:58.000000000 +0400 -+++ unicode.cpp 2015-03-27 02:57:47.513365000 +0300 +--- unicode.cpp.orig 2005-08-14 02:40:58 UTC ++++ unicode.cpp @@ -1,5 +1,6 @@ #include #include +#include #ifdef WIN32 #include #endif Index: head/games/einstein/files/patch-utils.cpp =================================================================== --- head/games/einstein/files/patch-utils.cpp (revision 473207) +++ head/games/einstein/files/patch-utils.cpp (revision 473208) @@ -1,10 +1,10 @@ ---- utils.cpp.orig Tue Feb 1 08:23:17 2005 -+++ utils.cpp Tue Feb 1 08:23:27 2005 -@@ -9,6 +9,7 @@ +--- utils.cpp.orig 2005-08-23 21:26:23 UTC ++++ utils.cpp +@@ -11,6 +11,7 @@ //#endif #include +#include #include "utils.h" #include "main.h"