aboutsummaryrefslogtreecommitdiff
path: root/ports/blaze
diff options
context:
space:
mode:
authormartin-s <webmaster@macside.net>2017-11-05 19:13:16 +0100
committermartin-s <webmaster@macside.net>2017-11-05 19:13:16 +0100
commitd5a7da6bcb92b551d6f8a9a321deb063f6632dbc (patch)
tree9dfef57f1fb3611bde577cab7b9dee9411ffb041 /ports/blaze
parentc6d69fac625706c52fc8e48615bc0c6d7b8dad25 (diff)
parent330b8d8bab6a3d07165bf7c05fea09a8e0d56348 (diff)
downloadvcpkg-d5a7da6bcb92b551d6f8a9a321deb063f6632dbc.tar.gz
vcpkg-d5a7da6bcb92b551d6f8a9a321deb063f6632dbc.zip
Merge branch 'master' of https://github.com/Microsoft/vcpkg into patch-vs2013
# Conflicts: # scripts/cmake/vcpkg_configure_cmake.cmake # toolsrc/src/vcpkg/vcpkgpaths.cpp
Diffstat (limited to 'ports/blaze')
-rw-r--r--ports/blaze/CONTROL3
-rw-r--r--ports/blaze/no-absolute-paths-in-install.patch33
-rw-r--r--ports/blaze/portfile.cmake22
3 files changed, 52 insertions, 6 deletions
diff --git a/ports/blaze/CONTROL b/ports/blaze/CONTROL
index ca7923ffc..3355159f4 100644
--- a/ports/blaze/CONTROL
+++ b/ports/blaze/CONTROL
@@ -1,3 +1,4 @@
Source: blaze
-Version: 3.2
+Version: 3.2-2
+Build-Depends: boost, clapack
Description: Blaze is an open-source, high-performance C++ math library for dense and sparse arithmetic.
diff --git a/ports/blaze/no-absolute-paths-in-install.patch b/ports/blaze/no-absolute-paths-in-install.patch
new file mode 100644
index 000000000..a601a37e7
--- /dev/null
+++ b/ports/blaze/no-absolute-paths-in-install.patch
@@ -0,0 +1,33 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 0d102ab..5d918b8 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -36,7 +36,7 @@ cmake_minimum_required(VERSION 3.5)
+ add_library(blaze INTERFACE)
+ target_include_directories(blaze INTERFACE
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
+- $<INSTALL_INTERFACE:install>
++ $<INSTALL_INTERFACE:include>
+ )
+
+ target_compile_options(blaze INTERFACE
+@@ -48,8 +48,8 @@ target_compile_options(blaze INTERFACE
+ #==================================================================================================
+
+ find_package(LAPACK REQUIRED)
+-target_link_libraries(blaze INTERFACE ${LAPACK_LIBRARIES})
+-target_compile_options(blaze INTERFACE ${LAPACK_LINKER_FLAGS})
++target_link_libraries(blaze INTERFACE $<BUILD_INTERFACE:${LAPACK_LIBRARIES}>)
++target_compile_options(blaze INTERFACE $<BUILD_INTERFACE:${LAPACK_LINKER_FLAGS}>)
+
+
+ #==================================================================================================
+@@ -57,7 +57,7 @@ target_compile_options(blaze INTERFACE ${LAPACK_LINKER_FLAGS})
+ #==================================================================================================
+
+ find_package(Boost 1.54.0 REQUIRED)
+-target_include_directories(blaze INTERFACE ${Boost_INCLUDE_DIRS})
++target_include_directories(blaze INTERFACE $<BUILD_INTERFACE:${Boost_INCLUDE_DIRS}>)
+
+
+ #==================================================================================================
diff --git a/ports/blaze/portfile.cmake b/ports/blaze/portfile.cmake
index a8fc5ab1e..7bbb58afc 100644
--- a/ports/blaze/portfile.cmake
+++ b/ports/blaze/portfile.cmake
@@ -1,4 +1,3 @@
-#header-only library
include(vcpkg_common_functions)
vcpkg_from_bitbucket(
@@ -9,10 +8,23 @@ vcpkg_from_bitbucket(
HEAD_REF master
)
-# Copy the blaze header files
-file(COPY "${SOURCE_PATH}/blaze"
- DESTINATION "${CURRENT_PACKAGES_DIR}/include"
- FILES_MATCHING PATTERN "*.h")
+vcpkg_apply_patches(
+ SOURCE_PATH ${SOURCE_PATH}
+ PATCHES "${CMAKE_CURRENT_LIST_DIR}/no-absolute-paths-in-install.patch"
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBLAZE_SMP_THREADS=C++11
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH share/blaze/cmake)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
# Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/blaze)