Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flathub/shared-modules.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/glew
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <b@bpiotrowski.pl>2017-09-06 12:41:57 +0300
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2017-09-06 12:41:57 +0300
commitf08f4b7bce356cc600008f0a86cbd170ae1d3879 (patch)
treed09aff3cc38a06215c21daee6045bff882554ba7 /glew
parent802ffe7a3e5728e985dd5f7c45e6e158f940099a (diff)
Add glew-2.0.0
Diffstat (limited to 'glew')
-rw-r--r--glew/glew-2.0.0.json29
-rw-r--r--glew/glew-no-static-lib.patch33
2 files changed, 62 insertions, 0 deletions
diff --git a/glew/glew-2.0.0.json b/glew/glew-2.0.0.json
new file mode 100644
index 0000000..e39b4ea
--- /dev/null
+++ b/glew/glew-2.0.0.json
@@ -0,0 +1,29 @@
+{
+ "name": "glew",
+ "no-autogen": true,
+ "make-args": [
+ "GLEW_PREFIX=/app",
+ "GLEW_DEST=/app",
+ "LIBDIR=/app/lib"
+ ],
+ "make-install-args": [
+ "GLEW_PREFIX=/app",
+ "GLEW_DEST=/app",
+ "LIBDIR=/app/lib"
+ ],
+ "sources": [
+ {
+ "type": "archive",
+ "url": "https://downloads.sourceforge.net/project/glew/glew/2.0.0/glew-2.0.0.tgz",
+ "sha256": "c572c30a4e64689c342ba1624130ac98936d7af90c3103f9ce12b8a0c5736764"
+ },
+ {
+ "type": "patch",
+ "path": "glew-no-static-lib.patch"
+ }
+ ],
+ "cleanup": [
+ "/include",
+ "/lib/pkgconfig"
+ ]
+},
diff --git a/glew/glew-no-static-lib.patch b/glew/glew-no-static-lib.patch
new file mode 100644
index 0000000..6204d36
--- /dev/null
+++ b/glew/glew-no-static-lib.patch
@@ -0,0 +1,33 @@
+From 7dca5ec1eb03bb0564a9f364251b4e3f2dfab3c2 Mon Sep 17 00:00:00 2001
+From: Mathieu Bridon <bochecha@daitauha.fr>
+Date: Mon, 12 Sep 2016 13:18:40 +0200
+Subject: [PATCH] Don't build the static libraries
+
+---
+ Makefile | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 88b7a54..bb03704 100644
+--- a/Makefile
++++ b/Makefile
+@@ -98,7 +98,7 @@ LIB.OBJS := $(LIB.OBJS:.c=.o)
+ LIB.SOBJS := $(addprefix tmp/$(SYSTEM)/default/shared/,$(LIB.SRCS.NAMES))
+ LIB.SOBJS := $(LIB.SOBJS:.c=.o)
+
+-glew.lib: lib lib/$(LIB.SHARED) lib/$(LIB.STATIC) glew.pc
++glew.lib: lib lib/$(LIB.SHARED) glew.pc
+
+ lib:
+ mkdir lib
+@@ -218,7 +218,6 @@ endif
+ ifneq ($(LN),)
+ $(LN) $(LIB.SHARED) "$(DESTDIR)$(LIBDIR)/$(LIB.DEVLNK)"
+ endif
+- $(INSTALL) -m 0644 lib/$(LIB.STATIC) "$(DESTDIR)$(LIBDIR)/"
+
+ install.bin: glew.bin
+ $(INSTALL) -d -m 0755 "$(DESTDIR)$(BINDIR)"
+--
+2.7.4
+