forked from Farama-Foundation/ViZDoom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vizdoom-1.1.3-0.rockspec
45 lines (40 loc) · 1.56 KB
/
vizdoom-1.1.3-0.rockspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package = "vizdoom"
version = "1.1.3-0"
source = {
url = "git://github.com/mwydmuch/ViZDoom",
tag = "1.1.3"
}
description = {
summary = "Reinforcement learning platform based on Doom",
detailed = [[
ViZDoom allows developing AI bots that play Doom using only the visual information (the screen buffer).
It is primarily intended for research in machine visual learning, and deep reinforcement learning, in particular.
]],
homepage = "http://vizdoom.cs.put.edu.pl/",
--issues_url = "https://github.com/mwydmuch/ViZDoom/issues"
--labels = {"vizdoom", "doom", "ai", "deep learning", "reinforcement learning", "research"}
}
supported_platforms = {"unix"}
dependencies = {
"torch >= 7.0",
"image >= 1.0",
"torchffi >= 1.0",
}
build = {
type = "command",
build_command = [[
rm -f CMakeCache.txt
if [ -e "$(LUA_LIBDIR)/libluajit.so" ]; then
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_LUA=ON -DLUA_LIBRARIES="$(LUA_LIBDIR)/libluajit.so" -DLUA_INCLUDE_DIR="$(LUA_INCDIR)"
elif [ -e "$(LUA_LIBDIR)/libluajit.dylib" ]; then
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_LUA=ON -DLUA_LIBRARIES="$(LUA_LIBDIR)/libluajit.dylib" -DLUA_INCLUDE_DIR="$(LUA_INCDIR)"
fi
$(MAKE) -j 4
]],
install_command = [[
mkdir -p $(LUA_LIBDIR)/lua/5.1/vizdoom
cp -r ./bin/lua/luarocks_package/* $(LUA_LIBDIR)/lua/5.1/vizdoom
mkdir -p $(LUA_LIBDIR)/../share/lua/5.1/vizdoom
cp -r ./bin/lua/luarocks_shared_package/* $(LUA_LIBDIR)/../share/lua/5.1/vizdoom
]]
}