summaryrefslogtreecommitdiff
path: root/~lukeshu
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-12-11 18:52:08 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-12-11 18:52:08 -0500
commit84c3f701c603dc6a665d44819193190da531fd8c (patch)
treee2044c0ebee10226a6fbf39a45900f4617c3e1f6 /~lukeshu
parent5c561163133e61dc311355389556e2b2d0664c13 (diff)
downloadabslibre-84c3f701c603dc6a665d44819193190da531fd8c.tar.gz
abslibre-84c3f701c603dc6a665d44819193190da531fd8c.tar.bz2
abslibre-84c3f701c603dc6a665d44819193190da531fd8c.zip
Update libfreenect, move the udev file into a separate package.
Diffstat (limited to '~lukeshu')
-rw-r--r--~lukeshu/libfreenect-git/PKGBUILD43
1 files changed, 26 insertions, 17 deletions
diff --git a/~lukeshu/libfreenect-git/PKGBUILD b/~lukeshu/libfreenect-git/PKGBUILD
index 8377ab4bf..edc9e7483 100644
--- a/~lukeshu/libfreenect-git/PKGBUILD
+++ b/~lukeshu/libfreenect-git/PKGBUILD
@@ -1,18 +1,19 @@
-# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com>
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# Contributor: Sven Schneider <archlinux.sandmann@googlemail.com>
+
+# I am not giving libfreenect nearly the attention it deserves.
+# There are a lot of options for it that I'm ignoring.
+# Right now I'm focussing more on sensorkinect.
+# Patches welcome!
-_pkgname=libfreenect
-pkgname=${_pkgname}-git
-pkgver=20111115
-pkgrel=3
+pkgname=("libfreenect-git" 'kinect-udev-git')
+pkgver=20111211
+pkgrel=1
pkgdesc="OpenKinect drivers and libraries for the Xbox Kinect device"
arch=('i686' 'x86_64')
url="http://openkinect.org"
license=('GPL')
-depends=('libusb' 'freeglut' 'libxmu')
makedepends=('cmake' 'git' 'python2')
-provides=($_pkgname)
-conflicts=($_pkgname)
source=()
md5sums=()
@@ -50,28 +51,36 @@ build() {
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_REDIST_PACKAGE=ON \
-DLIB_SUFFIX="" \
- -DBUILD_AUDIO=ON \
+ -DBUILD_AUDIO=OFF \
-DBUILD_PYTHON=OFF \
-DPYTHON_EXECUTABLE="`which python2`" \
..
make
}
-package() {
+package_libfreenect-git() {
+ depends=('libusb' 'freeglut' 'libxmu' 'kinect-udev')
+ provides=(libfreenect)
+ conflicts=(libfreenect)
+
# Make install
cd "${srcdir}/${_gitname}-build/build"
make DESTDIR="${pkgdir}" install
- # Move audio firmware file to proper location
- mkdir -p "${pkgdir}/usr/share/libfreenect"
- mv "${pkgdir}/usr/share/audios.bin" "${pkgdir}/usr/share/libfreenect/audios.bin"
+ # Patch include files
+ sed 's/<libfreenect.h>/<libfreenect\/libfreenect.h>/g' -i "${pkgdir}/usr/include/libfreenect/libfreenect.hpp"
+}
+
+package_kinect-udev-git() {
+ pkgdesc="Udev rules for the Xbox Kinect device"
+ depends=('udev')
+ provides=(kinect-udev)
+ conflicts=(kinect-udev)
# Install udev rules
cd "${srcdir}/${_gitname}-build/"
install -d "${pkgdir}/etc/udev/rules.d"
install -m644 platform/linux/udev/51-kinect.rules "${pkgdir}/etc/udev/rules.d"
-
- # Patch include files
- sed 's/<libfreenect.h>/<libfreenect\/libfreenect.h>/g' -i "${pkgdir}/usr/include/libfreenect/libfreenect.hpp"
-}
+} \ No newline at end of file