summaryrefslogtreecommitdiff
path: root/graphics/glew
diff options
context:
space:
mode:
authorrumko <rumko@pkgsrc.org>2014-12-31 16:08:50 +0000
committerrumko <rumko@pkgsrc.org>2014-12-31 16:08:50 +0000
commita3bd809b268c5dddb3a8db6311c448a245becf2d (patch)
treeed8b163cae76491cb8ee65600ec19b34af5fc878 /graphics/glew
parentf383d281f429f6226c66069c8db09633f5d65d33 (diff)
downloadpkgsrc-a3bd809b268c5dddb3a8db6311c448a245becf2d.tar.gz
graphics/glew: Fix build on FBSD due to missing -fPIC
OK@ wiz
Diffstat (limited to 'graphics/glew')
-rw-r--r--graphics/glew/distinfo3
-rw-r--r--graphics/glew/patches/patch-config_Makefile.freebsd16
2 files changed, 18 insertions, 1 deletions
diff --git a/graphics/glew/distinfo b/graphics/glew/distinfo
index 5bde8431c04..167e6cc2c33 100644
--- a/graphics/glew/distinfo
+++ b/graphics/glew/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.17 2014/11/24 20:06:20 adam Exp $
+$NetBSD: distinfo,v 1.18 2014/12/31 16:08:50 rumko Exp $
SHA1 (glew-1.11.0.tgz) = 9bb5c87c055acd122a4956112bbb18ee72c38e5c
RMD160 (glew-1.11.0.tgz) = 28f10f181df1301596f5897ec25f6e8136f108c0
Size (glew-1.11.0.tgz) = 601430 bytes
SHA1 (patch-ac) = 0b037e6179efd5d0a2e75061b962dead5b7b4328
+SHA1 (patch-config_Makefile.freebsd) = 59dbd50329be39af3357e6c8ba6d5a6b22c77a1b
SHA1 (patch-config_Makefile.linux) = 49ae0366211065225c944cd0088af6e591f12aa9
diff --git a/graphics/glew/patches/patch-config_Makefile.freebsd b/graphics/glew/patches/patch-config_Makefile.freebsd
new file mode 100644
index 00000000000..500764273c9
--- /dev/null
+++ b/graphics/glew/patches/patch-config_Makefile.freebsd
@@ -0,0 +1,16 @@
+$NetBSD: patch-config_Makefile.freebsd,v 1.1 2014/12/31 16:08:51 rumko Exp $
+
+On FreeBSD, we need -fPIC in order to link the final library.
+See https://sourceforge.net/p/glew/bugs/264/
+
+--- config/Makefile.freebsd.orig 2014-12-27 09:21:52.872201275 +0000
++++ config/Makefile.freebsd
+@@ -5,7 +5,7 @@ LDFLAGS.EXTRA = -L/usr/pkg/lib
+ LDFLAGS.GL = -lGL -lX11
+ LDFLAGS.STATIC = -Wl,-Bstatic
+ LDFLAGS.DYNAMIC = -Wl,-Bdynamic
+-CFLAGS.EXTRA += -I/usr/X11R6/include
++CFLAGS.EXTRA += -I/usr/X11R6/include -fPIC
+ NAME = GLEW
+ WARN = -Wall -W
+ POPT = -O2