2016-02-28 14:29:19 +11:00
|
|
|
# Description: An essential exemplary set of plugins for gstreamer.
|
2017-02-15 22:31:47 +11:00
|
|
|
# URL: https://gstreamer.freedesktop.org/modules/gst-plugins-base.html
|
2016-02-28 14:29:19 +11:00
|
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
2023-08-22 18:44:56 +02:00
|
|
|
# Depends on: graphene-32 gst-plugins-base gstreamer-32 libjpeg-turbo-32 libtheora-32 libvisual-32 orc-32 pango-32
|
2019-04-20 21:45:50 +10:00
|
|
|
# Optional: cdparanoia-32
|
2016-02-28 14:29:19 +11:00
|
|
|
|
|
|
|
name=gst-plugins-base-32
|
2025-01-07 07:32:38 +01:00
|
|
|
version=1.24.11
|
2016-02-28 14:29:19 +11:00
|
|
|
release=1
|
2022-02-20 01:32:04 +11:00
|
|
|
source=(https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-$version.tar.xz)
|
2016-02-28 14:29:19 +11:00
|
|
|
|
|
|
|
build() {
|
2021-09-12 23:02:40 +10:00
|
|
|
# decide accordingly to what mesa builds with
|
2021-10-16 17:13:36 +11:00
|
|
|
[ -e /usr/lib32/pkgconfig/egl.pc ] || prt-get isinst wayland-protocols && \
|
2021-09-12 23:02:40 +10:00
|
|
|
PKGMK_GST_PLATFORM+='egl' \
|
|
|
|
PKGMK_GST_GLAPI+='gles2' \
|
|
|
|
PKGMK_GST_WINDOW+='egl'
|
|
|
|
prt-get isinst xorg-libxdamage-32 xorg-libxrandr-32 xorg-libxshmfence-32 xorg-libxvmc-32 xorg-libxxf86vm-32 && \
|
|
|
|
PKGMK_GST_PLATFORM+=',glx' \
|
|
|
|
PKGMK_GST_GLAPI+=',opengl' \
|
|
|
|
PKGMK_GST_WINDOW+=',x11'
|
|
|
|
|
2021-09-18 15:35:16 +02:00
|
|
|
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig:/usr/share/pkgconfig'
|
|
|
|
|
2020-11-08 12:37:42 +11:00
|
|
|
meson setup build gst-plugins-base-$version \
|
2016-02-28 14:29:19 +11:00
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/usr/lib32 \
|
2020-09-20 12:08:12 +10:00
|
|
|
--libexecdir=/usr/lib32 \
|
2021-09-12 23:02:40 +10:00
|
|
|
--wrap-mode=nodownload \
|
|
|
|
-D buildtype=plain \
|
|
|
|
-D gl=enabled \
|
|
|
|
-D gl-graphene=enabled \
|
|
|
|
-D gl_platform=${PKGMK_GST_PLATFORM#,} \
|
|
|
|
-D gl_api=${PKGMK_GST_GLAPI#,} \
|
|
|
|
-D gl_winsys=${PKGMK_GST_WINDOW#,} \
|
2020-09-20 12:08:12 +10:00
|
|
|
-D nls=disabled \
|
|
|
|
-D introspection=disabled \
|
2021-09-18 15:35:16 +02:00
|
|
|
-D examples=disabled \
|
|
|
|
-D qt5=disabled \
|
2020-09-20 12:08:12 +10:00
|
|
|
-D package-name="GStreamer (CRUX Linux)" \
|
|
|
|
-D package-origin="https://crux.nu/"
|
2016-02-28 14:29:19 +11:00
|
|
|
|
2020-11-08 12:37:42 +11:00
|
|
|
meson compile -C build -j ${JOBS:-1}
|
2020-09-20 12:08:12 +10:00
|
|
|
DESTDIR=$PKG ninja -C build install
|
2016-02-28 14:29:19 +11:00
|
|
|
|
2020-09-20 12:08:12 +10:00
|
|
|
rm -r $PKG/usr/{bin,include,share/man,share}
|
2016-02-28 14:29:19 +11:00
|
|
|
}
|