-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New Recipe: GLU v9.0.1 * [GLU] Use `filter` to select the platforms * [GLU] Manually install license file Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Note that this script can accept some limited command-line arguments, run | ||
# `julia build_tarballs.jl --help` to see a usage message. | ||
using BinaryBuilder, Pkg | ||
|
||
name = "GLU" | ||
version = v"9.0.1" | ||
|
||
# Collection of sources required to complete build | ||
sources = [ | ||
GitSource("https://salsa.debian.org/xorg-team/lib/libglu.git", "d77f0cae59ce18bc7bba7b1f0c0b605224c23783") | ||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
cd libglu | ||
./autogen.sh --prefix=${prefix} --build=${MACHTYPE} --host=${target} | ||
make -j ${nproc} | ||
make install | ||
install_license debian/copyright | ||
""" | ||
|
||
# These are the platforms we will build for by default, unless further | ||
# platforms are passed in on the command line | ||
platforms = filter(p -> Sys.islinux(p) || Sys.isfreebsd(p), supported_platforms()) | ||
|
||
|
||
# The products that we will ensure are always built | ||
products = [ | ||
LibraryProduct("libGLU", :libGLU) | ||
] | ||
|
||
# Dependencies that must be installed before this package can be built | ||
dependencies = [ | ||
Dependency(PackageSpec(name="Libglvnd_jll", uuid="7e76a0d4-f3c7-5321-8279-8d96eeed0f29")) | ||
] | ||
|
||
# Build the tarballs, and possibly a `build.jl` as well. | ||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies) |