summaryrefslogtreecommitdiff
path: root/gst-plugins-base-32/Pkgfile
blob: c02c12a2c549733ecb1e4ea8c1d787d1a91fc637 (plain)
    1 # Description: An essential exemplary set of plugins for gstreamer.
    2 # URL: https://gstreamer.freedesktop.org/modules/gst-plugins-base.html
    3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
    4 # 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
    5 # Optional: cdparanoia-32
    6 
    7 name=gst-plugins-base-32
    8 version=1.20.4
    9 release=1
   10 source=(https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-$version.tar.xz)
   11 
   12 build() {
   13 	# decide accordingly to what mesa builds with
   14 	[ -e /usr/lib32/pkgconfig/egl.pc ] || prt-get isinst wayland-protocols && \
   15 		PKGMK_GST_PLATFORM+='egl' \
   16 		PKGMK_GST_GLAPI+='gles2' \
   17 		PKGMK_GST_WINDOW+='egl'
   18 	prt-get isinst xorg-libxdamage-32 xorg-libxrandr-32 xorg-libxshmfence-32 xorg-libxvmc-32 xorg-libxxf86vm-32 && \
   19 		PKGMK_GST_PLATFORM+=',glx' \
   20 		PKGMK_GST_GLAPI+=',opengl' \
   21 		PKGMK_GST_WINDOW+=',x11'
   22 
   23 	export PKG_CONFIG_PATH='/usr/lib32/pkgconfig:/usr/share/pkgconfig'
   24 
   25 	meson setup build gst-plugins-base-$version \
   26 		--prefix=/usr \
   27 		--libdir=/usr/lib32 \
   28 		--libexecdir=/usr/lib32 \
   29 		--wrap-mode=nodownload \
   30 		-D buildtype=plain \
   31 		-D gl=enabled \
   32 		-D gl-graphene=enabled \
   33 		-D gl_platform=${PKGMK_GST_PLATFORM#,} \
   34 		-D gl_api=${PKGMK_GST_GLAPI#,} \
   35 		-D gl_winsys=${PKGMK_GST_WINDOW#,} \
   36 		-D nls=disabled \
   37 		-D introspection=disabled \
   38 		-D examples=disabled \
   39 		-D qt5=disabled \
   40 		-D package-name="GStreamer (CRUX Linux)" \
   41 		-D package-origin="https://crux.nu/"
   42 
   43         meson compile -C build -j ${JOBS:-1}
   44         DESTDIR=$PKG ninja -C build install
   45 
   46 	rm -r $PKG/usr/{bin,include,share/man,share}
   47 }

Generated by cgit