diff options
author | Soumith Chintala <soumith@gmail.com> | 2014-03-21 03:51:48 +0400 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2014-03-21 03:51:48 +0400 |
commit | f7d2319bd5c3993838f7bcea2a299cc0c4da1abd (patch) | |
tree | 28c12e4851dd694b83acafbb72fb5de7c1cb722d /nngraph-scm-1.rockspec | |
parent | f3eeff0cf6c3f5adce57119b77be8b12776f30b5 (diff) |
adding rockspec
Diffstat (limited to 'nngraph-scm-1.rockspec')
-rw-r--r-- | nngraph-scm-1.rockspec | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nngraph-scm-1.rockspec b/nngraph-scm-1.rockspec new file mode 100644 index 0000000..4963ecd --- /dev/null +++ b/nngraph-scm-1.rockspec @@ -0,0 +1,30 @@ +package = "nngraph" +version = "scm-1" + +source = { + url = "git://github.com/torch/nngraph", + tag = "master" +} + +description = { + summary = "This package provides graphical computation for nn library in Torch7.", + homepage = "https://github.com/torch/nngraph", + license = "UNKNOWN" +} + +dependencies = { + "torch >= 7.0", + "graph", + "nn" +} + +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" +} |