Skip to content

Commit

Permalink
Wizard recipe: GLU-v9.0.1 (#1738)
Browse files Browse the repository at this point in the history
* 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
Keno and giordano authored Oct 4, 2020
1 parent 9d1ae6c commit 81fce0a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions G/GLU/build_tarballs.jl
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)

0 comments on commit 81fce0a

Please sign in to comment.