Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2014 18:58:58 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r342588 - in head/games/mangband: . files
Message-ID:  <201402041858.s14Iwwi7005591@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Tue Feb  4 18:58:58 2014
New Revision: 342588
URL: http://svnweb.freebsd.org/changeset/ports/342588
QAT: https://qat.redports.org/buildarchive/r342588/

Log:
  Fix build with clang
  
  PR:		ports/182037
  Submitted by:	maintainer
  MFH:		2014Q1

Added:
  head/games/mangband/files/patch-client_main-sdl.c   (contents, props changed)
Modified:
  head/games/mangband/Makefile

Modified: head/games/mangband/Makefile
==============================================================================
--- head/games/mangband/Makefile	Tue Feb  4 18:39:42 2014	(r342587)
+++ head/games/mangband/Makefile	Tue Feb  4 18:58:58 2014	(r342588)
@@ -12,8 +12,8 @@ COMMENT=	Free online multiplayer real-ti
 ALL_TARGET=	mangclient mangband
 WRKSRC=		${WRKDIR}/${DISTNAME}/src
 GNU_CONFIGURE=	yes
-USES=		ncurses
-USE_GMAKE=	yes
+USES=		dos2unix gmake ncurses
+DOS2UNIXFILES=	${WRKSRC}/client/main-sdl.c
 
 MAKE_ARGS=	"DATADIR=${DATADIR}"
 

Added: head/games/mangband/files/patch-client_main-sdl.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/mangband/files/patch-client_main-sdl.c	Tue Feb  4 18:58:58 2014	(r342588)
@@ -0,0 +1,11 @@
+--- client/main-sdl.c.orig	2014-02-04 19:51:35.412181886 +0100
++++ client/main-sdl.c	2014-02-04 19:51:50.859119136 +0100
+@@ -1031,7 +1031,7 @@
+ 	//if (td->cx != -1 && td->cy != -1) { 
+ 	//		RedrawChar(td->cx, td->cy); 
+ 	//	}
+-	if (td->cx == x && td->cy == y) return;
++	if (td->cx == x && td->cy == y) return (0);
+ 	//if (x == -1 && y == -1) return;
+ 	if (td->cursor_on) 
+ 	{



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