48 lines
1.6 KiB
Plaintext
48 lines
1.6 KiB
Plaintext
# Description: An essential exemplary set of plugins for gstreamer.
|
|
# URL: https://gstreamer.freedesktop.org/modules/gst-plugins-base.html
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: alsa-lib-32 graphene-32 gst-plugins-base gstreamer-32 libjpeg-turbo-32 libtheora-32 libvisual-32 mesa-32 orc-32 pango-32
|
|
# Optional: cdparanoia-32
|
|
|
|
name=gst-plugins-base-32
|
|
version=1.22.0
|
|
release=1
|
|
source=(https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-$version.tar.xz)
|
|
|
|
build() {
|
|
# decide accordingly to what mesa builds with
|
|
[ -e /usr/lib32/pkgconfig/egl.pc ] || prt-get isinst wayland-protocols && \
|
|
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'
|
|
|
|
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig:/usr/share/pkgconfig'
|
|
|
|
meson setup build gst-plugins-base-$version \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--libexecdir=/usr/lib32 \
|
|
--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#,} \
|
|
-D nls=disabled \
|
|
-D introspection=disabled \
|
|
-D examples=disabled \
|
|
-D qt5=disabled \
|
|
-D package-name="GStreamer (CRUX Linux)" \
|
|
-D package-origin="https://crux.nu/"
|
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG ninja -C build install
|
|
|
|
rm -r $PKG/usr/{bin,include,share/man,share}
|
|
}
|