diff options
author | Daniel Bermond | 2017-03-16 15:24:19 -0300 |
---|---|---|
committer | Daniel Bermond | 2017-03-16 15:24:19 -0300 |
commit | 874d7c26302ed2a03aa6224098f172bcef416615 (patch) | |
tree | 37d3cb3eaace9625a3d9001184b7ce5f58637ca3 | |
download | aur-874d7c26302ed2a03aa6224098f172bcef416615.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rwxr-xr-x | PKGBUILD | 78 | ||||
-rw-r--r-- | openvx.pc | 10 |
3 files changed, 110 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a7c0291f2408 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by mksrcinfo v8 +# Thu Mar 16 18:23:39 UTC 2017 +pkgbase = openvx + pkgdesc = An open, royalty-free standard for cross platform acceleration of computer vision applications + pkgver = 1.1 + pkgrel = 1 + url = https://www.khronos.org/openvx/ + arch = i686 + arch = x86_64 + license = MIT + makedepends = cmake + makedepends = python2 + provides = libopenvx.so + provides = libvxu.so + noextract = openvx_sample_1.1.tar.bz2 + source = https://www.khronos.org/registry/OpenVX/sample/openvx_sample_1.1.tar.bz2 + source = openvx.pc + sha256sums = cebda8a6a4802d7f56cb618bc12e7cd3333aa1d9a5a3259e7250e24163bb0c01 + sha256sums = e4c665b8ee74f8618ff46ad36e1f515c5ff2fb4d5e610ff43b0b69f1a3338714 + +pkgname = openvx + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..09c7a0ff930c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,78 @@ +# Maintainer: Daniel Bermond < yahoo-com: danielbermond > + +pkgname=openvx +pkgver=1.1 +pkgrel=1 +pkgdesc="An open, royalty-free standard for cross platform acceleration of computer vision applications" +arch=('i686' 'x86_64') +url="https://www.khronos.org/openvx/" +license=('MIT') +makedepends=('cmake' 'python2') +provides=('libopenvx.so' 'libvxu.so') +source=("https://www.khronos.org/registry/OpenVX/sample/openvx_sample_${pkgver}.tar.bz2" + "openvx.pc") +noextract=("openvx_sample_${pkgver}.tar.bz2") +sha256sums=('cebda8a6a4802d7f56cb618bc12e7cd3333aa1d9a5a3259e7250e24163bb0c01' + 'e4c665b8ee74f8618ff46ad36e1f515c5ff2fb4d5e610ff43b0b69f1a3338714') + +prepare() { + # extract source file to a directory in the format $pkgname-$pkgver + mkdir -p "openvx-${pkgver}" + cd "openvx-${pkgver}" + tar xf ../openvx_sample_${pkgver}.tar.bz2 --strip 1 + + # fix: CMakeLists uses a non existing directory in the source tree + sed -i 's/^add_subdirectory( sample-c++ )/#add_subdirectory( sample-c++ )/' CMakeLists.txt +} + +build() { + if [ "$CARCH" = "x86_64" ] + then + _architecture="64" + elif [ "$CARCH" = "i686" ] + then + _architecture="32" + fi + + cd "openvx-${pkgver}" + python2 Build.py \ + --os=Linux \ + --arch="$_architecture" \ + --conf=Release \ + --gen="Unix Makefiles" \ + --build=True \ + --opencl=False \ + --openmp=True \ + --package=False +} + +package() { + if [ "$CARCH" = "x86_64" ] + then + _architecture="x64" + elif [ "$CARCH" = "i686" ] + then + _architecture="x32" + fi + + # directories creation + mkdir -p "${pkgdir}/usr/include/VX" + mkdir -p "${pkgdir}/usr/lib/pkgconfig" + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + + # libraries + cd "${srcdir}/openvx-${pkgver}/install/Linux/${_architecture}/Release/bin" + install -D -m755 *.so "${pkgdir}/usr/lib" + + # includes + cd "${srcdir}/openvx-${pkgver}/install/Linux/${_architecture}/Release/include/VX" + install -D -m644 * "${pkgdir}/usr/include/VX" + + # pkgconfig + cd "$srcdir" + install -D -m644 openvx.pc "${pkgdir}/usr/lib/pkgconfig" + + # license + cd "${srcdir}/openvx-${pkgver}" + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/openvx.pc b/openvx.pc new file mode 100644 index 000000000000..bf3cdcd11e8b --- /dev/null +++ b/openvx.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: OpenVX +Description: An open, royalty-free standard for cross platform acceleration of computer vision applications +Version: 1.1 +Libs: -L${libdir} -lopenvx -lvxu +Cflags: -I${includedir} |