Skip to content

Commit

Permalink
Fix from source builds for Julia version < 1.0 (#245)
Browse files Browse the repository at this point in the history
* Fix from source builds for Julia version < 1.0

* Update build.jl

* Update build.jl

* Update build.jl
  • Loading branch information
tknopp authored and tkelman committed Aug 15, 2018
1 parent 2d75c95 commit 2c62d5a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ provides(Zypper,

const png_version = "1.5.14"

#=
provides(Sources,
Dict(
URI("http://www.cairographics.org/releases/pixman-0.28.2.tar.gz") => pixman,
Expand Down Expand Up @@ -125,6 +124,8 @@ provides(BuildProcess,

provides(BuildProcess,Autotools(libtarget = "libpng15.la"),libpng,os = :Unix)


if VERSION < v"1.0.0"
provides(SimpleBuild,
(@build_steps begin
GetSources(zlib)
Expand All @@ -134,9 +135,10 @@ provides(SimpleBuild,
#MakeTargets(["-fwin32/Makefile.gcc","DESTDIR=../../usr/","INCLUDE_PATH=include","LIBRARY_PATH=lib","SHARED_MODE=1","install"])
end
end),zlib, os = :Windows)
end

prefix=joinpath(BinDeps.depsdir(libpng),"usr")
uprefix = replace(replace(prefix,"\\","/"),"C:/","/c/")
uprefix = replace(replace(prefix,"\\" => "/"),"C:/" => "/c/")
pngsrcdir = joinpath(BinDeps.depsdir(libpng),"src","libpng-$png_version")
pngbuilddir = joinpath(BinDeps.depsdir(libpng),"builds","libpng-$png_version")
provides(BuildProcess,
Expand All @@ -157,7 +159,7 @@ provides(BuildProcess,
end)
end
end),libpng, os = :Windows)
=#


@BinDeps.install Dict([(:gobject, :_jl_libgobject),
(:cairo, :_jl_libcairo),
Expand Down

0 comments on commit 2c62d5a

Please sign in to comment.