Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions C/Clipper/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
using BinaryBuilder

name = "Clipper"
version = v"6.4.2"
upstream_version = v"6.4.2"
version = v"6.4.3" # <-- This version is a lie, to build for new platforms

# Collection of sources required to build Clipper
sources = [
ArchiveSource("https://downloads.sourceforge.net/project/polyclipping/clipper_ver6.4.2.zip", "a14320d82194807c4480ce59c98aa71cd4175a5156645c4e2b3edd330b930627"),
ArchiveSource("https://downloads.sourceforge.net/project/polyclipping/clipper_ver$(upstream_version).zip",
"a14320d82194807c4480ce59c98aa71cd4175a5156645c4e2b3edd330b930627"),
DirectorySource("./cwrapper")
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/
cp cclipper.cpp ./cpp/cclipper.cpp
cd cpp
mkdir "${libdir}"
cd $WORKSPACE/srcdir/cpp
cp ../cclipper.cpp ./cclipper.cpp
mkdir -p "${libdir}"
${CXX} -fPIC -std=c++11 -shared -o "${libdir}/libcclipper.${dlext}" clipper.cpp cclipper.cpp
cd ..
install_license License.txt
install_license ../License.txt
"""

# These are the platforms we will build for by default, unless further
Expand All @@ -31,8 +31,9 @@ products = [
]

# Dependencies that must be installed before this package can be built
dependencies = Dependency[
dependencies = [
Dependency("CompilerSupportLibraries_jll"; platforms=filter(!Sys.isapple, platforms)),
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6")