summaryrefslogtreecommitdiff
path: root/graphics/wings/files/patch-Makefile
blob: 9f650fc8b15112db7246f6da5f79ff94924b5629 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
--- Makefile.orig	2021-10-01 21:29:37.160867000 +0200
+++ Makefile	2021-10-01 21:32:11.015663000 +0200
@@ -17,7 +17,7 @@
 DEPS=cl
 endif
 
-DEPS += libigl eigen
+DEPS += libigl
 SUBDIRS=c_src intl_tools src e3d plugins_src icons
 
 #
@@ -106,35 +106,38 @@
 #  External Dependencies
 #
 
-CL_REPO = https://github.com/tonyrog/cl.git
-IGL_REPO = https://github.com/dgud/libigl.git
-EIGEN_REPO = https://github.com/eigenteam/eigen-git-mirror.git
+# do not try to pull stuff during build
+# CL_REPO = https://github.com/tonyrog/cl.git
+# IGL_REPO = https://github.com/dgud/libigl.git
+# EIGEN_REPO = https://github.com/eigenteam/eigen-git-mirror.git
 
-CL_VER=cl-1.2.4
-IGL_VER=master
-EIGEN_VER=3.3.7
+# CL_VER=cl-1.2.4
+# IGL_VER=master
+# EIGEN_VER=3.3.7
 # see libigl/cmake/LibiglDownloadExternal.cmake for eigen version
 
 GIT_FLAGS = -c advice.detachedHead=false clone --depth 1
 
 .PHONY: cl igl eigen
 
+# use erlang-cl from ports
 # cl (erl wrapper library) not in path try to download and build it
-cl: _deps/cl
-	@(cd _deps/cl; rebar3 compile > ../build_log 2>&1 && rm ../build_log) \
-	  || echo ***Warning*** OpenCL not useable >> _deps/build_log
+# cl: _deps/cl
+# 	@(cd _deps/cl; rebar3 compile > ../build_log 2>&1 && rm ../build_log) \
+# 	  || echo ***Warning*** OpenCL not useable >> _deps/build_log
+#
+# _deps/cl:
+# 	git $(GIT_FLAGS) -b $(CL_VER) $(CL_REPO) _deps/cl
 
-_deps/cl:
-	git $(GIT_FLAGS) -b $(CL_VER) $(CL_REPO) _deps/cl
-
 # libigl have many useful function
 libigl: _deps/libigl
 
 _deps/libigl:
 	git $(GIT_FLAGS) -b $(IGL_VER) $(IGL_REPO) _deps/libigl
 
+# use eigen3 from ports
 # eigen needed by libigl
-eigen: _deps/eigen
-
-_deps/eigen:
-	git $(GIT_FLAGS) -b $(EIGEN_VER) $(EIGEN_REPO) _deps/eigen
+# eigen: _deps/eigen
+#
+# _deps/eigen:
+#	git $(GIT_FLAGS) -b $(EIGEN_VER) $(EIGEN_REPO) _deps/eigen