From vasallia@ukr.net  Sun May 30 15:49:50 2004
Return-Path: <vasallia@ukr.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C41C616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 30 May 2004 15:49:50 -0700 (PDT)
Received: from mx0.rambler.ru (mx0.rambler.ru [81.19.66.47])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4F03C43D2F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 30 May 2004 15:49:50 -0700 (PDT)
	(envelope-from vasallia@ukr.net)
Received: from mailc.rambler.ru (mailc.rambler.ru [81.19.66.27])
	by mx0.rambler.ru (Postfix) with ESMTP id C0A2442F4F6;
	Mon, 31 May 2004 02:49:48 +0400 (MSD)
Received: from santinel.home.ua ([212.86.235.178])
	(authenticated bits=0)
	by mailc.rambler.ru (8.12.10/8.12.10) with ESMTP id i4UMnkxB066486;
	Mon, 31 May 2004 02:49:47 +0400 (MSD)
Received: from anray by santinel.home.ua with local (Exim 4.34; FreeBSD)
	id 1BUXtY-0004gk-P4; Mon, 31 May 2004 00:31:04 +0300
Message-Id: <E1BUXtY-0004gk-P4@santinel.home.ua>
Date: Mon, 31 May 2004 00:31:04 +0300
From: Andrey Slusar <vasallia@ukr.net>
Reply-To: Andrey Slusar <vasallia@ukr.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: dominic.marks@btinternet.com
Subject: [PATCH] x11-wm/hackedbox: fix compiling whith freebsd 5.x
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         67400
>Category:       ports
>Synopsis:       [PATCH] x11-wm/hackedbox: fix compiling whith freebsd 5.x
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 30 15:50:21 PDT 2004
>Closed-Date:    Mon May 31 04:45:58 PDT 2004
>Last-Modified:  Mon May 31 04:45:58 PDT 2004
>Originator:     Andrey Slusar
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
Santinel
>Environment:
System: FreeBSD santinel.home.ua 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Fri May 28 16:44:48 EEST 2004 root@santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386
>Description:
	Maintainer CC'ed
	fix compiling whith freebsd 5.x
>How-To-Repeat:
	N/A
>Fix:

--- hackedbox.diff begins here ---
diff -ruN hackedbox/Makefile hackedbox.new/Makefile
--- hackedbox/Makefile	Thu Dec 25 02:08:05 2003
+++ hackedbox.new/Makefile	Sun May 30 23:13:18 2004
@@ -28,13 +28,7 @@
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-bg-utils
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN=		"Does not compile on FreeBSD ${OSVERSION}"
-.endif
-
-do-patch:
+pre-patch:
 	${REINPLACE_CMD} -e \
 		"s:/usr/local/share/hackedbox:${PREFIX}/share/hackedbox:g" \
 		${WRKSRC}/data/menu.in
@@ -97,4 +91,4 @@
 .endfor
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN hackedbox/files/patch-Window.cc hackedbox.new/files/patch-Window.cc
--- hackedbox/files/patch-Window.cc	Thu Jan  1 03:00:00 1970
+++ hackedbox.new/files/patch-Window.cc	Sun May 30 23:02:39 2004
@@ -0,0 +1,10 @@
+--- src/Window.cc.old	Sun May 30 23:00:42 2004
++++ src/Window.cc	Sun May 30 23:02:02 2004
+@@ -44,6 +44,7 @@
+ #endif // HAVE_STDLIB_H
+ }
+ 
++#include <cassert>
+ #include "i18n.hh"
+ #include "blackbox.hh"
+ #include "GCCache.hh"
--- hackedbox.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Mon May 31 04:45:51 PDT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=67400 
>Unformatted:
