summaryrefslogtreecommitdiffstats
path: root/python/conda/libastra/build.sh
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2016-03-03 14:21:38 +0100
committerWillem Jan Palenstijn <wjp@usecode.org>2016-03-03 14:21:38 +0100
commit9d8d0fa048fe9da6adb31b7d49124f8425eb7f63 (patch)
tree8c890c11cb64bf358dd69975f6be5fca8ce80e27 /python/conda/libastra/build.sh
parenta924b809252a187d49635b72c8c36c31777137b4 (diff)
parent57b2a752a458266066c1048b9cfacafd7692b943 (diff)
downloadastra-9d8d0fa048fe9da6adb31b7d49124f8425eb7f63.tar.gz
astra-9d8d0fa048fe9da6adb31b7d49124f8425eb7f63.tar.bz2
astra-9d8d0fa048fe9da6adb31b7d49124f8425eb7f63.tar.xz
astra-9d8d0fa048fe9da6adb31b7d49124f8425eb7f63.zip
Merge pull request #32 from dmpelt/split-conda
Split conda package into c++ lib and python parts
Diffstat (limited to 'python/conda/libastra/build.sh')
-rw-r--r--python/conda/libastra/build.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/python/conda/libastra/build.sh b/python/conda/libastra/build.sh
new file mode 100644
index 0000000..e1d9700
--- /dev/null
+++ b/python/conda/libastra/build.sh
@@ -0,0 +1,15 @@
+cd build/linux
+./autogen.sh
+./configure --with-cuda=$CUDA_ROOT --prefix=$PREFIX
+if [ $MAKEOPTS == '<UNDEFINED>' ]
+ then
+ MAKEOPTS=""
+fi
+make $MAKEOPTS install-libraries
+LIBPATH=lib
+if [ $ARCH == 64 ]
+ then
+ LIBPATH+=64
+fi
+cp -P $CUDA_ROOT/$LIBPATH/libcudart.so.* $PREFIX/lib
+cp -P $CUDA_ROOT/$LIBPATH/libcufft.so.* $PREFIX/lib