Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jun 2018 18:28:00 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r473208 - in head/games/einstein: . files
Message-ID:  <201806241828.w5OIS0IS091421@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Jun 24 18:28:00 2018
New Revision: 473208
URL: https://svnweb.freebsd.org/changeset/ports/473208

Log:
  - Add missing LIB_DEPEND
  - Fix build with clang 6
  - Regenerate patches

Modified:
  head/games/einstein/Makefile
  head/games/einstein/files/patch-Makefile
  head/games/einstein/files/patch-convert.h
  head/games/einstein/files/patch-formatter.cpp
  head/games/einstein/files/patch-random.cpp
  head/games/einstein/files/patch-unicode.cpp
  head/games/einstein/files/patch-utils.cpp

Modified: head/games/einstein/Makefile
==============================================================================
--- head/games/einstein/Makefile	Sun Jun 24 16:13:06 2018	(r473207)
+++ head/games/einstein/Makefile	Sun Jun 24 18:28:00 2018	(r473208)
@@ -14,14 +14,12 @@ COMMENT=	Remake of old DOS game Sherlock, which was in
 
 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

Modified: head/games/einstein/files/patch-Makefile
==============================================================================
--- head/games/einstein/files/patch-Makefile	Sun Jun 24 16:13:06 2018	(r473207)
+++ head/games/einstein/files/patch-Makefile	Sun Jun 24 18:28:00 2018	(r473208)
@@ -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.
  

Modified: head/games/einstein/files/patch-convert.h
==============================================================================
--- head/games/einstein/files/patch-convert.h	Sun Jun 24 16:13:06 2018	(r473207)
+++ head/games/einstein/files/patch-convert.h	Sun Jun 24 18:28:00 2018	(r473208)
@@ -1,5 +1,5 @@
---- 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 <iostream>
  #include <sstream>

Modified: head/games/einstein/files/patch-formatter.cpp
==============================================================================
--- head/games/einstein/files/patch-formatter.cpp	Sun Jun 24 16:13:06 2018	(r473207)
+++ head/games/einstein/files/patch-formatter.cpp	Sun Jun 24 18:28:00 2018	(r473208)
@@ -1,7 +1,6 @@
-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))
              {
@@ -10,7 +9,7 @@ diff -urN einstein-2.0.orig/formatter.cpp einstein-2.0
                  args[no - 1] = c.type;
              }
          }
-@@ -123,7 +123,7 @@
+@@ -123,7 +123,7 @@ class StrArgValue: public ArgValue
  std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const
  {
      std::wstring s;
@@ -19,7 +18,7 @@ diff -urN einstein-2.0.orig/formatter.cpp einstein-2.0
  
      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:
@@ -29,3 +28,4 @@ diff -urN einstein-2.0.orig/formatter.cpp einstein-2.0
 +                if (no < (long int)argValues.size())
                      s += argValues[no]->format(cmd);
                  break;
+ 

Modified: head/games/einstein/files/patch-random.cpp
==============================================================================
--- head/games/einstein/files/patch-random.cpp	Sun Jun 24 16:13:06 2018	(r473207)
+++ head/games/einstein/files/patch-random.cpp	Sun Jun 24 18:28:00 2018	(r473208)
@@ -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"
-
+ 

Modified: head/games/einstein/files/patch-unicode.cpp
==============================================================================
--- head/games/einstein/files/patch-unicode.cpp	Sun Jun 24 16:13:06 2018	(r473207)
+++ head/games/einstein/files/patch-unicode.cpp	Sun Jun 24 18:28:00 2018	(r473208)
@@ -1,5 +1,5 @@
---- 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 <wchar.h>
  #include <stdlib.h>

Modified: head/games/einstein/files/patch-utils.cpp
==============================================================================
--- head/games/einstein/files/patch-utils.cpp	Sun Jun 24 16:13:06 2018	(r473207)
+++ head/games/einstein/files/patch-utils.cpp	Sun Jun 24 18:28:00 2018	(r473208)
@@ -1,6 +1,6 @@
---- 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 <fstream>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806241828.w5OIS0IS091421>