new: graphics/freeglut

2008-11-09 Thread Tobias Ulmer
This port replaces graphics/glut (the annoying lib that doesn't come
with a proper license - therefore no packages)

Included are fixes for all ports that used glut plus wantlib for
for the two makehuman ports (+ Xxf86vm)

Tested on i386, please test, this is one of the prerequisites for torcs ;)

Index: games/crack-attack/Makefile
===
RCS file: /data/data2/cvs/ports/games/crack-attack/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- games/crack-attack/Makefile 15 Jun 2008 00:08:09 -  1.3
+++ games/crack-attack/Makefile 9 Nov 2008 17:56:16 -
@@ -3,7 +3,7 @@
 COMMENT=   OpenGL game based on SNES classic Tetris Attack
 
 DISTNAME=  crack-attack-1.1.14
-PKGNAME=   ${DISTNAME}p1
+PKGNAME=   ${DISTNAME}p2
 CATEGORIES=games
 
 MAINTAINER=Mattieu Baptiste [EMAIL PROTECTED]
@@ -27,7 +27,7 @@ MASTER_SITES= http://savannah.nongnu.org
 MODULES=   devel/gettext
 
 LIB_DEPENDS=   gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
-   glut.=3::graphics/glut
+   glut.=4::graphics/freeglut
 
 USE_X11=   Yes
 
Index: games/crack-attack/patches/patch-src_Attack_cxx
===
RCS file: games/crack-attack/patches/patch-src_Attack_cxx
diff -N games/crack-attack/patches/patch-src_Attack_cxx
--- /dev/null   1 Jan 1970 00:00:00 -
+++ games/crack-attack/patches/patch-src_Attack_cxx 9 Nov 2008 17:46:25 
-
@@ -0,0 +1,11 @@
+$OpenBSD$
+--- src/Attack.cxx.origSun Nov  9 18:45:06 2008
 src/Attack.cxx Sun Nov  9 18:45:58 2008
+@@ -83,6 +83,7 @@ int main ( int argc, char **argv )
+   int height = -1, width = -1;
+   
+   player_name[0] = '\0';
++  glutInit(argc, argv);
+   parseCommandLine(argc, argv, mode, port, host_name, player_name, height, 
width);
+   run_crack_attack(mode, port, host_name, player_name, height, width);
+ 
Index: games/crossfire-client/Makefile
===
RCS file: /data/data2/cvs/ports/games/crossfire-client/Makefile,v
retrieving revision 1.19
diff -u -p -r1.19 Makefile
--- games/crossfire-client/Makefile 15 Jun 2008 00:08:09 -  1.19
+++ games/crossfire-client/Makefile 9 Nov 2008 17:59:26 -
@@ -4,7 +4,7 @@ COMMENT=graphical networked ADD style 
 
 VERSION=   1.11.0
 DISTNAME=  crossfire-client-${VERSION}
-PKGNAME=   ${DISTNAME}p0
+PKGNAME=   ${DISTNAME}p1
 CATEGORIES=games x11
 
 DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
@@ -30,7 +30,7 @@ MODULES=  devel/gettext
 
 LIB_DEPENDS=   gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
SDL_image.=2::devel/sdl-image \
-   glut.=3::graphics/glut \
+   glut.=4::graphics/freeglut \
curl.=8::net/curl
 
 USE_X11=   Yes
Index: games/glsfcave/Makefile
===
RCS file: /data/data2/cvs/ports/games/glsfcave/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- games/glsfcave/Makefile 8 May 2008 06:48:37 -   1.2
+++ games/glsfcave/Makefile 9 Nov 2008 18:22:37 -
@@ -4,7 +4,7 @@ COMMENT=control a ribbon to avoid hitti
 
 V= 1.0
 DISTNAME=  glsfcave-$V-mitl
-PKGNAME=   glsfcave-$Vp0
+PKGNAME=   glsfcave-$Vp1
 CATEGORIES=games
 EXTRACT_SUFX=  .tar.bz2
 
@@ -21,7 +21,7 @@ PERMIT_PACKAGE_FTP=   Yes
 
 WANTLIB=   GL GLU X11 Xext Xi Xmu c m
 
-LIB_DEPENDS=   glut::graphics/glut
+LIB_DEPENDS=   glut.=4::graphics/freeglut
 
 WRKDIST=   ${WRKDIR}/glsfcave
 
Index: graphics/freeglut/Makefile
===
RCS file: graphics/freeglut/Makefile
diff -N graphics/freeglut/Makefile
--- /dev/null   1 Jan 1970 00:00:00 -
+++ graphics/freeglut/Makefile  9 Nov 2008 19:59:32 -
@@ -0,0 +1,27 @@
+# $OpenBSD$
+
+COMMENT =  open source alternative to glut
+DISTNAME = freeglut-2.4.0
+SHARED_LIBS =  glut 4.0
+CATEGORIES =   graphics
+HOMEPAGE = http://freeglut.sourceforge.net/
+MAINTAINER =   Tobias Ulmer [EMAIL PROTECTED]
+
+# X11
+PERMIT_PACKAGE_CDROM = Yes
+PERMIT_PACKAGE_FTP =   Yes
+PERMIT_DISTFILES_CDROM =Yes
+PERMIT_DISTFILES_FTP = Yes
+
+WANTLIB =  GL GLU X11 Xau Xdmcp Xext Xxf86vm m
+
+MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=freeglut/}
+
+USE_X11 =  Yes
+USE_LIBTOOL =  Yes
+CONFIGURE_STYLE =  gnu
+CONFIGURE_ARGS +=  ${CONFIGURE_SHARED} --enable-warnings=no
+
+NO_REGRESS =   Yes
+
+.include bsd.port.mk
Index: graphics/freeglut/distinfo
===
RCS file: graphics/freeglut/distinfo
diff -N graphics/freeglut/distinfo
--- /dev/null   1 Jan 1970 00:00:00 -
+++ graphics/freeglut/distinfo  9 Nov 2008 19:36:42 -
@@ -0,0 +1,5 

NEW: graphics/freeglut

2008-01-29 Thread Julian Leyh
Hello ports@,

I tried to compile a program that uses freeglut, and the available
glut in ports didn't provide some of the functions. Also, the
original glut seems to be abandoned. So I ported freeglut.

Please test, comment, commit :)

Worked for me, but with this warning while executing a program that
uses freeglut (for example the demo programs provided with the source):

freeglut (./fractals): Unable to create direct context rendering for window 
'Koch Snowflake'
This may hurt performance.

Regards,
Julian Leyh

-- 
If you don't remember something, it never existed...
If you aren't remembered, you never existed...
I don't quite understand what love is like... But if there
was someone who liked me, I'd be happy.


freeglut.tar.gz
Description: application/tar-gz