[arrayfire] 02/06: d/p: add multiarch patch

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon May 25 18:48:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.

commit 16d5cfd1685396f29efad54d3a66865e326c45de
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Mon May 25 19:04:46 2015 +0100

    d/p: add multiarch patch
---
 debian/patches/0001_enable-multiarch.patch | 22 ++++++++++++++++++++++
 debian/patches/series                      |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/0001_enable-multiarch.patch b/debian/patches/0001_enable-multiarch.patch
new file mode 100644
index 0000000..cfb00f4
--- /dev/null
+++ b/debian/patches/0001_enable-multiarch.patch
@@ -0,0 +1,22 @@
+--- arrayfire.orig/CMakeLists.txt
++++ arrayfire/CMakeLists.txt
+@@ -69,7 +69,7 @@
+ IF(WIN32)
+     SET(ARRAYFIRE_CMAKE_DIR cmake)
+ ELSE()
+-    SET(ARRAYFIRE_CMAKE_DIR share/ArrayFire)
++    SET(ARRAYFIRE_CMAKE_DIR lib/${CMAKE_LIBRARY_ARCHITECTURE}/cmake/ArrayFire)
+ ENDIF()
+ 
+ IF(${BUILD_CPU})
+--- arrayfire.orig/src/backend/cpu/CMakeLists.txt
++++ arrayfire/src/backend/cpu/CMakeLists.txt
+@@ -79,7 +79,7 @@
+ 
+ TARGET_LINK_LIBRARIES(afcpu ${lib_deps} ${CBLAS_LIBRARIES} ${FFTW_LIBRARIES})
+ 
+-INSTALL(TARGETS afcpu EXPORT CPU DESTINATION lib COMPONENT libraries)
++INSTALL(TARGETS afcpu EXPORT CPU DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE} COMPONENT libraries)
+ 
+ export(TARGETS afcpu FILE ArrayFireCPU.cmake)
+ INSTALL(EXPORT CPU DESTINATION ${ARRAYFIRE_CMAKE_DIR} 
diff --git a/debian/patches/series b/debian/patches/series
index 40e2faf..4140bd5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+0001_enable-multiarch.patch
 0001-set-the-lib-version.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list