Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Feb 2016 00:04:52 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r408007 - in branches/2016Q1/games/lgeneral: . files
Message-ID:  <201602040004.u1404qba046575@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Feb  4 00:04:52 2016
New Revision: 408007
URL: https://svnweb.freebsd.org/changeset/ports/408007

Log:
  MFH: r408006
  
  - Generate missing data files to fix runtime crash [1]
  
  While here:
  - Fix build with NLS disabled
  - Fix LICENSE
  - Switch to USES=localbase
  - Switch to options helpers
  - Don't try to use X11 during build
  
  PR:		206831 [1]
  Submitted by:	cmangin@arobas.net [1]
  Approved by:	ports-secteam blanket

Added:
  branches/2016Q1/games/lgeneral/files/patch-util_localize.h
     - copied unchanged from r408006, head/games/lgeneral/files/patch-util_localize.h
Modified:
  branches/2016Q1/games/lgeneral/Makefile
Directory Properties:
  branches/2016Q1/   (props changed)

Modified: branches/2016Q1/games/lgeneral/Makefile
==============================================================================
--- branches/2016Q1/games/lgeneral/Makefile	Thu Feb  4 00:03:30 2016	(r408006)
+++ branches/2016Q1/games/lgeneral/Makefile	Thu Feb  4 00:04:52 2016	(r408007)
@@ -3,6 +3,7 @@
 
 PORTNAME=	lgeneral
 PORTVERSION=	1.3.0
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME} \
 		SF/${PORTNAME}/${PORTNAME}-data:data
@@ -12,19 +13,16 @@ DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:DE
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Turn-based strategy engine inspired by Panzer General
 
-LICENSE=	GPLv2
+LICENSE=	GPLv2+
 
-USES=		gmake
+BROKEN_powerpc=	does not install
+BROKEN_sparc64=	does not install
+
+USES=		gmake localbase
 USE_CSTD=	gnu89
 USE_SDL=	sdl
 GNU_CONFIGURE=	yes
 
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-
-BROKEN_powerpc=	Does not install on ${ARCH}
-BROKEN_sparc64=	Does not install on ${ARCH}
-
 OPTIONS_DEFINE=		DOCS NLS SOUND
 OPTIONS_DEFAULT=	SOUND
 OPTIONS_SUB=		yes
@@ -43,9 +41,13 @@ post-install:
 .for i in flags terrain units
 	@${MKDIR} ${STAGEDIR}${DATADIR}/gfx/${i}
 .endfor
-	(${STAGEDIR}${PREFIX}/bin/lgc-pg -s ${WRKDIR}/pg-data \
-		-d ${STAGEDIR}${DATADIR})
+	${SETENV} DISPLAY= \
+		${STAGEDIR}${PREFIX}/bin/lgc-pg --separate-bridges \
+		-s ${WRKDIR}/pg-data \
+		-d ${STAGEDIR}${DATADIR}
+
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	(cd ${WRKSRC} && ${INSTALL_DATA} README.* ${STAGEDIR}${DOCSDIR})
+	${INSTALL_DATA} ${WRKSRC}/README.* ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Copied: branches/2016Q1/games/lgeneral/files/patch-util_localize.h (from r408006, head/games/lgeneral/files/patch-util_localize.h)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2016Q1/games/lgeneral/files/patch-util_localize.h	Thu Feb  4 00:04:52 2016	(r408007, copy of r408006, head/games/lgeneral/files/patch-util_localize.h)
@@ -0,0 +1,14 @@
+--- util/localize.h.orig	2013-05-03 17:17:37 UTC
++++ util/localize.h
+@@ -31,9 +31,10 @@
+ #  include <config.h>
+ #endif
+ 
++#ifdef ENABLE_NLS
++
+ #include <libintl.h>
+ 
+-#ifdef ENABLE_NLS
+ /** shorthand for fetching translation of default domain */
+ #  define tr(s) gettext (s)
+ /** shorthand for fetching translation of specified domain */



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