Skip to content

Commit

Permalink
Rockspec
Browse files Browse the repository at this point in the history
  • Loading branch information
clementfarabet committed Nov 23, 2012
1 parent 52cbe7f commit e400472
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
@@ -1,6 +1,11 @@

CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
CMAKE_POLICY(VERSION 2.6)
IF(LUAROCKS_PREFIX)
MESSAGE(STATUS "Installing Torch through Luarocks")
STRING(REGEX REPLACE "(.*)lib/luarocks/rocks.*" "\\1" CMAKE_INSTALL_PREFIX "${LUAROCKS_PREFIX}")
MESSAGE(STATUS "Prefix inferred from Luarocks: ${CMAKE_INSTALL_PREFIX}")
ENDIF()
FIND_PACKAGE(Torch REQUIRED)
FIND_PACKAGE(Boost REQUIRED)

Expand Down
32 changes: 32 additions & 0 deletions imgraph-1.0-0.rockspec
@@ -0,0 +1,32 @@
package = "imgraph"
version = "1.0-0"

source = {
url = "git://github.com/clementfarabet/lua---imgraph",
tag = "1.0-0"
}

description = {
summary = "An image/graph library for Torch",
detailed = [[
This package provides routines to construct graphs on images,
segment them, build trees out of them, and convert them back
to images.
]],
homepage = "https://github.com/clementfarabet/lua---imgraph",
license = "GPL"
}

dependencies = {
"torch >= 7.0",
"sys >= 1.0",
"xlua >= 1.0",
"image >= 1.0"
}

build = {
type = "cmake",
variables = {
LUAROCKS_PREFIX = "$(PREFIX)"
}
}

0 comments on commit e400472

Please sign in to comment.