Fix fallout from freeglut update

Index: Makefile
===================================================================
RCS file: /home/vcs/cvs/openbsd/ports/lang/parrot/Makefile,v
retrieving revision 1.23
diff -u -p -r1.23 Makefile
--- Makefile    13 Jul 2012 09:46:05 -0000      1.23
+++ Makefile    31 Aug 2012 23:26:06 -0000
@@ -6,6 +6,7 @@ COMMENT=        virtual machine designed for in
 
 V=             4.5.0
 DISTNAME=      parrot-$V
+REVISION=      0
 CATEGORIES=    lang perl6
 SHARED_LIBS=   parrot  6.0
 
@@ -22,7 +23,7 @@ PERMIT_DISTFILES_CDROM=       Yes
 PERMIT_DISTFILES_FTP=  Yes
 
 WANTLIB += GL GLU c glut gmp icudata icuuc m ncurses pthread
-WANTLIB += readline stdc++ util z ffi
+WANTLIB += readline stdc++ util z ffi Xi Xrandr
 
 BUILD_DEPENDS=         graphics/glew \
                        devel/pcre
Index: patches/patch-config_auto_opengl_pm
===================================================================
RCS file: patches/patch-config_auto_opengl_pm
diff -N patches/patch-config_auto_opengl_pm
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-config_auto_opengl_pm 31 Aug 2012 23:26:06 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- config/auto/opengl.pm.orig Fri Aug 31 15:43:50 2012
++++ config/auto/opengl.pm      Fri Aug 31 15:44:11 2012
+@@ -177,7 +177,7 @@ sub runstep {
+             win32_gcc       => '-lglut32 -lglu32 -lopengl32',
+             win32_nongcc    => 'opengl32.lib glu32.lib glut32.lib',
+             darwin          => '-framework OpenGL -framework GLUT',
+-            default         => '-lglut -lGLU -lGL',
++            default         => '-lglut -lGLU -lGL -lXi -lXrandr',
+     } );
+ 
+     $conf->cc_gen('config/auto/opengl/opengl_c.in');

Reply via email to