Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jul 2018 08:29:45 +0000 (UTC)
From:      Joerg Wunsch <joerg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r474239 - in head/games/xmahjongg: . files
Message-ID:  <201807090829.w698TjNh056898@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: joerg
Date: Mon Jul  9 08:29:44 2018
New Revision: 474239
URL: https://svnweb.freebsd.org/changeset/ports/474239

Log:
  Fix build errors seen by recent C++ compilers.
  
  While being here, add LICENSE.

Added:
  head/games/xmahjongg/files/
  head/games/xmahjongg/files/patch-lcdf   (contents, props changed)
Modified:
  head/games/xmahjongg/Makefile

Modified: head/games/xmahjongg/Makefile
==============================================================================
--- head/games/xmahjongg/Makefile	Mon Jul  9 08:19:46 2018	(r474238)
+++ head/games/xmahjongg/Makefile	Mon Jul  9 08:29:44 2018	(r474239)
@@ -3,12 +3,14 @@
 
 PORTNAME=	xmahjongg
 PORTVERSION=	3.7
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	games
 MASTER_SITES=	http://www.lcdf.org/xmahjongg/
 
 MAINTAINER=	joerg@FreeBSD.org
-COMMENT=	The Chinese game of Mahjongg for X11
+COMMENT=	Chinese game of Mahjongg for X11
+
+LICENSE=	GPLv2
 
 USE_XORG=	x11
 GNU_CONFIGURE=	yes

Added: head/games/xmahjongg/files/patch-lcdf
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/xmahjongg/files/patch-lcdf	Mon Jul  9 08:29:44 2018	(r474239)
@@ -0,0 +1,24 @@
+--- include/lcdf/vector.hh.orig	2003-11-17 03:21:23 UTC
++++ include/lcdf/vector.hh
+@@ -7,7 +7,7 @@
+ #elif defined(HAVE_NEW_H)
+ # include <new.h>
+ #else
+-static inline void *operator new(size_t, void *v) { return v; }
++inline void *operator new(size_t, void *v) { return v; }
+ #endif
+ 
+ template <class T>
+--- liblcdf/permstr.cc.orig	2004-11-21 19:01:59 UTC
++++ liblcdf/permstr.cc
+@@ -111,8 +111,8 @@ static int scatter[] = {        /* map c
+ void
+ PermString::initialize(const char* s, int length)
+ {
+-    register unsigned char* m = (unsigned char*) s;
+-    register unsigned char* mm;
++    unsigned char* m = (unsigned char*) s;
++    unsigned char* mm;
+ 
+     if (length < 0)
+ 	length = (s ? strlen(s) : 0);



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