Bug 175035 - games/wmshuffle: Fix build with clang
Summary: games/wmshuffle: Fix build with clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-05 18:10 UTC by tkato432
Modified: 2013-02-07 14:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.36 KB, patch)
2013-01-05 18:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-01-05 18:10:09 UTC
- Fix build with clang
- Support PLIST_FILES

Remove file:
pkg-plist
Comment 1 Marcelo Araujo freebsd_committer freebsd_triage 2013-01-18 06:14:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->araujo

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-02-07 14:48:18 UTC
State Changed
From-To: open->closed
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2013-02-07 14:48:18 UTC
Responsible Changed
From-To: araujo->miwi

committed
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-02-07 14:48:30 UTC
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>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"