Skip to content

Commit

Permalink
Who even knows anymore, man
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Aug 26, 2017
1 parent 97d10d5 commit a993aa4
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ using BinDeps
using BinDeps: builddir, usrdir

# Binaries is not a recognized provider on Linux >:/
if Sys.islinux()
prepend!(BinDeps.defaults, [BinDeps.Binaries])
modified_defaults = false
if !in(BinDeps.Binaries, BinDeps.defaults)
unshift!(BinDeps.defaults, BinDeps.Binaries)
modified_defaults = true
end

BinDeps.@setup
Expand Down Expand Up @@ -55,7 +57,8 @@ const machine = Sys.isapple() ? "x86_64-apple-darwin" : Sys.MACHINE
if haskey(downloads, machine)
url, sha = downloads[machine]
isdir(usrdir(libfftw)) || mkpath(usrdir(libfftw))
provides(Binaries, URI(url), [libfftw, libfftwf], SHA=sha, os=BinDeps.OSNAME)
provides(Binaries, URI(url), [libfftw, libfftwf], SHA=sha, os=BinDeps.OSNAME,
unpacked_dir="fftw-$FFTW_VER")
scratch = false
elseif Sys.KERNEL === :FreeBSD
provides(BSDPkg, "fftw3", [libfftw, libfftwf], os=:FreeBSD)
Expand Down Expand Up @@ -113,6 +116,6 @@ else
BinDeps.@install Dict([:libfftw3_threads => :libfftw, :libfftw3f_threads => :libfftwf])
end

if Sys.islinux()
deleteat!(BinDeps.defaults, 1)
if modified_defaults
shift!(BinDeps.defaults)
end

0 comments on commit a993aa4

Please sign in to comment.