summaryrefslogtreecommitdiff
path: root/repo/glew
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/glew
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/glew')
-rw-r--r--repo/glew/glew.patch34
-rw-r--r--repo/glew/glew.xibuild20
2 files changed, 54 insertions, 0 deletions
diff --git a/repo/glew/glew.patch b/repo/glew/glew.patch
new file mode 100644
index 0000000..61c4447
--- /dev/null
+++ b/repo/glew/glew.patch
@@ -0,0 +1,34 @@
+Fixes pkg-config file to have correct system libdir.
+
+diff -aur glew-2.2.0/Makefile glew-2.2.0-alpine/Makefile
+--- glew-2.2.0/Makefile 2020-03-15 11:53:59.000000000 +0000
++++ glew-2.2.0-alpine/Makefile 2022-01-28 02:42:23.773580331 +0000
+@@ -144,7 +144,7 @@
+ glew.pc: glew.pc.in
+ sed \
+ -e "s|@prefix@|$(GLEW_PREFIX)|g" \
+- -e "s|@libdir@|$(LIBDIR)|g" \
++ -e "s|@libdir@|/usr/lib|g" \
+ -e "s|@exec_prefix@|$(BINDIR)|g" \
+ -e "s|@includedir@|$(INCDIR)|g" \
+ -e "s|@version@|$(GLEW_VERSION)|g" \
+
+diff -aur glew-2.2.0/config/Makefile.linux glew-2.2.0-alpine/config/Makefile.linux
+--- glew-2.2.0/config/Makefile.linux 2020-03-15 11:53:59.000000000 +0000
++++ glew-2.2.0-alpine/config/Makefile.linux 2022-01-28 02:43:26.813582486 +0000
+@@ -12,13 +12,8 @@
+ ifeq (e2k,${M_ARCH})
+ ARCH64 = true
+ endif
+-ifeq (${ARCH64},true)
+- LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64
+- LIBDIR = $(GLEW_DEST)/lib64
+-else
+- LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib
+- LIBDIR = $(GLEW_DEST)/lib
+-endif
++LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib
++LIBDIR = $(GLEW_DEST)/lib
+ LDFLAGS.GL = -lGL -lX11
+ LDFLAGS.STATIC = -Wl,-Bstatic
+ LDFLAGS.DYNAMIC = -Wl,-Bdynamic
diff --git a/repo/glew/glew.xibuild b/repo/glew/glew.xibuild
new file mode 100644
index 0000000..fcace5f
--- /dev/null
+++ b/repo/glew/glew.xibuild
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+NAME="glew"
+DESC="A cross-platform C/C++ extension loading library"
+
+MAKEDEPS="make "
+DEPS="libxmu libxi mesa glu"
+
+PKG_VER=2.2.0
+SOURCE="https://downloads.sourceforge.net/glew/glew-$PKG_VER.tgz"
+ADDITIONAL="glew.patch "
+
+build () {
+ make GLEW_DEST=$PKG_DEST
+}
+
+package () {
+ make GLEW_DEST=$PKG_DEST/usr install
+ mv $PKG_DEST/usr/lib64/* $PKG_DEST/usr/lib/
+}