forked from torch/rocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
audio-0.1-0.rockspec
45 lines (40 loc) · 1.05 KB
/
audio-0.1-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 = "audio"
version = "0.1-0"
source = {
url = "git://github.com/soumith/lua---audio",
tag = "master"
}
description = {
summary = "Audio library for Torch-7",
detailed = [[
Support audio I/O (Load files)
Common audio operations (Short-time Fourier transforms, Spectrograms)
]],
homepage = "https://github.com/soumith/lua---audio",
license = "BSD"
}
dependencies = {
"torch >= 7.0",
"sys >= 1.0",
"xlua >= 1.0"
}
external_dependencies = {
LIBSOX = {
header = "sox.h",
library = "sox"
},
LIBFFTW3 = {
header = "fftw3.h",
library = "fftw3"
}
}
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)" -DSOX_INCLUDE_DIR=$(LIBSOX_INCDIR) -DSOX_LIBRARY_DIR=$(LIBSOX_LIBDIR) -DFFTW_INCLUDE_DIR=$(LIBFFTW3_INCDIR) -DFFTW_LIBRARY_DIR=$(LIBFFTW3_LIBDIR);
$(MAKE)
]],
install_command = "cd build && $(MAKE) install"
}