-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
11e29fd
commit 6a202af
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package = "camera" | ||
version = "1.1-0" | ||
|
||
source = { | ||
url = "git://github.com/clementfarabet/lua---camera", | ||
} | ||
|
||
description = { | ||
summary = "A simple wrapper package to give torch access to a webcam", | ||
detailed = [[ | ||
Uses OpenCV on MacOS and video4linux2 on Linux to proved the low level access to the camera hardware. | ||
]], | ||
homepage = "https://github.com/clementfarabet/lua---camera", | ||
license = "BSD" | ||
} | ||
|
||
dependencies = { | ||
"torch >= 7.0", | ||
"xlua >= 1.0", | ||
"sys >= 1.0", | ||
"image >= 1.0.1" | ||
} | ||
|
||
build = { | ||
type = "command", | ||
build_command = [[ | ||
cmake -E make_directory build; | ||
cd build; | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$(LUA_BINDIR)/.." -DCMAKE_INSTALL_PREFIX="$(PREFIX)"; | ||
$(MAKE) | ||
]], | ||
install_command = "cd build && $(MAKE) install" | ||
} |