Skip to content

Commit

Permalink
Merge 6b08dc6 into a42742f
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Mar 21, 2018
2 parents a42742f + 6b08dc6 commit b882b46
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 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,25 +28,21 @@ 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 =
["--enable-shared", "--disable-fortran", "--disable-python"],
libtarget=joinpath("src", "libcalceph.la")),libcalceph, os = :Unix)
["--enable-shared", "--disable-fortran", "--disable-python"],
libtarget=joinpath("src", "libcalceph.la")),libcalceph, os = :Unix)

@BinDeps.install Dict(:libcalceph => :libcalceph)

0 comments on commit b882b46

Please sign in to comment.