void-packages/srcpkgs/gst-omx/template
2019-10-04 12:38:12 +02:00

28 lines
985 B
Bash

# Template file for 'gst-omx'
pkgname=gst-omx
version=1.16.1
revision=1
build_style=gnu-configure
configure_args="--disable-examples"
hostmakedepends="pkg-config python glib-devel"
makedepends="gst-plugins-base1-devel"
short_desc="GStreamer OpenMAX IL wrapper plugin (1.x)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only"
homepage="https://gstreamer.freedesktop.org"
distfiles="${homepage}/src/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=cbf54121a2cba575d460833e8132265781252ce32cf5b8f9fa8753e42ab24bb2
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*|aarch64*|ppc64*)
# XXX bellagio target
configure_args+=" --with-omx-target=generic"
;;
armv[67]*)
configure_args+=" --with-omx-target=rpi"
makedepends+=" rpi-firmware rpi-userland-devel"
CFLAGS+=" -I${XBPS_CROSS_BASE}/opt/vc/include/IL"
CFLAGS+=" -I${XBPS_CROSS_BASE}/opt/vc/include/interface/vcos/pthreads"
CFLAGS+=" -I${XBPS_CROSS_BASE}/opt/vc/include/interface/vmcs_host/linux"
;;
esac