From lichray@gmail.com  Thu Oct 13 03:23:16 2011
Return-Path: <lichray@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DFA60106567B
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 Oct 2011 03:23:16 +0000 (UTC)
	(envelope-from lichray@gmail.com)
Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182])
	by mx1.freebsd.org (Postfix) with ESMTP id ACEB98FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 Oct 2011 03:23:16 +0000 (UTC)
Received: by iaky10 with SMTP id y10so1009379iak.13
        for <FreeBSD-gnats-submit@freebsd.org>; Wed, 12 Oct 2011 20:23:16 -0700 (PDT)
Received: by 10.231.48.142 with SMTP id r14mr840681ibf.5.1318476195449;
        Wed, 12 Oct 2011 20:23:15 -0700 (PDT)
Received: from elitebook.hp (c-98-228-191-105.hsd1.il.comcast.net. [98.228.191.105])
        by mx.google.com with ESMTPS id p16sm6602141ibk.6.2011.10.12.20.23.12
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 12 Oct 2011 20:23:14 -0700 (PDT)
Received: by elitebook.hp (sSMTP sendmail emulation); Wed, 12 Oct 2011 22:23:11 -0500
Message-Id: <4e9659a2.904fe70a.231b.31c7@mx.google.com>
Date: Wed, 12 Oct 2011 22:23:11 -0500
From: Zhihao Yuan <lichray@gmail.com>
Reply-To: Zhihao Yuan <lichray@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: graphics/p5-OpenGL: Updates to 0.66
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         161534
>Category:       ports
>Synopsis:       graphics/p5-OpenGL: Updates to 0.66
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    sunpoet
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 13 03:30:10 UTC 2011
>Closed-Date:    Mon Dec 05 03:24:39 UTC 2011
>Last-Modified:  Mon Dec  5 03:30:15 UTC 2011
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->perl 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Oct 13 03:30:22 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161534 
State-Changed-From-To: open->feedback 
State-Changed-By: sunpoet 
State-Changed-When: Tue Oct 25 17:00:12 UTC 2011 
State-Changed-Why:  
Have you ever successfully built this port in text-based terminal (vt220 
or so)?  glversion does not run in text-based terminal. It gives error 
message as follows: 

In order to test your GPU's capabilities, run this make under an X11 
shell 

GLUT: Fatal Error in glversion: could not open display: Can't open 
Makefile: No such file or directory. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=161534 

From: Zhihao Yuan <lichray@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/161534: graphics/p5-OpenGL: Updates to 0.66
Date: Wed, 9 Nov 2011 11:16:20 -0600

 --001517503db25dfddf04b1507248
 Content-Type: text/plain; charset=UTF-8
 
 The detection is essential. So please adds USE_DISPLAY to it.
 
 --
 Zhihao Yuan
 
 --001517503db25dfddf04b1507248
 Content-Type: text/html; charset=UTF-8
 
 <p>The detection is essential. So please adds USE_DISPLAY to it.</p>
 <p>--<br>
 Zhihao Yuan</p>
 
 --001517503db25dfddf04b1507248--
Responsible-Changed-From-To: perl->sunpoet 
Responsible-Changed-By: sunpoet 
Responsible-Changed-When: Fri Dec 2 10:24:07 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161534 
State-Changed-From-To: feedback->closed 
State-Changed-By: sunpoet 
State-Changed-When: Mon Dec 5 03:24:38 UTC 2011 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161534 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/161534: commit references a PR
Date: Mon,  5 Dec 2011 03:24:36 +0000 (UTC)

 sunpoet     2011-12-05 03:24:28 UTC
 
   FreeBSD ports repository
 
   Modified files:
     graphics/p5-OpenGL   Makefile distinfo pkg-descr pkg-plist 
     graphics/p5-OpenGL/files patch-gl_util.c 
   Removed files:
     graphics/p5-OpenGL/files patch-Makefile.PL 
   Log:
   - Update to 0.66
   - While I'm here, add missing trailing slash to WWW
   
   Changes:        http://search.cpan.org/dist/OpenGL/Release_Notes
   PR:             ports/161534
   Submitted by:   Zhihao Yuan <lichray@gmail.com>
   Feature safe:   yes
   
   Revision  Changes    Path
   1.10      +10 -5     ports/graphics/p5-OpenGL/Makefile
   1.5       +2 -2      ports/graphics/p5-OpenGL/distinfo
   1.3       +0 -23     ports/graphics/p5-OpenGL/files/patch-Makefile.PL (dead)
   1.2       +3 -12     ports/graphics/p5-OpenGL/files/patch-gl_util.c
   1.3       +1 -1      ports/graphics/p5-OpenGL/pkg-descr
   1.2       +7 -2      ports/graphics/p5-OpenGL/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
