This repository was archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Building a custom version of a SimpleITK rock
Dave Chen edited this page Jan 4, 2019
·
3 revisions
Each release of the SimpleITK Luarock is tied to a specific release of SimpleITK. For example the 1.2 SimpleITK Luarock downloads v1.2 of SimpleITK from GitHub.
If you would prefer to build a different version of SimpleITK, you need a custom version of the rockspec file. Here is what such a rockspec file would look like.
#!/usr/bin/env lua
package = 'SimpleITK'
version = 'x.0-0'
source = {
url = 'file://SimpleITKLuarock.tgz',
dir = 'SimpleITKLuarock',
}
description = {
summary = "A Lua binding to SimpleITK.",
detailed = '',
homepage = 'https://github.com/SimpleITK/SimpleITKLuaRock',
license = 'BSD',
}
dependencies = {
'lua >= 5.1'
}
build = {
type = 'cmake',
modules = {
SimpleITK = "SimpleITK-build/Wrapping/Lua/lib/SimpleITK.so",
},
variables = {
INSTALL_CMOD = "$(LIBDIR)",
CMAKE_BUILD_TYPE = "$(CMAKE_BUILD_TYPE)",
["CFLAGS:STRING"] = "$(CFLAGS)",
},
copy_directories = { "doc", "examples" }
}
Note that the only difference between this rockspec and the standard version is the source section. In this rockspec the source points to a local tar file.