Skip to content

Commit fc468bb

Browse files
authored
Wizard recipe: GstPluginsBase-v1.20.3 (#5662)
* New Recipe: GstPluginsBase v1.20.3 * Update build_tarballs.jl * Update build_tarballs.jl * Update build_tarballs.jl * Update build_tarballs.jl * Update build_tarballs.jl * Update build_tarballs.jl * Update build_tarballs.jl * Update build_tarballs.jl * Update build_tarballs.jl * Remove pango
1 parent a7b010c commit fc468bb

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

G/GstPluginsBase/build_tarballs.jl

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Note that this script can accept some limited command-line arguments, run
2+
# `julia build_tarballs.jl --help` to see a usage message.
3+
using BinaryBuilder, Pkg
4+
5+
name = "GstPluginsBase"
6+
version = v"1.20.3"
7+
8+
# Collection of sources required to complete build
9+
sources = [
10+
ArchiveSource("https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-$(version).tar.xz", "7e30b3dd81a70380ff7554f998471d6996ff76bbe6fc5447096f851e24473c9f")
11+
]
12+
13+
# Bash recipe for building across all platforms
14+
script = raw"""
15+
cd $WORKSPACE/srcdir
16+
meson --cross-file=${MESON_TARGET_TOOLCHAIN} --buildtype=release gst-plugins-base-*
17+
ninja -j${nproc}
18+
ninja install
19+
install_license gst-plugins-base-*/COPYING
20+
"""
21+
22+
# These are the platforms we will build for by default, unless further
23+
# platforms are passed in on the command line
24+
platforms = supported_platforms(exclude=[Platform("i686", "linux", libc = "musl"), Platform("powerpc64le", "linux")])
25+
26+
# The products that we will ensure are always built
27+
products = [
28+
LibraryProduct("libgstpbtypes", :libgstpbtypes, "lib/gstreamer-1.0"),
29+
LibraryProduct("libgstoverlaycomposition", :libgstoverlaycomposition, "lib/gstreamer-1.0"),
30+
LibraryProduct("libgstaudiotestsrc", :libgstaudiotestsrc, "lib/gstreamer-1.0"),
31+
LibraryProduct("libgstaudiomixer", :libgstaudiomixer, "lib/gstreamer-1.0"),
32+
LibraryProduct("libgstadder", :libgstadder, "lib/gstreamer-1.0"),
33+
LibraryProduct("libgstvideorate", :libgstvideorate, "lib/gstreamer-1.0"),
34+
LibraryProduct("libgstvideoconvert", :libgstvideoconvert, "lib/gstreamer-1.0"),
35+
LibraryProduct("libgstopus", :libgstopus, "lib/gstreamer-1.0"),
36+
LibraryProduct("libgstrawparse", :libgstrawparse, "lib/gstreamer-1.0"),
37+
LibraryProduct("libgsttcp", :libgsttcp, "lib/gstreamer-1.0"),
38+
LibraryProduct("libgstvolume", :libgstvolume, "lib/gstreamer-1.0"),
39+
LibraryProduct("libgstvideotestsrc", :libgstvideotestsrc, "lib/gstreamer-1.0"),
40+
LibraryProduct("libgsttypefindfunctions", :libgsttypefindfunctions, "lib/gstreamer-1.0"),
41+
LibraryProduct("libgstencoding", :libgstencoding, "lib/gstreamer-1.0"),
42+
LibraryProduct("libgstcompositor", :libgstcompositor, "lib/gstreamer-1.0"),
43+
LibraryProduct("libgstaudiorate", :libgstaudiorate, "lib/gstreamer-1.0"),
44+
LibraryProduct("libgstsubparse", :libgstsubparse, "lib/gstreamer-1.0"),
45+
LibraryProduct("libgstaudioconvert", :libgstaudioconvert, "lib/gstreamer-1.0"),
46+
LibraryProduct("libgstplayback", :libgstplayback, "lib/gstreamer-1.0"),
47+
LibraryProduct("libgstgio", :libgstgio, "lib/gstreamer-1.0"),
48+
LibraryProduct("libgstvideoscale", :libgstvideoscale, "lib/gstreamer-1.0"),
49+
LibraryProduct("libgstaudioresample", :libgstaudioresample, "lib/gstreamer-1.0"),
50+
LibraryProduct("libgstapp", :libgstapp, "lib/gstreamer-1.0"),
51+
ExecutableProduct("gst-device-monitor-1.0", :gstdevicemonitor),
52+
ExecutableProduct("gst-play-1.0", :gstplay),
53+
ExecutableProduct("gst-discoverer-1.0", :gstdiscoverer)
54+
]
55+
56+
# Dependencies that must be installed before this package can be built
57+
dependencies = [
58+
# Need a host gettext for msgfmt
59+
HostBuildDependency("Gettext_jll")
60+
Dependency(PackageSpec(name="GStreamer_jll", uuid="aaaaf01e-2457-52c6-9fe8-886f7267d736"); compat="1.20.3")
61+
Dependency(PackageSpec(name="Opus_jll", uuid="91d4177d-7536-5919-b921-800302f37372"))
62+
]
63+
64+
# Build the tarballs, and possibly a `build.jl` as well.
65+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6", preferred_gcc_version = v"5.2.0")

0 commit comments

Comments
 (0)