mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 07:41:50 -04:00
As the released version does not work with Erlang 24 and the latest devel release is rather buggy, update to the latest commit from github. That does not suggest that this version is perfect, I observe some wonkiness when actually displaying models; but at least it builds. While here, simplify the port: it doesn't work any worse when not copying and symlinking the installation directory.
66 lines
1.8 KiB
Text
66 lines
1.8 KiB
Text
--- 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
|