From a7fb7328a9d9f71af79cb3e6d82f1e2945207bb0 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Mon, 6 Jan 2003 20:27:42 +0000 Subject: [PATCH] add p5-OpenGL 0.54 Perl module to display 3D data using OpenGL, GLU, GLUT, and GLX --- graphics/Makefile | 1 + graphics/p5-OpenGL/Makefile | 24 ++++++++++++++++++++++ graphics/p5-OpenGL/distinfo | 1 + graphics/p5-OpenGL/files/patch-Makefile.PL | 11 ++++++++++ graphics/p5-OpenGL/pkg-comment | 1 + graphics/p5-OpenGL/pkg-descr | 4 ++++ graphics/p5-OpenGL/pkg-plist | 6 ++++++ 7 files changed, 48 insertions(+) create mode 100644 graphics/p5-OpenGL/Makefile create mode 100644 graphics/p5-OpenGL/distinfo create mode 100644 graphics/p5-OpenGL/files/patch-Makefile.PL create mode 100644 graphics/p5-OpenGL/pkg-comment create mode 100644 graphics/p5-OpenGL/pkg-descr create mode 100644 graphics/p5-OpenGL/pkg-plist diff --git a/graphics/Makefile b/graphics/Makefile index eae4463f9c3d..6ec184872fa6 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -252,6 +252,7 @@ SUBDIR += p5-Image-Size SUBDIR += p5-Imager SUBDIR += p5-Imlib2 + SUBDIR += p5-OpenGL SUBDIR += p5-chart SUBDIR += p5-ming SUBDIR += panorama diff --git a/graphics/p5-OpenGL/Makefile b/graphics/p5-OpenGL/Makefile new file mode 100644 index 000000000000..7dd02b14cad7 --- /dev/null +++ b/graphics/p5-OpenGL/Makefile @@ -0,0 +1,24 @@ +# ex:ts=8 +# Ports collection makefile for: p5-OpenGL +# Date created: Jan 7, 2003 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= OpenGL +PORTVERSION= 0.54 +CATEGORIES= graphics perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= ../by-authors/id/I/IL/ILYAZ/modules +PKGNAMEPREFIX= p5- + +MAINTAINER= ports@FreeBSD.org + +PERL_CONFIGURE= yes +USE_MESA= yes + +post-patch: + @${PERL} -pi -e "s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g" ${WRKSRC}/Makefile.PL + +.include diff --git a/graphics/p5-OpenGL/distinfo b/graphics/p5-OpenGL/distinfo new file mode 100644 index 000000000000..9da1abb5eeff --- /dev/null +++ b/graphics/p5-OpenGL/distinfo @@ -0,0 +1 @@ +MD5 (OpenGL-0.54.tar.gz) = ff53886f6fc0d81ddde0e40725c8e33b diff --git a/graphics/p5-OpenGL/files/patch-Makefile.PL b/graphics/p5-OpenGL/files/patch-Makefile.PL new file mode 100644 index 000000000000..acfd539ac55c --- /dev/null +++ b/graphics/p5-OpenGL/files/patch-Makefile.PL @@ -0,0 +1,11 @@ +--- Makefile.PL.orig Wed Jun 20 16:39:13 2001 ++++ Makefile.PL Thu Oct 10 22:51:15 2002 +@@ -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"); + diff --git a/graphics/p5-OpenGL/pkg-comment b/graphics/p5-OpenGL/pkg-comment new file mode 100644 index 000000000000..53211e4fc253 --- /dev/null +++ b/graphics/p5-OpenGL/pkg-comment @@ -0,0 +1 @@ +Perl module to display 3D data using OpenGL, GLU, GLUT, and GLX diff --git a/graphics/p5-OpenGL/pkg-descr b/graphics/p5-OpenGL/pkg-descr new file mode 100644 index 000000000000..57c4bad5a234 --- /dev/null +++ b/graphics/p5-OpenGL/pkg-descr @@ -0,0 +1,4 @@ +This module provides access to most of the OpenGL 1.0, 1.1, and 1.2 APIs. +Some amount of GLU is supported (I'm not quite sure what version it works +out to), and GLUT should be completely supported up to API version 3. A +small portion of GLX and X11 is supported, as an alternative to GLUT. diff --git a/graphics/p5-OpenGL/pkg-plist b/graphics/p5-OpenGL/pkg-plist new file mode 100644 index 000000000000..330b9eaac86a --- /dev/null +++ b/graphics/p5-OpenGL/pkg-plist @@ -0,0 +1,6 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/OpenGL/OpenGL.bs +%%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.pm +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/OpenGL