compat-32/gst-plugins-base-32/Pkgfile

48 lines
1.6 KiB
Plaintext
Raw Normal View History

2016-02-28 04:29:19 +01:00
# Description: An essential exemplary set of plugins for gstreamer.
2017-02-15 12:31:47 +01:00
# URL: https://gstreamer.freedesktop.org/modules/gst-plugins-base.html
2016-02-28 04:29:19 +01:00
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: graphene-32 gst-plugins-base gstreamer-32 libjpeg-turbo-32 libtheora-32 libvisual-32 orc-32 pango-32
2019-04-20 13:45:50 +02:00
# Optional: cdparanoia-32
2016-02-28 04:29:19 +01:00
name=gst-plugins-base-32
2024-05-29 17:43:20 +02:00
version=1.24.4
2016-02-28 04:29:19 +01:00
release=1
2022-02-19 15:32:04 +01:00
source=(https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-$version.tar.xz)
2016-02-28 04:29:19 +01:00
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 \
2016-02-28 04:29:19 +01:00
--prefix=/usr \
--libdir=/usr/lib32 \
2020-09-20 04:08:12 +02:00
--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#,} \
2020-09-20 04:08:12 +02:00
-D nls=disabled \
-D introspection=disabled \
-D examples=disabled \
-D qt5=disabled \
2020-09-20 04:08:12 +02:00
-D package-name="GStreamer (CRUX Linux)" \
-D package-origin="https://crux.nu/"
2016-02-28 04:29:19 +01:00
meson compile -C build -j ${JOBS:-1}
2020-09-20 04:08:12 +02:00
DESTDIR=$PKG ninja -C build install
2016-02-28 04:29:19 +01:00
2020-09-20 04:08:12 +02:00
rm -r $PKG/usr/{bin,include,share/man,share}
2016-02-28 04:29:19 +01:00
}