Added libfreenect ebuild
This commit is contained in:
parent
a0586204f8
commit
6916a40a7c
1
dev-libs/libfreenect/Manifest
Normal file
1
dev-libs/libfreenect/Manifest
Normal file
@ -0,0 +1 @@
|
||||
EBUILD libfreenect-9999.ebuild 2090 SHA256 df17d04fe25e8cddf63ac84a5ba2014e51b7eb15c96291f0991583bcc9309cd7 SHA512 71e23aeaecd8162bc1781d8fafa6f410a06b9fa3907b11b626a82cfce12d90a02999a3be62958b23b8186c1e85fc274e28af86921fd870dc7f2e11ac08e9153a WHIRLPOOL ba8845dc0c7155bdb0b60e190d82adcc4d5f8ec379df0420d02fe7ef5f21ec47d308d81c6e7dae0731729e53528451209a83607040a48d9aaf510c708fc3a099
|
75
dev-libs/libfreenect/libfreenect-9999.ebuild
Normal file
75
dev-libs/libfreenect/libfreenect-9999.ebuild
Normal file
@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit cmake-utils git-2 multilib python
|
||||
|
||||
|
||||
DESCRIPTION="Core library for accessing the Microsoft Kinect."
|
||||
HOMEPAGE="https://github.com/OpenKinect/${PN}"
|
||||
EGIT_REPO_URI="git://github.com/OpenKinect/${PN}.git"
|
||||
|
||||
LICENSE="Apache-2.0 GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="bindist +c_sync +cpp doc examples fakenect opencv openni2 python"
|
||||
|
||||
PYTHON_DEPEND="!bindist? 2"
|
||||
|
||||
COMMON_DEP="virtual/libusb:1
|
||||
examples? ( media-libs/freeglut
|
||||
virtual/opengl
|
||||
x11-libs/libXi
|
||||
x11-libs/libXmu )
|
||||
opencv? ( media-libs/opencv )
|
||||
python? ( dev-python/numpy )"
|
||||
|
||||
RDEPEND="${COMMON_DEP}"
|
||||
DEPEND="${COMMON_DEP}
|
||||
dev-util/cmake
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
python? ( dev-python/cython )"
|
||||
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_build bindist REDIST_PACKAGE)
|
||||
$(cmake-utils_use_build c_sync C_SYNC)
|
||||
$(cmake-utils_use_build cpp CPP)
|
||||
$(cmake-utils_use_build examples EXAMPLES)
|
||||
$(cmake-utils_use_build fakenect FAKENECT)
|
||||
$(cmake-utils_use_build opencv CV)
|
||||
$(cmake-utils_use_build openni2 OPENNI2_DRIVER)
|
||||
$(cmake-utils_use_build python PYTHON)
|
||||
-DPYTHON_EXECUTABLE=/usr/bin/python2
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
# udev rules
|
||||
insinto /lib/udev/rules.d/
|
||||
doins "${S}"/platform/linux/udev/51-kinect.rules
|
||||
|
||||
# documentation
|
||||
dodoc README.md
|
||||
if use doc; then
|
||||
cd doc
|
||||
doxygen || ewarn "doxygen failed"
|
||||
dodoc -r html || ewarn "dodoc failed"
|
||||
cd -
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use bindist; then
|
||||
ewarn "The bindist USE flag is disabled. Resulting binaries may not be legal to re-distribute."
|
||||
fi
|
||||
elog "Make sure your user is in the 'video' group"
|
||||
elog "Just run 'gpasswd -a <USER> video', then have <USER> re-login."
|
||||
}
|
Loading…
Reference in New Issue
Block a user