ports/175026: misc/wmfirew: Fix build with clang
KATO Tsuguru
tkato432 at yahoo.com
Sat Jan 5 18:10:07 UTC 2013
>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 at regency.nsu.ru>
-#
+# Created by: Alexey Dokuchaev <danfe at 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 at 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:
More information about the freebsd-ports-bugs
mailing list