diff options
author | jbeich <jbeich@FreeBSD.org> | 2018-01-01 21:42:54 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2018-01-01 21:42:54 +0800 |
commit | 19a63bf6383364ed5252a57b59c80c095b02cf7b (patch) | |
tree | 38db9f1d8ee32af4ab5c52ef2f7c2b9aef2a174d /math/ceres-solver | |
parent | be214fa55f98d07d26bc2bc15cbea7862456485c (diff) | |
download | freebsd-ports-gnome-19a63bf6383364ed5252a57b59c80c095b02cf7b.tar.gz freebsd-ports-gnome-19a63bf6383364ed5252a57b59c80c095b02cf7b.tar.zst freebsd-ports-gnome-19a63bf6383364ed5252a57b59c80c095b02cf7b.zip |
Improve CMake style in my ports
- Convert to CMAKE_{ON,OFF} helpers
- Convert to _CMAKE_BOOL option helpers
- android-file-transfer: Share _CMAKE_BOOL via _IMPLIES
- Annotate types
Diffstat (limited to 'math/ceres-solver')
-rw-r--r-- | math/ceres-solver/Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/math/ceres-solver/Makefile b/math/ceres-solver/Makefile index 5c1500585a41..9c8909e64d17 100644 --- a/math/ceres-solver/Makefile +++ b/math/ceres-solver/Makefile @@ -23,7 +23,7 @@ USE_GITHUB= yes USE_LDCONFIG= yes SHEBANG_FILES= examples/slam/pose_graph_*/plot_results.py \ scripts/make_docs.py -CMAKE_ARGS= -DCXX11=on -DBUILD_SHARED_LIBS=on +CMAKE_ON= CXX11 BUILD_SHARED_LIBS LDFLAGS+= -Wl,--as-needed # -lccolamd -lcholmod -lrt from suitesparse PLIST_SUB= VERSION=${DISTVERSION:C/rc.*//} EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:S/-solver//} @@ -67,26 +67,27 @@ TEST_IMPLIES= GFLAGS LAPACK_DESC= Linear Algebra PACKage LAPACK_USES= fortran # LDFLAGS -LAPACK_CMAKE_ON= -DBLAS_LIBRARIES="${BLASLIB}" -DLAPACK_LIBRARIES="${LAPACKLIB}" +LAPACK_CMAKE_ON= -DBLAS_LIBRARIES:FILEPATH="${BLASLIB}" \ + -DLAPACK_LIBRARIES:FILEPATH="${LAPACKLIB}" LAPACK_CMAKE_BOOL= LAPACK ATLAS_USES= blaslapack:atlas -ATLAS_CMAKE_ON= -DBLA_VENDOR="ATLAS" +ATLAS_CMAKE_ON= -DBLA_VENDOR:STRING="ATLAS" ATLAS_IMPLIES= LAPACK GOTOBLAS_DESC= Goto blas implementation GOTOBLAS_USES= blaslapack:gotoblas -GOTOBLAS_CMAKE_ON= -DBLA_VENDOR="Goto" +GOTOBLAS_CMAKE_ON= -DBLA_VENDOR:STRING="Goto" GOTOBLAS_IMPLIES= LAPACK NETLIB_USES= blaslapack:netlib -NETLIB_CMAKE_ON= -DBLA_VENDOR="Generic" +NETLIB_CMAKE_ON= -DBLA_VENDOR:STRING="Generic" NETLIB_IMPLIES= LAPACK OPENBLAS_USES= blaslapack:openblas -OPENBLAS_CMAKE_ON= -DBLA_VENDOR="OpenBLAS" +OPENBLAS_CMAKE_ON= -DBLA_VENDOR:STRING="OpenBLAS" OPENBLAS_IMPLIES= LAPACK SPARSE_DESC= Sparse linear algebra library CXSPARSE_DESC= CXSparse support CXSPARSE_LIB_DEPENDS= libcxsparse.so:math/suitesparse -CXSPARSE_CMAKE_ON= -DCXSPARSE_INCLUDE_DIR="${LOCALBASE}/include/suitesparse" +CXSPARSE_CMAKE_ON= -DCXSPARSE_INCLUDE_DIR:PATH="${LOCALBASE}/include/suitesparse" CXSPARSE_CMAKE_BOOL= CXSPARSE EIGENSPARSE_DESC= Simplicial Cholesky factorization in Eigen EIGENSPARSE_CMAKE_BOOL= EIGENSPARSE |