Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 2014 15:11:27 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r363908 - head/games/tome4
Message-ID:  <53de511f.5641.3426772e@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Sun Aug  3 15:11:27 2014
New Revision: 363908
URL: http://svnweb.freebsd.org/changeset/ports/363908
QAT: https://qat.redports.org/buildarchive/r363908/

Log:
  This fixes games/tome4 after devel/premake4 update to 4.4-beta5
  The new premake4 seems to hardcode "gcc" regardless of CC, command line flags,
  etc., and not in a way environment for gmake can override this.
  
  The patch fixes output of premake4 before running gmake. It a no-op on systems
  with premake4 4.3 and doesn't change the package on systems where tome4 already
  builds.
  
  PR:		192291
  Palindromic PR:	yes
  Submitted by:	maintainer

Modified:
  head/games/tome4/Makefile

Modified: head/games/tome4/Makefile
==============================================================================
--- head/games/tome4/Makefile	Sun Aug  3 14:56:38 2014	(r363907)
+++ head/games/tome4/Makefile	Sun Aug  3 15:11:27 2014	(r363908)
@@ -31,12 +31,10 @@ USE_CSTD=	gnu89
 SUB_FILES=	tome4
 MAKE_JOBS_UNSAFE=yes
 
-post-patch:
-	@${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/src/lua/Makefile \
-		${WRKSRC}/src/luabitop/Makefile ${WRKSRC}/build/te4core.lua
 pre-build:
 	@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/premake4.lua
 	(cd ${WRKSRC} && premake4 gmake)
+	@${REINPLACE_CMD} 's|gcc|${CC}|' ${WRKSRC}/build/*.make
 	@${REINPLACE_CMD} 's|-lpthread|-pthread|' ${WRKSRC}/build/TEngine.make
 
 do-install:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53de511f.5641.3426772e>