Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2011 22:23:11 -0500
From:      Zhihao Yuan <lichray@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/161534: graphics/p5-OpenGL: Updates to 0.66
Message-ID:  <4e9659a2.904fe70a.231b.31c7@mx.google.com>
Resent-Message-ID: <201110130330.p9D3UBkJ085555@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         161534
>Category:       ports
>Synopsis:       graphics/p5-OpenGL: Updates to 0.66
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 13 03:30:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Zhihao Yuan
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
Northern Illinois University
>Environment:
System: FreeBSD elitebook.hp 8.2-STABLE FreeBSD 8.2-STABLE #2 r226329: Wed Oct 12 18:45:27 CDT 2011 lichray@elitebook.hp:/usr/obj/home/lichray/devel/freebsd-8/sys/HOUKAGO amd64


	
>Description:
	
	Updates to 0.66. The upstream uses GL_GLEXT_LEGACY, so the patches are deprecated.
>How-To-Repeat:
	
>Fix:

	
	patch it with -E, since a file is removed.

--- p5-OpenGL-0.66.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/p5-OpenGL.orig/Makefile /usr/ports/graphics/p5-OpenGL/Makefile
--- /usr/ports/graphics/p5-OpenGL.orig/Makefile	2011-09-08 03:36:37.000000000 -0500
+++ /usr/ports/graphics/p5-OpenGL/Makefile	2011-10-12 22:14:33.744936623 -0500
@@ -7,11 +7,10 @@
 #
 
 PORTNAME=	OpenGL
-PORTVERSION=	0.54
-PORTREVISION=	2
+PORTVERSION=	0.66
 CATEGORIES=	graphics perl5
 MASTER_SITES=	CPAN
-MASTER_SITE_SUBDIR=	CPAN:ILYAZ/modules
+MASTER_SITE_SUBDIR=	CPAN:CHM
 PKGNAMEPREFIX=	p5-
 
 MAINTAINER=	perl@FreeBSD.org
@@ -20,7 +19,10 @@
 USE_GL=		glut
 PERL_CONFIGURE=	yes
 
+MAN3=		Tessellation.3 Array.3 OpenGL.3
+
 post-patch:
-	@${PERL} -pi -e "s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g; s|/usr/X11R6|${LOCALBASE}|g" ${WRKSRC}/Makefile.PL
+	@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|g" \
+		${WRKSRC}/Makefile.PL
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/graphics/p5-OpenGL.orig/distinfo /usr/ports/graphics/p5-OpenGL/distinfo
--- /usr/ports/graphics/p5-OpenGL.orig/distinfo	2011-07-03 09:11:50.000000000 -0500
+++ /usr/ports/graphics/p5-OpenGL/distinfo	2011-10-12 21:41:51.651243162 -0500
@@ -1,2 +1,2 @@
-SHA256 (OpenGL-0.54.tar.gz) = 7a7969c77518b95f8c58c8f1dfe91dc550306a8beeb21586c3beffb23a850758
-SIZE (OpenGL-0.54.tar.gz) = 158462
+SHA256 (OpenGL-0.66.tar.gz) = 8837bf244d41e415e9ef05bece8fb60861293389d96a4115f0a64929650627df
+SIZE (OpenGL-0.66.tar.gz) = 611606
diff -ruN --exclude=CVS /usr/ports/graphics/p5-OpenGL.orig/files/patch-Makefile.PL /usr/ports/graphics/p5-OpenGL/files/patch-Makefile.PL
--- /usr/ports/graphics/p5-OpenGL.orig/files/patch-Makefile.PL	2004-12-17 13:34:05.000000000 -0600
+++ /usr/ports/graphics/p5-OpenGL/files/patch-Makefile.PL	1969-12-31 18:00:00.000000000 -0600
@@ -1,23 +0,0 @@
---- Makefile.PL.orig	Wed Jun 20 08:39:13 2001
-+++ Makefile.PL	Tue Dec 14 18:36:26 2004
-@@ -17,7 +17,7 @@
- 
- $pm_lib = (grep /^X11$/, @ARGV) ? '' : '-lopengl';
- 
--$libs = "-lGLU -lGLUT -lGLX $pm_lib -lMesaGLU -lMesaGLUT -lMesaGLX -lglut";
-+$libs = "-lglut %%PTHREAD_LIBS%%";
- 
- @libs = findlib->ext("$libdirs $libs");
- 
-@@ -75,6 +75,11 @@
- 
- $DEFS .= ' -DOS2_GL_DISABLE_MISSING_EXT -DAPIENTRY= -D__PM__'
-   if $^O eq 'os2' and not $x;
-+
-+# Check for GL extensions header (glext.h)
-+$glextout = `echo '\#include <GL/glext.h>' | $Config{cpprun} $includes $Config{cppflags} $Config{cppminus} >/dev/null 2>&1`;
-+$no_glext = $?;
-+$DEFS .= " -DHAVE_GLEXT_H" unless $no_glext;
- 
- # Should be deduced automatically, but how?!
- $no_lgcc = (grep /^NO_LGCC$/, @ARGV);
diff -ruN --exclude=CVS /usr/ports/graphics/p5-OpenGL.orig/files/patch-gl_util.c /usr/ports/graphics/p5-OpenGL/files/patch-gl_util.c
--- /usr/ports/graphics/p5-OpenGL.orig/files/patch-gl_util.c	2004-12-17 13:34:05.000000000 -0600
+++ /usr/ports/graphics/p5-OpenGL/files/patch-gl_util.c	2011-10-12 22:09:54.277408144 -0500
@@ -1,15 +1,6 @@
---- gl_util.c.orig	Wed Jun 20 09:03:02 2001
-+++ gl_util.c	Tue Dec 14 18:41:08 2004
-@@ -1,5 +1,8 @@
- 
- #include "gl_util.h"
-+#if defined(HAVE_GLEXT_H) && !defined(GL_BLEND_EQUATION_EXT)
-+#include <GL/glext.h>
-+#endif
- 
- int gl_texparameter_count(GLenum pname)
- {
-@@ -708,6 +711,12 @@
+--- gl_util.c.orig	2011-07-07 08:39:22.000000000 -0500
++++ gl_util.c	2011-10-12 22:09:31.520959086 -0500
+@@ -756,6 +756,12 @@ int gl_component_count(GLenum format, GL
  
  /* 18 */
  #ifdef GL_EXT_cmyka
diff -ruN --exclude=CVS /usr/ports/graphics/p5-OpenGL.orig/pkg-plist /usr/ports/graphics/p5-OpenGL/pkg-plist
--- /usr/ports/graphics/p5-OpenGL.orig/pkg-plist	2003-01-06 14:27:42.000000000 -0600
+++ /usr/ports/graphics/p5-OpenGL/pkg-plist	2011-10-12 21:58:28.842967501 -0500
@@ -2,5 +2,9 @@
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/OpenGL/OpenGL.so
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/OpenGL/autosplit.ix
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/OpenGL/.packlist
+%%SITE_PERL%%/%%PERL_ARCH%%/OpenGL/Tessellation.pod
+%%SITE_PERL%%/%%PERL_ARCH%%/OpenGL/Config.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/OpenGL/Array.pod
+%%SITE_PERL%%/%%PERL_ARCH%%/OpenGL.pod
 %%SITE_PERL%%/%%PERL_ARCH%%/OpenGL.pm
 @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/OpenGL
--- p5-OpenGL-0.66.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4e9659a2.904fe70a.231b.31c7>