summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPurboo2016-12-23 13:24:24 +0800
committerPurboo2016-12-23 13:24:24 +0800
commit9bf882a88d6c3a1a0632d75ae2eb5e3fd61d1998 (patch)
tree8bdacc84a3c5e52788e21d3f6dcddead44134953
downloadaur-9bf882a88d6c3a1a0632d75ae2eb5e3fd61d1998.tar.gz
First commit
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD25
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3c1c59e721e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = vxl
+ pkgdesc = VXL library. The geometry and imaging core libraries are turned off in order to build successfully.
+ pkgver = 1.17
+ pkgrel = 1
+ url = http://vxl.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ depends = cmake
+ source = http://excellmedia.dl.sourceforge.net/project/vxl/vxl/1.17/vxl-1.17.0.tar.gz
+ md5sums = cf71031dee80f92e6649c4faa2d485b5
+
+pkgname = vxl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3274c9ca6ae
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+pkgname=vxl
+pkgver=1.17
+pkgrel=1
+pkgdesc="VXL library. The geometry and imaging core libraries are turned off in order to build successfully. "
+arch=('i686' 'x86_64')
+url='http://vxl.sourceforge.net/'
+depends=('cmake')
+source=(http://excellmedia.dl.sourceforge.net/project/vxl/vxl/$pkgver/vxl-$pkgver.0.tar.gz)
+md5sums=('cf71031dee80f92e6649c4faa2d485b5')
+
+build() {
+ cd "$srcdir/vxl-$pkgver.0"
+ sed -i 's/error "Dunno about this gcc"/define VCL_GCC_41/g' vcl/vcl_compiler.h
+ mkdir -p build
+ cd build
+ cmake -Wno-dev -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_FLAGS="-std=c++98 -DGNU_LIBSTDCXX_V3 -w" -DBUILD_CORE_GEOMETRY=OFF -DBUILD_CORE_IMAGING=OFF ..
+ ncores=$(grep -c '^processor' /proc/cpuinfo)
+ make -j$ncores
+}
+
+package() {
+ cd "$srcdir/vxl-$pkgver.0/build"
+ make DESTDIR="$pkgdir" install
+}
+