Rafael Sadowski <[email protected]> writes:

> Hi All!
>
> I've updated freeglut to the latest release. Tested all dependencies of
> freeglut:
>
> - Build and runtime test okay:
>
> games/crack-attack
> games/glsfcave
> games/hedgewars
>
> - Only build test okay:
>
> devel/bullet
> games/flightgear
> games/vegastrike
> graphics/DevIL
> graphics/asymptote
> graphics/gle
> graphics/glpng
> graphics/hs-GLUT
> graphics/mhgui
> graphics/py-opengl
> math/eigen3
> print/gl2ps
>
> - Failed:
>
> lang/parrot
>
> The old parrot port needs a simple patch, please see at the end of the
> mail. Maybe someone has a better idea!?

Looks like the issue was already present, and fixed by
patches/patch-include_GL_freeglut_ext_h ;)

With the diff below (ok jca@), parrot builds fine.


Index: Makefile
===================================================================
RCS file: /d/cvs/ports/graphics/freeglut/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile    11 Mar 2016 20:28:26 -0000      1.17
+++ Makefile    4 Jul 2017 13:28:36 -0000
@@ -1,28 +1,25 @@
 # $OpenBSD: Makefile,v 1.17 2016/03/11 20:28:26 naddy Exp $
 
-# no libGL (toolchain issue)
-NOT_FOR_ARCHS= m88k
-
 COMMENT =              open source alternative to glut
-DISTNAME =             freeglut-2.8.0
-REVISION =             4
-SHARED_LIBS =          glut 5.0
+
+DISTNAME =             freeglut-3.0.0
+
+SHARED_LIBS +=  glut                      6.0 # 3.10
+
 CATEGORIES =           graphics
+
 HOMEPAGE =             http://freeglut.sourceforge.net/
+
 MAINTAINER =           Tobias Ulmer <[email protected]>
 
 # X11
 PERMIT_PACKAGE_CDROM = Yes
 
-WANTLIB += GL X11 X11-xcb Xdamage Xext Xfixes Xi Xrandr
-WANTLIB += Xrender Xxf86vm drm expat glapi m expat pthread
-WANTLIB += usbhid xcb xcb-dri2 xcb-glx
+WANTLIB += GL ICE SM X11 Xext Xi Xrandr Xxf86vm m
 
 MASTER_SITES =         ${MASTER_SITE_SOURCEFORGE:=freeglut/}
 
-CONFIGURE_STYLE =      gnu
-CONFIGURE_ARGS +=      --enable-warnings=no
-CONFIGURE_ENV +=       LDFLAGS="-L${X11BASE}/lib"
+MODULES =              devel/cmake
 
 NO_TEST =              Yes
 
Index: distinfo
===================================================================
RCS file: /d/cvs/ports/graphics/freeglut/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo    11 Sep 2012 10:07:06 -0000      1.3
+++ distinfo    4 Jul 2017 13:28:36 -0000
@@ -1,2 +1,2 @@
-SHA256 (freeglut-2.8.0.tar.gz) = GXKT/4hqvmE7yetKdi2RYbDJ5ks+jmE+18XjU5dPugU=
-SIZE (freeglut-2.8.0.tar.gz) = 979459
+SHA256 (freeglut-3.0.0.tar.gz) = KkO+hRWwHqgrz6F9Ka4NQL0Sg0LwkwzR83Xx/5mfdqI=
+SIZE (freeglut-3.0.0.tar.gz) = 419095
Index: patches/patch-Makefile_in
===================================================================
RCS file: /d/cvs/ports/graphics/freeglut/patches/patch-Makefile_in,v
retrieving revision 1.1
diff -u -p -r1.1 patch-Makefile_in
--- patches/patch-Makefile_in   11 Sep 2012 10:07:07 -0000      1.1
+++ patches/patch-Makefile_in   4 Jul 2017 13:28:36 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-Makefile_in,v 1.1 2012/09/11 10:07:07 sthen Exp $
---- Makefile.in.orig   Thu Aug 30 08:08:49 2012
-+++ Makefile.in        Thu Aug 30 08:09:12 2012
-@@ -230,7 +230,7 @@ target_alias = @target_alias@
- top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
--SUBDIRS = src include progs doc
-+SUBDIRS = src include #progs doc
- AUTOMAKE_OPTIONS = gnu
- EXTRA_DIST = \
-       FrequentlyAskedQuestions \
Index: patches/patch-include_GL_freeglut_ext_h
===================================================================
RCS file: 
/d/cvs/ports/graphics/freeglut/patches/patch-include_GL_freeglut_ext_h,v
retrieving revision 1.2
diff -u -p -r1.2 patch-include_GL_freeglut_ext_h
--- patches/patch-include_GL_freeglut_ext_h     11 Sep 2012 10:07:07 -0000      
1.2
+++ patches/patch-include_GL_freeglut_ext_h     4 Jul 2017 13:35:33 -0000
@@ -1,12 +1,23 @@
 $OpenBSD: patch-include_GL_freeglut_ext_h,v 1.2 2012/09/11 10:07:07 sthen Exp $
---- include/GL/freeglut_ext.h.orig     Sun Sep  4 21:38:32 2011
-+++ include/GL/freeglut_ext.h  Thu Aug 30 07:10:04 2012
-@@ -170,7 +170,7 @@ FGAPI void    FGAPIENTRY glutSolidCylinder( GLdouble r
+
+Index: include/GL/freeglut_ext.h
+--- include/GL/freeglut_ext.h.orig
++++ include/GL/freeglut_ext.h
+@@ -193,7 +193,7 @@ FGAPI void    FGAPIENTRY glutSolidTeaspoon( double siz
  /*
-  * Extension functions, see freeglut_ext.c
+  * Extension functions, see fg_ext.c
   */
 -typedef void (*GLUTproc)();
 +typedef void (*GLUTproc)(void);
  FGAPI GLUTproc FGAPIENTRY glutGetProcAddress( const char *procName );
  
  /*
+@@ -249,7 +249,7 @@ FGAPI void    FGAPIENTRY glutSetVertexAttribNormal(GLi
+ FGAPI void    FGAPIENTRY glutSetVertexAttribTexCoord2(GLint attrib);
+ 
+ /* Mobile platforms lifecycle */
+-FGAPI void    FGAPIENTRY glutInitContextFunc(void (* callback)());
++FGAPI void    FGAPIENTRY glutInitContextFunc(void (* callback)(void));
+ FGAPI void    FGAPIENTRY glutAppStatusFunc(void (* callback)(int));
+ /* state flags that can be passed to callback set by glutAppStatusFunc */
+ #define GLUT_APPSTATUS_PAUSE                0x0001
Index: pkg/PLIST
===================================================================
RCS file: /d/cvs/ports/graphics/freeglut/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   16 Mar 2015 18:07:46 -0000      1.2
+++ pkg/PLIST   4 Jul 2017 13:28:36 -0000
@@ -7,5 +7,5 @@ include/GL/freeglut_ext.h
 include/GL/freeglut_std.h
 include/GL/glut.h
 lib/libglut.a
-lib/libglut.la
 @lib lib/libglut.so.${LIBglut_VERSION}
+lib/pkgconfig/freeglut.pc


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to