Bug 175026 - misc/wmfirew: Fix build with clang
Summary: misc/wmfirew: 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 15:00 UTC (History)
0 users

See Also:


Attachments
file.diff (1.16 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:07 UTC
- Fix build with clang
- Add LICENSE
Comment 1 Marcelo Araujo freebsd_committer freebsd_triage 2013-01-18 06:11:48 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:49:27 UTC
State Changed
From-To: open->closed

take 
-  


Comment 3 Martin Wilke freebsd_committer freebsd_triage 2013-02-07 14:49:27 UTC
Responsible Changed
From-To: araujo->miwi

committed
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-02-07 14:49:36 UTC
Author: miwi
Date: Thu Feb  7 14:49:27 2013
New Revision: 311859
URL: http://svnweb.freebsd.org/changeset/ports/311859

Log:
  - Fix build with clang
  - Add LICENSE
  - Trim header
  
  PR:		175026
  Submitted by:	Ports Fury

Modified:
  head/misc/wmfirew/Makefile   (contents, props changed)

Modified: head/misc/wmfirew/Makefile
==============================================================================
--- head/misc/wmfirew/Makefile	Thu Feb  7 14:48:17 2013	(r311858)
+++ head/misc/wmfirew/Makefile	Thu Feb  7 14:49:27 2013	(r311859)
@@ -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$
-#
 
 PORTNAME=	wmfirew
 PORTVERSION=	0.20
@@ -19,7 +15,11 @@ WRKSRC=	${WRKDIR}/${PORTNAME}.app/${PORT
 USE_GMAKE=	yes
 USE_XORG=	xpm
 
+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>
_______________________________________________
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"