Skip to content

Commit

Permalink
Removed unused comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
evetion committed Jul 7, 2018
1 parent cd6aa24 commit afb6c33
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions deps/build.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using BinaryProvider # requires BinaryProvider 0.3.0 or later

import CodecZlib
import Proj4
import LibGEOS

# Example taken from
# https://github.com/JuliaIO/ImageMagick.jl/blob/sd/binaryprovider/deps/build.jl
dependencies = [
Expand All @@ -19,21 +15,11 @@ for elem in dependencies
eval(m, :(include($(joinpath(@__DIR__, elem)))))
end

# ENV["DYLD_LIBRARY_PATH"] = join(map(x->dirname(Libdl.find_library(x)), [CodecZlib.libz, Proj4.libproj, LibGEOS.libgeos_cpp, LibGEOS.libgeos]), ":")
# ENV["LD_LIBRARY_PATH"] = join(map(x->dirname(Libdl.find_library(x)), [CodecZlib.libz, Proj4.libproj, LibGEOS.libgeos_cpp, LibGEOS.libgeos]), ":")

# Parse some basic command-line arguments
const verbose = "--verbose" in ARGS
const prefix = Prefix(get([a for a in ARGS if a != "--verbose"], 1, joinpath(@__DIR__, "usr")))
products = [
# Dependencies
# LibraryProduct(dirname(Libdl.find_library(CodecZlib.libz)), "libz", :libz),
# LibraryProduct(dirname(Libdl.find_library(Proj4.libproj)), "libproj", :libproj),
# LibraryProduct(dirname(Libdl.find_library(LibGEOS.libgeos_cpp)), "libgeos_c", :libgeos_c),
# LibraryProduct(dirname(Libdl.find_library(LibGEOS.libgeos)), "libgeos", :libgeos),
# GDAL itself
LibraryProduct(prefix, String["libgdal"], :libgdal),
# GDAL executables
ExecutableProduct(prefix, "gdalinfo", :gdalinfo_path),
ExecutableProduct(prefix, "gdalwarp", :gdalwarp_path),
ExecutableProduct(prefix, "gdal_translate", :gdal_translate_path),
Expand Down Expand Up @@ -71,9 +57,5 @@ elseif unsatisfied
error("Your platform $(triplet(platform_key())) is not supported by this package!")
end

# custom block, not auto generated by BinaryBuilder
# needed to do write_deps_file, which fails if libgdal cannot find its dependencies


# Write out a deps.jl file that will contain mappings for our products
write_deps_file(joinpath(@__DIR__, "deps.jl"), products)

0 comments on commit afb6c33

Please sign in to comment.