Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[freenect] ebuild sperimentale.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4787
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Thu Nov 25, 2010 4:33 pm    Post subject: [freenect] ebuild sperimentale. Reply with quote

ehi!
avete gia acquistato la vostra kinect?

io no, però ci ho già scritto un ebuild.
:lol:
emerge compila bene, ma mi dà un errore di sicurezza che non so assolutamente come trattare.
rimango aperto a suggerimenti.
Code:

rhserver freenect # cat freenect-9999.ebuild
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

KEYWORDS="~x86 ~amd64 ~ppc ~ppc64"

if [[ ${PV} == "9999" ]]; then
   EGIT_REPO_URI="git://github.com/OpenKinect/libfreenect.git"
   SRC_URI=""
   KEYWORDS=""
   inherit git
else
   SRC_URI=""
fi

#inherit eutils autotools

DESCRIPTION="OpenKinect is an open community of people using
the Xbox Kinect hardware with PCs and other devices."
HOMEPAGE="http://openkinect.org"

LICENSE="GPL-2"
SLOT="0"
IUSE=""

DEPEND=">=dev-util/cmake-2.6
   >=dev-libs/libusb-1.0.3
   "

RDEPEND="media-libs/freeglut
   x11-libs/libXmu
   "

src_unpack() {
   if [[ ${PV} == "9999" ]]; then
      git_src_unpack
   else
      unpack ${A}
   fi
}

src_prepare() {
   mkdir build
   mkdir -p etc/udev/rules.d/
   cp "${FILESDIR}/66-kinect.rules" etc/udev/rules.d/
}

src_compile() {
   cd build
   cmake ..
   make
}

src_install() {
   mkdir -p "${D}usr/lib"
   mkdir -p "${D}usr/bin"
   cp build/bin/glview "${D}usr/bin"
   cp build/lib/* "${D}usr/lib"
   cp -a etc "${D}"
}

_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum