2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mlpack/mlpack
|
2020-10-21 05:37:51 +08:00
|
|
|
REF 7ae9ddda86c1751b6509ceb48b27d182feaae439 # 3.4.1
|
|
|
|
SHA512 db68c16b80af7037ac562f93775b6262f1552fbc89daa0c621075e2ff70a8306523da8eb74e33ac15ba34c9ccef8f2746bd1e4efa7c280a5be77b53c69d3f9a1
|
2019-05-03 13:57:43 +08:00
|
|
|
HEAD_REF master
|
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
|
|
|
PATCHES
|
|
|
|
cmakelists.patch
|
2021-05-20 05:05:43 +08:00
|
|
|
fix-configure-error.patch
|
|
|
|
fix-test-dependency.patch
|
2021-07-17 03:55:36 +08:00
|
|
|
fix-dependencies.patch
|
2019-05-03 13:57:43 +08:00
|
|
|
)
|
|
|
|
|
2021-12-11 05:51:15 +08:00
|
|
|
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindACML.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindACMLMP.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindARPACK.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindBLAS.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindCBLAS.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindCLAPACK.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindLAPACK.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindMKL.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindOpenBLAS.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/CMake/FindArmadillo.cmake")
|
2019-05-03 13:57:43 +08:00
|
|
|
|
2020-03-11 08:15:34 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-07-17 03:55:36 +08:00
|
|
|
FEATURES
|
|
|
|
tools BUILD_CLI_EXECUTABLES
|
|
|
|
openmp USE_OPENMP
|
2020-03-11 08:15:34 +08:00
|
|
|
)
|
2019-05-03 13:57:43 +08:00
|
|
|
|
2021-12-11 05:51:15 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
[openexr,openimageio,suitesparse,theia] updates for non-win32 (#6371)
* [openexr,openimageio,suitesparse,theia] updates for non-win32
* [theia] use only valid cmake symbols
* [suitesparse] Fix build
* [lapack] still not properly integrating with other ports
* [lapack] intercept cmake module calls and substitute them with our defs
* [suitesparse,clapack] fixes for proper integration
* [ceres,clapack] bump CONTROL
* [suitesparse] remove unnecessary defs
* [clapack] improve wrapper logic
* [WIN32] remove wrong symbol
* [clapack] fix wrapper integration
* [Accelerate] use best framework when available
* [clapack] separate config from wrapper
* [clapack] fix paths and filenames
* [mlpack,armadillo,clapack] improve library handling
* [mlpack] remove unnecessary cmake option
* [clp,coinutils,osi,liblemon] dependencies of openmvg, improve compatibility with non-win32
* [openmvg] fix for case-sensitive filesystems
* [clp,coinutils,osi] simplify CMakeLists removing many unnecessary steps
* [sophus] Force rebuild
* [theia] fixes for linux, part1
* [io2d] remove broken sintax
* [fontconfig] bump version to remove CI cached failure
* [theia] fixes for linux, part2
* [theia] remove unnecessary empty folders and comments from portfile
* [theia] use correct build type removing forced vars in cmakelists.txt
* [openmvg] add missing suitesparse target detection
* [sophus] fix Suitesparse dependency
* [sophus,openmvg] use suitesparse lowercase for module compatibility on case-sensitive filesystems
* [suitesparse] fixes for case-sensitive filesystems
* [openmvg] use correct Eigen3 name for case-sensitive filesystems
* [sophus] trigger rebuild
* [shogun] use modern vcpkg style
* [shogun] add missing cmake system processor symbol
2019-06-01 06:48:17 +08:00
|
|
|
OPTIONS
|
2020-03-17 05:51:46 +08:00
|
|
|
-DBUILD_TESTS=OFF
|
2020-06-10 02:39:17 +08:00
|
|
|
-DDOWNLOAD_STB_IMAGE=OFF
|
|
|
|
-DDOWNLOAD_ENSMALLEN=OFF
|
|
|
|
-DBUILD_PYTHON_BINDINGS=OFF
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
2020-03-11 08:15:34 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2019-05-03 13:57:43 +08:00
|
|
|
)
|
2021-12-11 05:51:15 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-10-21 05:37:51 +08:00
|
|
|
|
2021-12-11 05:51:15 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mlpack)
|
2020-10-21 05:37:51 +08:00
|
|
|
|
2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2020-03-11 08:15:34 +08:00
|
|
|
if("tools" IN_LIST FEATURES)
|
2020-08-28 13:13:05 +08:00
|
|
|
vcpkg_copy_tools(AUTO_CLEAN TOOL_NAMES
|
|
|
|
mlpack_adaboost
|
|
|
|
mlpack_approx_kfn
|
|
|
|
mlpack_cf
|
|
|
|
mlpack_dbscan
|
|
|
|
mlpack_decision_stump
|
|
|
|
mlpack_decision_tree
|
|
|
|
mlpack_det
|
|
|
|
mlpack_emst
|
|
|
|
mlpack_fastmks
|
|
|
|
mlpack_gmm_generate
|
|
|
|
mlpack_gmm_probability
|
|
|
|
mlpack_gmm_train
|
|
|
|
mlpack_hmm_generate
|
|
|
|
mlpack_hmm_loglik
|
|
|
|
mlpack_hmm_train
|
|
|
|
mlpack_hmm_viterbi
|
|
|
|
mlpack_hoeffding_tree
|
|
|
|
mlpack_kde
|
|
|
|
mlpack_kernel_pca
|
|
|
|
mlpack_kfn
|
|
|
|
mlpack_kmeans
|
|
|
|
mlpack_knn
|
|
|
|
mlpack_krann
|
|
|
|
mlpack_lars
|
|
|
|
mlpack_linear_regression
|
|
|
|
mlpack_linear_svm
|
|
|
|
mlpack_lmnn
|
|
|
|
mlpack_local_coordinate_coding
|
|
|
|
mlpack_logistic_regression
|
|
|
|
mlpack_lsh
|
|
|
|
mlpack_mean_shift
|
|
|
|
mlpack_nbc
|
|
|
|
mlpack_nca
|
|
|
|
mlpack_nmf
|
|
|
|
mlpack_pca
|
|
|
|
mlpack_perceptron
|
|
|
|
mlpack_preprocess_binarize
|
|
|
|
mlpack_preprocess_describe
|
|
|
|
mlpack_preprocess_imputer
|
|
|
|
mlpack_preprocess_scale
|
|
|
|
mlpack_preprocess_split
|
|
|
|
mlpack_radical
|
|
|
|
mlpack_random_forest
|
|
|
|
mlpack_range_search
|
|
|
|
mlpack_softmax_regression
|
|
|
|
mlpack_sparse_coding
|
2020-10-21 05:37:51 +08:00
|
|
|
mlpack_image_converter
|
|
|
|
mlpack_bayesian_linear_regression
|
|
|
|
mlpack_preprocess_one_hot_encoding
|
2020-08-28 13:13:05 +08:00
|
|
|
)
|
2019-05-03 13:57:43 +08:00
|
|
|
endif()
|
|
|
|
|
2021-12-11 05:51:15 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-05-20 05:47:19 +08:00
|
|
|
|
2021-12-11 05:51:15 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYRIGHT.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|