diff options
author | abs <abs@pkgsrc.org> | 2011-08-20 20:25:51 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2011-08-20 20:25:51 +0000 |
commit | 709b3bcfd5804887636fdc2db9e1fd29e0dcff14 (patch) | |
tree | 066277adcfc5c935b8e01ba7bcc4b6432f530fa0 /graphics/glew | |
parent | 37c1eb5c21111ed558d3c2cdd5d0025cb74fb8d6 (diff) | |
download | pkgsrc-709b3bcfd5804887636fdc2db9e1fd29e0dcff14.tar.gz |
Fix build on 64bit Linux
Diffstat (limited to 'graphics/glew')
-rw-r--r-- | graphics/glew/distinfo | 3 | ||||
-rw-r--r-- | graphics/glew/patches/patch-config_Makefile.linux | 25 |
2 files changed, 27 insertions, 1 deletions
diff --git a/graphics/glew/distinfo b/graphics/glew/distinfo index bf461ddf292..47b8984ac11 100644 --- a/graphics/glew/distinfo +++ b/graphics/glew/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.12 2011/07/17 07:45:19 dholland Exp $ +$NetBSD: distinfo,v 1.13 2011/08/20 20:26:25 abs Exp $ SHA1 (glew-1.6.0.tgz) = ed555d15d0f01239b262c4cf803e97d60d8a18b6 RMD160 (glew-1.6.0.tgz) = 5b896cb9bf3b2058cc6a5e167d64bae04b46eb6c @@ -6,3 +6,4 @@ Size (glew-1.6.0.tgz) = 494713 bytes SHA1 (patch-aa) = 0d1afd9009f5bb89868ca6d9c5f6561fce3d9e4b SHA1 (patch-ac) = f071608a22b201575f009fb8a257d27deab2c8fc SHA1 (patch-ad) = 0801264561feb144179f7e6904080873529890ff +SHA1 (patch-config_Makefile.linux) = 83ab32d8a5e1639c0b6e845f9aa2f29e3cb16afc diff --git a/graphics/glew/patches/patch-config_Makefile.linux b/graphics/glew/patches/patch-config_Makefile.linux new file mode 100644 index 00000000000..14d2b335535 --- /dev/null +++ b/graphics/glew/patches/patch-config_Makefile.linux @@ -0,0 +1,25 @@ +$NetBSD: patch-config_Makefile.linux,v 1.1 2011/08/20 20:25:51 abs Exp $ + +--- config/Makefile.linux.orig 2011-04-27 16:16:34.000000000 +0000 ++++ config/Makefile.linux +@@ -1,16 +1,12 @@ + NAME = $(GLEW_NAME) + CC = cc +-LD = cc ++LD = ld + PICFLAG = -fPIC ++X11 ?= /usr/X11R6 + M_ARCH ?= $(shell uname -m) +-ifeq (x86_64,${M_ARCH}) +-LDFLAGS.EXTRA = -L/usr/X11R6/lib64 +-LIBDIR = $(GLEW_DEST)/lib64 +-else +-LDFLAGS.EXTRA = -L/usr/X11R6/lib ++LDFLAGS.EXTRA ?= -L${X11}/lib + LIBDIR = $(GLEW_DEST)/lib +-endif +-LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 ++LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11 -lpthread + LDFLAGS.STATIC = -Wl,-Bstatic + LDFLAGS.DYNAMIC = -Wl,-Bdynamic + NAME = GLEW |