summaryrefslogtreecommitdiff
path: root/frc-bin/javacv
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-01-29 16:16:45 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-01-29 16:16:45 -0500
commit238548582c59294fdc265246a1ab764b9e33d3c3 (patch)
tree64a2334859ee4164797027caff3da6f2cb0c04a5 /frc-bin/javacv
parente156b18c54682096c5d1ff52987e65c069bbea08 (diff)
reshuffle a little more, add javacv and javacpp
Diffstat (limited to 'frc-bin/javacv')
-rw-r--r--frc-bin/javacv/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/frc-bin/javacv/PKGBUILD b/frc-bin/javacv/PKGBUILD
new file mode 100644
index 0000000..ced0de4
--- /dev/null
+++ b/frc-bin/javacv/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+_pkgname=javacv
+pkgname=($_pkgname $_pkgname-samples)
+pkgver=20120108
+pkgrel=1
+pkgdesc='Java wrappers to commonly used libraries in the field of computer vision'
+arch=(i686 x86_64)
+url=https://code.google.com/p/javacv/
+license=(GPL2)
+source=("https://javacv.googlecode.com/files/javacv-bin-$pkgver.zip")
+
+_os=linux
+case "${CARCH}" in
+ 'x86_64') _arch=x86_64;;
+ 'i686') _arch=x86;;
+ #'arm') _arch=arm;; # _os=android
+ *) _arch=UNSUPPORTED_ARCH;;
+esac
+
+package_javacv() {
+ depends=(opencv=2.3.1 javacpp=20120108)
+ optdepends=(ffmpeg libdc1394=2.1 libfreenect android-sdk jocl jogl)
+
+ cd "$srcdir/$_pkgname-bin"
+ install -d "$pkgdir/usr/share/java/javacv"
+ install -m644 javacv.jar "$pkgdir/usr/share/java/javacv"
+ install -m644 javacv-$_os-$_arch.jar "$pkgdir/usr/share/java/javacv"
+ cd "$pkgdir/usr/share/java"
+ ln -s javacv-$_os-$_arch.jar "javacv/javacv-platform.jar"
+ ln -s javacv/javacv.jar .
+ ln -s javacv/javacv-platform.jar .
+}
+
+package_javacv-samples() {
+ pkgdesc='Java wrappers to commonly used libraries in the field of computer vision (samples)'
+ depends=(javacv)
+
+ cd "$srcdir/$_pkgname-bin"
+ install -D "$pkgdir/usr/share/java/javacv"
+ cp -r samples "$pkgdir/usr/share/java/javacv"
+}
+
+sha1sums=(2e3e63f2bb5b1a98234e28ab75a822656e3593fa)