From root@toha.org.ua  Fri Dec 17 12:48:40 2004
Return-Path: <root@toha.org.ua>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9B0B916A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 Dec 2004 12:48:40 +0000 (GMT)
Received: from toha.org.ua (inferno.argus.kharkov.ua [217.144.73.138])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E508743D31
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 Dec 2004 12:48:37 +0000 (GMT)
	(envelope-from root@toha.org.ua)
Received: from toha.org.ua (localhost [127.0.0.1])
	by toha.org.ua (8.13.1/8.13.1) with ESMTP id iBHCmjEq031731
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 Dec 2004 14:48:45 +0200 (EET)
	(envelope-from root@toha.org.ua)
Received: (from root@localhost)
	by toha.org.ua (8.13.1/8.13.1/Submit) id iBHCmiap031730;
	Fri, 17 Dec 2004 14:48:44 +0200 (EET)
	(envelope-from root)
Message-Id: <200412171248.iBHCmiap031730@toha.org.ua>
Date: Fri, 17 Dec 2004 14:48:44 +0200 (EET)
From: Anton Yudin <toha@toha.org.ua>
Reply-To: Anton Yudin <toha@toha.org.ua>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port games/wormux and patch for devel/clanlib-devel
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         75186
>Category:       ports
>Synopsis:       New port games/wormux and patch for devel/clanlib-devel
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 17 12:50:22 GMT 2004
>Closed-Date:    Thu Dec 23 08:00:58 GMT 2004
>Last-Modified:  Thu Dec 23 08:00:58 GMT 2004
>Originator:     Anton Yudin
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD pandemonium 5.3-STABLE FreeBSD 5.3-STABLE #0: Sun Nov 14 19:08:07 EET 2004 root@pandemonium:/obj/obj/usr/src/sys/NKERNEL i386


	
>Description:
	New port games/wormux.

--->8---
Almost everyone has heard of the Worms(R) series of games, developed by Team17.
Worms was created in 1990, the goal of the game consisting of a several teams of
"worms" fighting to the death on a 2D map. Wormux is heavily influenced by all
games in this genre, including Scorched Earth and Liero.

Wormux is free software clone of this game concept. Though currently under heavy
development, it is already very playable, with lots of weapons (Dynamite,
Baseball Bat, Teleportation, etc.). There are also lots of maps available for
your battling pleasure! Wormux takes the genre to the next level, with great
customisation options leading to great gameplay. There is a wide selection of
teams, from the Aliens to the Chickens. Also, new battlefields can be downloaded
from the Internet, making strategy an important part of each battle.
--->8---

	This port requires devel/clanlib-devel. But there is unresolved
	symbol in libclanGL.so. This is path for devel/clanlib-devel.

patch for libclanGL.so, name file patch-Sources::GL::GLX::display_window_opengl.cpp and put in devel/libclan-devel/files

*** Sources/GL/GLX/display_window_opengl.cpp.original	Thu Dec 16 20:52:50 2004
--- Sources/GL/GLX/display_window_opengl.cpp	Thu Dec 16 20:53:41 2004
***************
*** 375,389 ****
  		
        if (access(pathname, R_OK) == 0)
  		{
! 			try
  			{
              get_ic()->add_joystick(CL_InputDevice(new CL_InputDevice_LinuxJoystick(pathname)));
  			} 
  			catch (CL_Error& err)
  			{
  				CL_Log::log("debug", "Joystick Error: %1", err.message);
! 				done = true;
! 			}
  		}
  		else
  		{
--- 375,391 ----
  		
        if (access(pathname, R_OK) == 0)
  		{
! /*			try
  			{
+ 
              get_ic()->add_joystick(CL_InputDevice(new CL_InputDevice_LinuxJoystick(pathname)));
  			} 
  			catch (CL_Error& err)
  			{
  				CL_Log::log("debug", "Joystick Error: %1", err.message);
! */				done = true;
! /*			}
! */
  		}
  		else
  		{

>How-To-Repeat:
>Fix:

	Use new port.
Shar:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	games/wormux
#	games/wormux/Makefile
#	games/wormux/distinfo
#	games/wormux/pkg-descr
#
echo c - games/wormux
mkdir -p games/wormux > /dev/null 2>&1
echo x - games/wormux/Makefile
sed 's/^X//' >games/wormux/Makefile << 'END-of-games/wormux/Makefile'
X# Ports collection makefile for:  wormux
X# Date created:			  Thu Dec 16 18:46:55 EET 2004
X# Whom:				  Anton Yudin <toha@FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	wormux
XPORTVERSION=	0.5.0
XCATEGORIES=	games
XMASTER_SITES=	http://download.gna.org/wormux/
XDISTNAME=	${PORTNAME}-src-${PORTVERSION}
X
XMAINTAINER=	toha@toha.org.ua
XCOMMENT=	Wormux game
X
XUSE_BZIP2=	yes
XUSE_SDL=	sdl
XUSE_GETTEXT=	yes
X
XLIB_DEPENDS+=	clanGUI-0.7:${PORTSDIR}/devel/clanlib-devel
XLIB_DEPENDS+=	xml\\+\\+-1.0.1:${PORTSDIR}/textproc/libxml++
X
XCONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
X		LDFLAGS="-L${LOCALBASE}/lib -lintl"
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XPLIST_FILES=	bin/wormux
X
XCONFIGURE_ARGS+=--prefix=${PREFIX}
XGNU_CONFIGURE=yes
X
X.include <bsd.port.pre.mk>
X
Xpost-install:
X.for dir in ${PREFIX}/share/${PORTNAME}
X	@${FIND} ${dir} ! -type d | \
X		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
X	@${FIND} ${dir} -type d | ${SORT} -r | \
X		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
X.endfor
X
X.include <bsd.port.post.mk>
END-of-games/wormux/Makefile
echo x - games/wormux/distinfo
sed 's/^X//' >games/wormux/distinfo << 'END-of-games/wormux/distinfo'
XMD5 (wormux-src-0.5.0.tar.bz2) = e09c8a699da7a3a60e0c379b75986573
XSIZE (wormux-src-0.5.0.tar.bz2) = 18787309
END-of-games/wormux/distinfo
echo x - games/wormux/pkg-descr
sed 's/^X//' >games/wormux/pkg-descr << 'END-of-games/wormux/pkg-descr'
XAlmost everyone has heard of the Worms(R) series of games, developed by Team17.
XWorms was created in 1990, the goal of the game consisting of a several teams of
X"worms" fighting to the death on a 2D map. Wormux is heavily influenced by all
Xgames in this genre, including Scorched Earth and Liero.
X
XWormux is free software clone of this game concept. Though currently under heavy
Xdevelopment, it is already very playable, with lots of weapons (Dynamite,
XBaseball Bat, Teleportation, etc.). There are also lots of maps available for
Xyour battling pleasure! Wormux takes the genre to the next level, with great
Xcustomisation options leading to great gameplay. There is a wide selection of
Xteams, from the Aliens to the Chickens. Also, new battlefields can be downloaded
Xfrom the Internet, making strategy an important part of each battle.
X
XWWW: http://www.wormux.org/
END-of-games/wormux/pkg-descr
exit


>Release-Note:
>Audit-Trail:

From: Roman Bogorodskiy <bogorodskiy@inbox.ru>
To: freebsd-gnats-submit@FreeBSD.org, toha@toha.org.ua
Cc:  
Subject: Re: ports/75186: New port games/wormux and patch for devel/clanlib-devel
Date: Wed, 22 Dec 2004 18:28:01 +0300

 --A6N2fC+uXW/VQSAv
 Content-Type: multipart/mixed; boundary="r5Pyd7+fXNt84Ff3"
 Content-Disposition: inline
 
 
 --r5Pyd7+fXNt84Ff3
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 As devel/clanlib-devel maintainer, I approve this patch, but I've=20
 changed it a bit. It could be found attached to this message.
 
 -Roman Bogorodskiy
 
 --r5Pyd7+fXNt84Ff3
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="patch-Sources::GL::GLX::display_window_opengl.cpp"
 Content-Transfer-Encoding: quoted-printable
 
 --- Sources/GL/GLX/display_window_opengl.cpp.orig	Wed Apr 21 01:50:23 2004
 +++ Sources/GL/GLX/display_window_opengl.cpp	Mon Dec 20 18:09:50 2004
 @@ -352,6 +352,7 @@
 =20
  void CL_DisplayWindow_OpenGL::setup_joysticks()
  {
 +#if 0
  	// This could need some improvments, it doesn't look for
  	// /dev/input/jsX for example
  	char pathname[256];
 @@ -391,6 +392,7 @@
  			done =3D true;
  		}
  	}
 +#endif
  }
 =20
  void CL_DisplayWindow_OpenGL::destroy_window()
 
 --r5Pyd7+fXNt84Ff3--
 
 --A6N2fC+uXW/VQSAv
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (FreeBSD)
 
 iQCVAwUBQcmSgIB0WzgdqspGAQJMKAQAuiVb2N542+9Wf3u67mWXPcdk2dMFkgHd
 LKmPkFIKvAdoEafwomdnHV0h3dpprDU5/EwHzkdiBlos19q3uy5H1HJM/ApAJ4Wj
 EatH2GUsT65Aqgs7kmYiyzMtk93l/5XV8KokM+QJI9fna+bQ7qMbX2B2YkqEqn4/
 FEAXWGadvsQ=
 =0nG8
 -----END PGP SIGNATURE-----
 
 --A6N2fC+uXW/VQSAv--
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Thu Dec 23 08:00:56 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

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