Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 2017 18:13:46 +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: r455597 - in head/games/maxr: . files
Message-ID:  <201712051813.vB5IDkkk035819@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Dec  5 18:13:46 2017
New Revision: 455597
URL: https://svnweb.freebsd.org/changeset/ports/455597

Log:
  - Update to 0.2.9

Added:
  head/games/maxr/files/
  head/games/maxr/files/patch-src_config_selectplatformconfig.h   (contents, props changed)
Modified:
  head/games/maxr/Makefile
  head/games/maxr/distinfo

Modified: head/games/maxr/Makefile
==============================================================================
--- head/games/maxr/Makefile	Tue Dec  5 18:07:27 2017	(r455596)
+++ head/games/maxr/Makefile	Tue Dec  5 18:13:46 2017	(r455597)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	maxr
-PORTVERSION=	0.2.8
-PORTREVISION=	4
+PORTVERSION=	0.2.9
 CATEGORIES=	games
 MASTER_SITES=	http://www.maxr.org/downloads/ \
 		http://mirror.amdmi3.ru/distfiles/
@@ -12,18 +11,14 @@ MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Mechanized Assault and Exploration Reloaded
 
 LICENSE=	GPLv2+
-LICENSE_FILE=	${WRKSRC}/COPYING
+LICENSE_FILE=	${WRKSRC}/data/COPYING
 
-USES=		localbase
-GNU_CONFIGURE=	yes
-USE_SDL=	sdl mixer net
+USES=		cmake compiler:c++11-lib dos2unix
+DOS2UNIX_FILES=	src/config/selectplatformconfig.h
+USE_SDL=	sdl2 mixer2 net2
 
 PLIST_FILES=	bin/${PORTNAME}
 PORTDATA=	*
-PLIST_DIRS=	%%DATADIR%%/voices \
-		%%DATADIR%%/vehicles/sub/sub \
-		%%DATADIR%%/save \
-		%%DATADIR%%/mve
 
 DESKTOP_ENTRIES="M.A.X.R." \
 		"" \
@@ -32,10 +27,10 @@ DESKTOP_ENTRIES="M.A.X.R." \
 		"Game;StrategyGame;" \
 		false
 
-post-patch:
-	@${REINPLACE_CMD} -e '/^LIBS=/ s|-lSDL_|`${SDL_CONFIG} --libs` &|' \
-		-e '/^LIBS=/ s|-lSDL |`${SDL_CONFIG} --libs` |' \
-		${WRKSRC}/configure
-	@${REINPLACE_CMD} -e 's|cp -a|cp -RpP|' ${WRKSRC}/Makefile.in
+.include <bsd.port.pre.mk>
 
-.include <bsd.port.mk>
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000
+BROKEN=		does not build on 10.x
+.endif
+
+.include <bsd.port.post.mk>

Modified: head/games/maxr/distinfo
==============================================================================
--- head/games/maxr/distinfo	Tue Dec  5 18:07:27 2017	(r455596)
+++ head/games/maxr/distinfo	Tue Dec  5 18:13:46 2017	(r455597)
@@ -1,2 +1,3 @@
-SHA256 (maxr-0.2.8.tar.gz) = d083fdc73d7ca12fa7bd21cee0ecada3612be62f4fed5c87f73e5cb654867e98
-SIZE (maxr-0.2.8.tar.gz) = 14738324
+TIMESTAMP = 1467908301
+SHA256 (maxr-0.2.9.tar.gz) = 5f0afebcef5ca6449de175e5abf0e3772c4f238a0103361a50efb6349b2185ff
+SIZE (maxr-0.2.9.tar.gz) = 14847180

Added: head/games/maxr/files/patch-src_config_selectplatformconfig.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/maxr/files/patch-src_config_selectplatformconfig.h	Tue Dec  5 18:13:46 2017	(r455597)
@@ -0,0 +1,11 @@
+--- src/config/selectplatformconfig.h.orig	2016-06-03 22:11:14 UTC
++++ src/config/selectplatformconfig.h
+@@ -19,7 +19,7 @@
+ 
+ #ifndef MAXR_PLATFORM_CONFIG
+ 
+-#if (defined(linux) || defined(__linux) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)) && !defined(_CRAYC)
++#if (defined(linux) || defined(__linux) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) || defined(__FreeBSD__)) && !defined(_CRAYC)
+ #   define MAXR_PLATFORM_CONFIG "config/platform/linux.h"
+ #elif defined(__CYGWIN__)
+ #   define MAXR_PLATFORM_CONFIG "config/platform/cygwin.h"



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