Skip to content

Commit

Permalink
Merge 3cc7e9e into a42742f
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Mar 21, 2018
2 parents a42742f + 3cc7e9e commit f346550
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions deps/build.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using BinaryProvider

# This is where all binaries will get installed
const prefix = Prefix(!isempty(ARGS) ? ARGS[1] : joinpath(@__DIR__,"usr"))

libcalceph = LibraryProduct(prefix, "libcalceph")

prefix = Prefix(!isempty(ARGS) ? ARGS[1] : joinpath(@__DIR__,"usr"))
libcalceph = LibraryProduct(prefix, "libcalceph", :libcalceph)
products = [libcalceph]


Expand All @@ -30,21 +28,17 @@ if platform_key() in keys(download_info)
install(url, tarball_hash; prefix=prefix, force=true, verbose=true)
end

# Finally, write out a deps.jl file that will contain mappings for each
# named product here: (there will be a "libfoo" variable and a "fooifier"
# variable, etc...)
@write_deps_file libcalceph
# Write out our deps.jl file that will contain a `libcalceph`
write_deps_file(joinpath(@__DIR__, "deps.jl"), products)
exit(0)
end

info("Could not find a binary for your platform $(Sys.MACHINE). Will attempt a build.")
info("Could not find a binary for your platform $(triplet(platform_key())). Will attempt a build.")

using BinDeps

@BinDeps.setup

libcalceph = library_dependency("libcalceph")

provides(Sources,URI("https://www.imcce.fr/content/medias/recherche/equipes/asd/calceph/calceph-3.0.0.tar.gz"), libcalceph)

provides(BuildProcess,Autotools(configure_options =
Expand Down

0 comments on commit f346550

Please sign in to comment.