mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 12:54:20 +08:00
66 lines
1.6 KiB
TOML
66 lines
1.6 KiB
TOML
[source]
|
|
tar = "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.20.6.tar.xz"
|
|
blake3 = "6761ea816ead143b5472c518c7fc52c0f485542b3c671cd872616bc6ca600f50"
|
|
patches = []
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"gettext",
|
|
"glib",
|
|
"gstreamer",
|
|
"libffi",
|
|
"libiconv",
|
|
"pcre",
|
|
"zlib"
|
|
]
|
|
script = """
|
|
export GLIB_GENMARSHAL="$(which glib-genmarshal)"
|
|
export GLIB_MKENUMS="$(which glib-mkenums)"
|
|
export LDFLAGS="-static"
|
|
|
|
# TODO: Fix this annoying shite
|
|
echo "[binaries]" > cross_file.txt
|
|
echo "c = '${CC}'" >> cross_file.txt
|
|
echo "cpp = '${CXX}'" >> cross_file.txt
|
|
echo "ar = '${AR}'" >> cross_file.txt
|
|
echo "strip = '${STRIP}'" >> cross_file.txt
|
|
echo "pkgconfig = '${TARGET}-pkg-config'" >> cross_file.txt
|
|
|
|
echo "[host_machine]" >> cross_file.txt
|
|
echo "system = 'redox'" >> cross_file.txt
|
|
echo "cpu_family = '$(echo "${TARGET}" | cut -d - -f1)'" >> cross_file.txt
|
|
echo "cpu = '$(echo "${TARGET}" | cut -d - -f1)'" >> cross_file.txt
|
|
echo "endian = 'little'" >> cross_file.txt
|
|
|
|
echo "[paths]" >> cross_file.txt
|
|
echo "prefix = '${COOKBOOK_SYSROOT}'" >> cross_file.txt
|
|
echo "libdir = 'lib'" >> cross_file.txt
|
|
echo "bindir = 'bin'" >> cross_file.txt
|
|
|
|
unset AR
|
|
unset AS
|
|
unset CC
|
|
unset CXX
|
|
unset LD
|
|
unset NM
|
|
unset OBJCOPY
|
|
unset OBJDUMP
|
|
unset PKG_CONFIG
|
|
unset RANLIB
|
|
unset READELF
|
|
unset STRIP
|
|
|
|
meson setup "${COOKBOOK_SOURCE}" _build \
|
|
--cross-file cross_file.txt \
|
|
--buildtype release \
|
|
--strip \
|
|
-Ddefault_library=static \
|
|
-Dprefix=/ \
|
|
-Dlibdir=lib \
|
|
-Dexamples=disabled \
|
|
-Dtests=disabled
|
|
ninja -C _build -v
|
|
DESTDIR="${COOKBOOK_STAGE}" ninja -C _build -v install
|
|
"""
|