summaryrefslogtreecommitdiffstats
path: root/external
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2016-05-01 23:51:47 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2016-05-02 07:59:25 +0000
commit7aa67d528b9f543fb61527cae7f0f487426cb414 (patch)
treea3f42375625ab07f9777ed6d6719d70b9845b1fb /external
parentsw: translate last Anz occurrences in headers (diff)
downloadcore-7aa67d528b9f543fb61527cae7f0f487426cb414.tar.gz
core-7aa67d528b9f543fb61527cae7f0f487426cb414.zip
glew: honor TMPDIR
Change-Id: Id5c20ec78dcde0144bd7718b7e9825b92ed70f3f Reviewed-on: https://gerrit.libreoffice.org/24582 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'external')
-rw-r--r--external/glew/UnpackedTarball_glew.mk4
-rw-r--r--external/glew/glew-tmpdir.patch.113
2 files changed, 17 insertions, 0 deletions
diff --git a/external/glew/UnpackedTarball_glew.mk b/external/glew/UnpackedTarball_glew.mk
index 3b1a5a187361..c47b7a07e2ad 100644
--- a/external/glew/UnpackedTarball_glew.mk
+++ b/external/glew/UnpackedTarball_glew.mk
@@ -41,4 +41,8 @@ $(eval $(call gb_UnpackedTarball_add_patches,glew,\
))
endif
+$(eval $(call gb_UnpackedTarball_add_patches,glew,\
+ external/glew/glew-tmpdir.patch.1 \
+))
+
# vim: set noet sw=4 ts=4:
diff --git a/external/glew/glew-tmpdir.patch.1 b/external/glew/glew-tmpdir.patch.1
new file mode 100644
index 000000000000..9a2847ba279a
--- /dev/null
+++ b/external/glew/glew-tmpdir.patch.1
@@ -0,0 +1,13 @@
+diff -ur glew.org/Makefile glew/Makefile
+--- glew.org/Makefile 2016-05-02 06:25:53.521291677 +0200
++++ glew/Makefile 2016-05-02 06:31:10.325035494 +0200
+@@ -55,7 +55,8 @@
+ DIST_SRC_TGZ ?= $(shell pwd)/$(DIST_NAME).tgz
+ DIST_WIN32 ?= $(shell pwd)/$(DIST_NAME)-win32.zip
+
+-DIST_DIR := $(shell mktemp -d /tmp/glew.XXXXXX)/$(DIST_NAME)
++TMPDIR ?= /tmp
++DIST_DIR := $(shell mktemp -d $(TMPDIR)/glew.XXXXXX)/$(DIST_NAME)
+
+ # To disable stripping of binaries either:
+ # - use STRIP= on gmake command-line