-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.jl
36 lines (28 loc) · 1.08 KB
/
build.jl
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
using BinDeps
@BinDeps.setup
sptk = library_dependency("libSPTK", aliases=["libSPTK", "SPTK-3"])
# TODO: needs update for windows
const version = is_windows() ? "3.8.9" : "3.10.2"
github_root = "https://github.com/r9y9/SPTK"
arch = Sys.WORD_SIZE == 64 ? "x86_64" : "i686"
major = version[1]
provides(Binaries,
URI("$(github_root)/releases/download/v$(version)/sptk-$(major)_mingw$(Sys.WORD_SIZE)_$(arch).zip"),
sptk, unpacked_dir = "usr/lib", os = :Windows)
provides(Sources,
URI("$(github_root)/archive/v$(version).tar.gz"),
sptk,
unpacked_dir="SPTK-$(version)")
prefix = joinpath(BinDeps.depsdir(sptk), "usr")
srcdir = joinpath(BinDeps.depsdir(sptk), "src", "SPTK-$(version)")
provides(SimpleBuild,
(@build_steps begin
GetSources(sptk)
@build_steps begin
ChangeDirectory(srcdir)
`./waf configure --prefix=$prefix`
`./waf build`
`./waf install`
end
end), sptk, os = :Unix)
@BinDeps.install Dict(:libSPTK => :libSPTK)