Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2013 02:34:48 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/175026: misc/wmfirew: Fix build with clang
Message-ID:  <20130106023448.4cf6d3afdfda923cb8866633@yahoo.com>
Resent-Message-ID: <201301051810.r05IA78l001566@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175026
>Category:       ports
>Synopsis:       misc/wmfirew: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 05 18:10:07 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Fix build with clang
- Add LICENSE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/misc/wmfirew/Makefile misc/wmfirew/Makefile
--- /usr/ports/misc/wmfirew/Makefile	2012-11-08 09:18:09.000000000 +0900
+++ misc/wmfirew/Makefile	2013-01-05 22:56:25.000000000 +0900
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	wmfirew
-# Date created:				16 May 2002
-# Whom:					Alexey Dokuchaev <danfe@regency.nsu.ru>
-#
+# Created by: Alexey Dokuchaev <danfe@regency.nsu.ru>
 # $FreeBSD: head/misc/wmfirew/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 PORTNAME=	wmfirew
 PORTVERSION=	0.20
@@ -12,14 +8,22 @@
 MASTER_SITES=	http://web.novalis.org/programs/
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A dockapp that shows fireworks in action
+COMMENT=	Dockapp that shows fireworks in action
+
+LICENSE=	GPLv2
+
+WRKSRC=		${WRKDIR}/${PORTNAME}.app/${PORTNAME}
 
-PLIST_FILES=	bin/wmfirew
-WRKSRC=	${WRKDIR}/${PORTNAME}.app/${PORTNAME}
-USE_GMAKE=	yes
 USE_XORG=	xpm
+USE_GMAKE=	yes
+
+PLIST_FILES=	bin/wmfirew
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|^void main|int main|' ${WRKSRC}/wmfirew.c
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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