diff options
author | Erich Eckner <git@eckner.net> | 2017-07-06 11:45:20 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-07-06 12:19:46 +0200 |
commit | 52d97ce4b73b9cba815e1b8d698f2e3c897f1570 (patch) | |
tree | 6c700cf93cbba6f2ba923023c8b0f17b9cd40868 | |
parent | c2d65e42f217654aaaa8fc4bcf1aaf69667a441a (diff) | |
download | archlinuxewe-52d97ce4b73b9cba815e1b8d698f2e3c897f1570.tar.xz |
ospray neu
-rw-r--r-- | ospray/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ospray/PKGBUILD b/ospray/PKGBUILD new file mode 100644 index 000000000..f903205c1 --- /dev/null +++ b/ospray/PKGBUILD @@ -0,0 +1,47 @@ +# Contributor: <gucong43216@gmail.com> +# Maintainer: Erich Eckner <arch at eckner dot net> + +pkgname=ospray +pkgver=1.3.0 +pkgrel=3 +pkgdesc="A Ray Tracing Based Rendering Engine for High-Fidelity Visualization" +arch=('x86_64') +url="http://www.ospray.org/" +license=('Apache') +depends=('ispc' 'intel-tbb' 'embree-isa' 'libgl' 'glu' 'imagemagick' + 'libxinerama' 'libxcursor' 'glfw-x11' 'openmpi') +makedepends=('cmake') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ospray/OSPRay/archive/v$pkgver.tar.gz") +md5sums=('558484f61f7c2055c5a7b1b683b9bad6') + +prepare() { + cd "$srcdir" + + [[ -d ${pkgname}-build ]] && rm -r ${pkgname}-build + mkdir ${pkgname}-build + +} + +build() { + cd "$srcdir/${pkgname}-build" + + export embree_DIR=/usr + + # MAX_ISA is detected in aur/embree-isa in build-time + # Building may fail with community/embree + cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DOSPRAY_MODULE_BILINEAR_PATCH:BOOL=ON \ + -DOSPRAY_MODULE_MPI:BOOL=ON \ + -DUSE_IMAGE_MAGICK:BOOL=ON \ + ../${pkgname}-${pkgver} + make +} + +package() { + cd "$srcdir/${pkgname}-build" + + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: |