diff options
author | abs <abs@pkgsrc.org> | 2006-08-15 15:21:27 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2006-08-15 15:21:27 +0000 |
commit | c6c161ed532578c01ebdbf27ecc93d237565adff (patch) | |
tree | 850b84d6ba33b43c42a57c302a57b4837ca6b68e /graphics/glew | |
parent | a90dbaa595c1cc9323d2e23338fa56c07739d92b (diff) | |
download | pkgsrc-c6c161ed532578c01ebdbf27ecc93d237565adff.tar.gz |
Import graphics/glew-1.3.4 into pkgsrc.
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform
C/C++ extension loading library. GLEW provides efficient run-time
mechanisms for determining which OpenGL extensions are supported
on the target platform. OpenGL core and extension functionality is
exposed in a single header file.
Diffstat (limited to 'graphics/glew')
-rw-r--r-- | graphics/glew/DESCR | 5 | ||||
-rw-r--r-- | graphics/glew/Makefile | 24 | ||||
-rw-r--r-- | graphics/glew/PLIST | 10 | ||||
-rw-r--r-- | graphics/glew/buildlink3.mk | 22 | ||||
-rw-r--r-- | graphics/glew/distinfo | 7 | ||||
-rw-r--r-- | graphics/glew/patches/patch-aa | 26 | ||||
-rw-r--r-- | graphics/glew/patches/patch-ab | 18 |
7 files changed, 112 insertions, 0 deletions
diff --git a/graphics/glew/DESCR b/graphics/glew/DESCR new file mode 100644 index 00000000000..3354386cc40 --- /dev/null +++ b/graphics/glew/DESCR @@ -0,0 +1,5 @@ +The OpenGL Extension Wrangler Library (GLEW) is a cross-platform +C/C++ extension loading library. GLEW provides efficient run-time +mechanisms for determining which OpenGL extensions are supported +on the target platform. OpenGL core and extension functionality is +exposed in a single header file. diff --git a/graphics/glew/Makefile b/graphics/glew/Makefile new file mode 100644 index 00000000000..cb5c3aead34 --- /dev/null +++ b/graphics/glew/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/08/15 15:21:27 abs Exp $ +# + +PKGNAME= glew-1.3.4 +DISTNAME= ${PKGNAME}-src +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=glew/} +EXTRACT_SUFX= .tgz +WRKSRC= ${WRKDIR}/glew + +USE_LANGUAGES= c c++ + +USE_TOOLS+= gmake +MAKE_ENV+= GLEW_DEST=${PREFIX:Q} X11=${PREFIX:Q} POPT=${CFLAGS:M*:Q} +MAKE_ENV+= LDFLAGS.EXTRA=${X11_LDFLAGS:Q} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://glew.sourceforge.net/ +COMMENT= OpenGL Extension Wrangler Library + +.include "../../graphics/glu/buildlink3.mk" +.include "../../graphics/MesaLib/buildlink3.mk" +.include "../../mk/x11.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/glew/PLIST b/graphics/glew/PLIST new file mode 100644 index 00000000000..962fda438b9 --- /dev/null +++ b/graphics/glew/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/08/15 15:21:27 abs Exp $ +bin/glewinfo +bin/visualinfo +include/GL/wglew.h +include/GL/glew.h +include/GL/glxew.h +lib/libGLEW.so.1.3.4 +lib/libGLEW.so.1.3 +lib/libGLEW.a +lib/libGLEW.so diff --git a/graphics/glew/buildlink3.mk b/graphics/glew/buildlink3.mk new file mode 100644 index 00000000000..fb0c88f0f34 --- /dev/null +++ b/graphics/glew/buildlink3.mk @@ -0,0 +1,22 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2006/08/15 15:21:27 abs Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +GLEW_BUILDLINK3_MK:= ${GLEW_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= glew +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nglew} +BUILDLINK_PACKAGES+= glew +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}glew + +.if !empty(GLEW_BUILDLINK3_MK:M+) +BUILDLINK_API_DEPENDS.glew+= glew>=1.3.4 +BUILDLINK_ABI_DEPENDS.glew+= glew>=1.3.4 +BUILDLINK_PKGSRCDIR.glew?= ../../graphics/glew +.endif # GLEW_BUILDLINK3_MK + +.include "../../graphics/MesaLib/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/graphics/glew/distinfo b/graphics/glew/distinfo new file mode 100644 index 00000000000..9107bc87525 --- /dev/null +++ b/graphics/glew/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/08/15 15:21:27 abs Exp $ + +SHA1 (glew-1.3.4-src.tgz) = d70fb9fc07b99ec87a192818f73fc31b42c0811b +RMD160 (glew-1.3.4-src.tgz) = 1f845fddb61c5a679a105aeae9ff21037d9fab6d +Size (glew-1.3.4-src.tgz) = 362854 bytes +SHA1 (patch-aa) = 4d29ab40d2a12c433f804f953c0309df52611588 +SHA1 (patch-ab) = 35e46b52e743d2d4e3dcb275c57d91676f64b9b4 diff --git a/graphics/glew/patches/patch-aa b/graphics/glew/patches/patch-aa new file mode 100644 index 00000000000..96db5a39318 --- /dev/null +++ b/graphics/glew/patches/patch-aa @@ -0,0 +1,26 @@ +$NetBSD: patch-aa,v 1.1.1.1 2006/08/15 15:21:27 abs Exp $ + +--- config/Makefile.netbsdelf.orig 2006-02-03 13:24:33.000000000 +0000 ++++ config/Makefile.netbsdelf +@@ -0,0 +1,21 @@ ++NAME = $(GLEW_NAME) ++CC = cc ++LD = ld ++ifneq (undefined, $(origin GLEW_MX)) ++CFLAGS.EXTRA = -DGLEW_MX ++endif ++X11 ?= /usr/X11R6 ++LDFLAGS.SO = -shared -soname $(LIB.SONAME) ++LDFLAGS.EXTRA ?= -L${X11}/lib ++LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 ++LDFLAGS.STATIC = -Wl,-Bstatic ++LDFLAGS.DYNAMIC = -Wl,-Bdynamic ++CFLAGS.EXTRA += -I${X11}/include ++NAME = GLEW ++WARN = -Wall -W ++POPT ?= -O2 ++BIN.SUFFIX = ++LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) ++LIB.DEVLNK = lib$(NAME).so ++LIB.SHARED = lib$(NAME).so.$(SO_VERSION) ++LIB.STATIC = lib$(NAME).a diff --git a/graphics/glew/patches/patch-ab b/graphics/glew/patches/patch-ab new file mode 100644 index 00000000000..1cae64e8e70 --- /dev/null +++ b/graphics/glew/patches/patch-ab @@ -0,0 +1,18 @@ +$NetBSD: patch-ab,v 1.1.1.1 2006/08/15 15:21:27 abs Exp $ + +--- include/GL/glew.h.orig 2006-03-04 08:18:54.000000000 +0000 ++++ include/GL/glew.h +@@ -9770,8 +9770,13 @@ GLEWAPI const GLubyte* glewGetString (GL + + #ifdef GLEW_APIENTRY_DEFINED + #undef GLEW_APIENTRY_DEFINED ++/* ++Defining these, including glu.h which includes gl.h, and then undefining them ++leads to them staying undefined, as even if the app later includes gl.h it ++will leave them alone due to multiple include protection + #undef APIENTRY + #undef GLAPIENTRY ++*/ + #endif + + #ifdef GLEW_CALLBACK_DEFINED |