aboutsummaryrefslogtreecommitdiff
path: root/ports/mlpack
diff options
context:
space:
mode:
authorStefano Sinigardi <stesinigardi@hotmail.com>2020-08-28 07:13:05 +0200
committerGitHub <noreply@github.com>2020-08-27 22:13:05 -0700
commit0a506f7c5e7ecc85893855fcd6bf3ace96d590ae (patch)
treeb7dc536d835684fef12f244df69ede649a357a4e /ports/mlpack
parent68003004c045c527d1c74c238abd29ae619e60bc (diff)
downloadvcpkg-0a506f7c5e7ecc85893855fcd6bf3ace96d590ae.tar.gz
vcpkg-0a506f7c5e7ecc85893855fcd6bf3ace96d590ae.zip
[OpenMVG/OpenMVS] fix tools (#12229)
Diffstat (limited to 'ports/mlpack')
-rw-r--r--ports/mlpack/CONTROL4
-rw-r--r--ports/mlpack/portfile.cmake56
2 files changed, 51 insertions, 9 deletions
diff --git a/ports/mlpack/CONTROL b/ports/mlpack/CONTROL
index 252c66997..7d3debb83 100644
--- a/ports/mlpack/CONTROL
+++ b/ports/mlpack/CONTROL
@@ -1,9 +1,9 @@
Source: mlpack
Version: 3.2.2
-Port-Version: 5
+Port-Version: 6
Homepage: https://github.com/mlpack/mlpack
Description: mlpack is a fast, flexible machine learning library, written in C++, that aims to provide fast, extensible implementations of cutting-edge machine learning algorithms.
-Build-Depends: openblas (!osx), lapack, boost, armadillo, ensmallen, stb
+Build-Depends: openblas, lapack, boost, armadillo, ensmallen, stb
Feature: tools
Description: Build command-line executables.
diff --git a/ports/mlpack/portfile.cmake b/ports/mlpack/portfile.cmake
index a7d73b2e3..11f6aa815 100644
--- a/ports/mlpack/portfile.cmake
+++ b/ports/mlpack/portfile.cmake
@@ -38,14 +38,56 @@ vcpkg_install_cmake()
vcpkg_copy_pdbs()
if("tools" IN_LIST FEATURES)
- file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools)
- file(GLOB MLPACK_TOOLS ${CURRENT_PACKAGES_DIR}/bin/*.exe)
- file(COPY ${MLPACK_TOOLS} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT})
- file(REMOVE ${MLPACK_TOOLS})
- file(GLOB MLPACK_TOOLS_DEBUG ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
- file(REMOVE ${MLPACK_TOOLS_DEBUG})
+ 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
+ )
endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-file(INSTALL ${SOURCE_PATH}/COPYRIGHT.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file
+file(INSTALL ${SOURCE_PATH}/COPYRIGHT.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)