From owner-svn-ports-branches@freebsd.org Thu Feb 4 00:04:54 2016 Return-Path: Delivered-To: svn-ports-branches@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D5FDA9AC1D; Thu, 4 Feb 2016 00:04:54 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0D07A1A49; Thu, 4 Feb 2016 00:04:53 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1404rWs046577; Thu, 4 Feb 2016 00:04:53 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1404qba046575; Thu, 4 Feb 2016 00:04:52 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201602040004.u1404qba046575@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Thu, 4 Feb 2016 00:04:52 +0000 (UTC) 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 X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2016 00:04:54 -0000 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 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 + #endif + ++#ifdef ENABLE_NLS ++ + #include + +-#ifdef ENABLE_NLS + /** shorthand for fetching translation of default domain */ + # define tr(s) gettext (s) + /** shorthand for fetching translation of specified domain */