Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2013 14:48:17 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r311858 - head/games/wmtictactoe
Message-ID:  <201302071448.r17EmHLI087951@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Thu Feb  7 14:48:17 2013
New Revision: 311858
URL: http://svnweb.freebsd.org/changeset/ports/311858

Log:
  - Fix build with clang
  - Support PLIST_FILES
  - Trim header
  
  PR:		175035
  Submitted by:	ports fury

Modified:
  head/games/wmtictactoe/Makefile   (contents, props changed)

Modified: head/games/wmtictactoe/Makefile
==============================================================================
--- head/games/wmtictactoe/Makefile	Thu Feb  7 14:46:35 2013	(r311857)
+++ head/games/wmtictactoe/Makefile	Thu Feb  7 14:48:17 2013	(r311858)
@@ -1,27 +1,28 @@
-# New ports collection makefile for:	wmtictactoe
-# Date created:			28 Apr 1999
-# Whom:				Jim Mock <jim@FreeBSD.org>
-#
+# Created by: Jim Mock <jim@FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	wmtictactoe
 PORTVERSION=	1.1
 PORTREVISION=	3
 CATEGORIES=	games windowmaker afterstep
-MASTER_SITES=	${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR=	jim
-DISTNAME=	wmtictactoe-1.1-1
+MASTER_SITES=	LOCAL/jim
+DISTNAME=	${PORTNAME}-${PORTVERSION}-1
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A dockable TicTacToe game for WindowMaker and AfterStep
+COMMENT=	Dockable TicTacToe game for WindowMaker and AfterStep
 
-PLIST_FILES=	bin/wmtictactoe
-USE_GMAKE=	yes
 WRKSRC=		${WRKDIR}/wmtictactoe.app/wmtictactoe
+
 USE_XORG=	xpm
+USE_GMAKE=	yes
+
+PLIST_FILES=	bin/wmtictactoe
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|^void .*main|int main|' ${WRKSRC}/wmtictactoe.c
 
 post-install:
-	@${ECHO} "===>   Run 'wmtictactoe --help' for the available options"
+	@${ECHO_MSG} "===>   Run 'wmtictactoe --help' for the available options"
 
 .include <bsd.port.mk>



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