New package: perl-OpenGL-0.70
This commit is contained in:
parent
30a3e9279b
commit
9ce6f77ef6
|
@ -0,0 +1,54 @@
|
|||
--- Makefile.PL
|
||||
+++ Makefile.PL
|
||||
@@ -879,9 +879,9 @@ sub get_extensions
|
||||
my($key,$val) = split('=',$line);
|
||||
$gldata->{$key} = $val;
|
||||
}
|
||||
- die "get_extensions: no extensions found in $glv_file\n" if !keys %$gldata;
|
||||
+ #die "get_extensions: no extensions found in $glv_file\n" if !keys %$gldata;
|
||||
|
||||
- print "This looks like OpenGL Version: $gldata->{VERSION}\n";
|
||||
+ #print "This looks like OpenGL Version: $gldata->{VERSION}\n";
|
||||
|
||||
# Parse glext_procs.h file
|
||||
open GLEXT, "glext_procs.h" or die "get_extensions: could not open glext_procs.h: $!\n";
|
||||
@@ -902,8 +902,8 @@ sub get_extensions
|
||||
die "Unable to write to $exc_file\n" if (!open(GLEXC,">$exc_file"));
|
||||
print GLEXC "// OpenGL Extension Exclusions - may be modified before building.\n";
|
||||
print GLEXC "//\n";
|
||||
- print GLEXC "// Generated for ".$gldata->{VENDOR}.", ".$gldata->{RENDERER}."\n";
|
||||
- print GLEXC "// OpenGL v".$gldata->{VERSION}.", using ";
|
||||
+ #print GLEXC "// Generated for ".$gldata->{VENDOR}.", ".$gldata->{RENDERER}."\n";
|
||||
+ #print GLEXC "// OpenGL v".$gldata->{VERSION}.", using ";
|
||||
|
||||
# Fix GLUT flags based on results
|
||||
if ($gldata->{FREEGLUT})
|
||||
@@ -927,11 +927,11 @@ sub get_extensions
|
||||
|
||||
my $GL_VERSION;
|
||||
my($GL_VERSION_MAJOR, $GL_VERSION_MINOR);
|
||||
- if ($gldata->{VERSION} =~ m|^(\d\.\d+)|)
|
||||
- {
|
||||
- $GL_VERSION = $1;
|
||||
- ($GL_VERSION_MAJOR,$GL_VERSION_MINOR) = split('.', $GL_VERSION);
|
||||
- }
|
||||
+ #if ($gldata->{VERSION} =~ m|^(\d\.\d+)|)
|
||||
+ #{
|
||||
+ # $GL_VERSION = $1;
|
||||
+ # ($GL_VERSION_MAJOR,$GL_VERSION_MINOR) = split('.', $GL_VERSION);
|
||||
+ #}
|
||||
|
||||
# Make an empty exclusion file if a Windows distribution build
|
||||
if ($no_excl)
|
||||
--- utils/Makefile
|
||||
+++ utils/Makefile
|
||||
@@ -21,7 +21,8 @@ EXTRALIBS=-lGLU -lXi -lXmu -lXext -lX11 -lm
|
||||
all: glversion.txt
|
||||
|
||||
glversion.txt: glversion
|
||||
- ./glversion > glversion.txt
|
||||
+ #./glversion > glversion.txt
|
||||
+ touch glversion.txt
|
||||
|
||||
glversion: glversion.o
|
||||
${LINK} glversion.o ${LDFLAGS} ${EXTRALIBS} -o glversion
|
|
@ -0,0 +1,15 @@
|
|||
# Template file for 'perl-OpenGL'
|
||||
pkgname=perl-OpenGL
|
||||
version=0.70
|
||||
revision=1
|
||||
wrksrc="OpenGL-${version}"
|
||||
build_style=perl-module
|
||||
hostmakedepends="perl libfreeglut-devel libXmu-devel"
|
||||
makedepends="perl libfreeglut-devel libXmu-devel"
|
||||
depends="perl libfreeglut libXmu"
|
||||
short_desc="Wrapper library that allows OpenGL to be used in Perl"
|
||||
maintainer="Jasper Chan <jasperchan515@gmail.com>"
|
||||
license="Artistic-1.0-Perl, GPL-1.0-or-later"
|
||||
homepage="https://metacpan.org/release/OpenGL"
|
||||
distfiles="${CPAN_SITE}/OpenGL/${pkgname#perl-}-${version}.tar.gz"
|
||||
checksum=b20e2af4404b4901ab35bba6ad5e3a8aa60bff72413c99288f01018c4cf874e0
|
Loading…
Reference in New Issue