void-packages/srcpkgs/gst-omx/template
Đoàn Trần Công Danh b72e83e0a6 gst-omx: build on armv{6,7} again
Not sure how it was built before.
2020-10-21 21:47:55 +07:00

27 lines
898 B
Bash

# Template file for 'gst-omx'
pkgname=gst-omx
version=1.16.2
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=11ed411a2eba75610d72331eeb14ff05e2df28f4fd05cb69225a88bec6d27439
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*|aarch64*|ppc*)
# XXX bellagio target
configure_args+=" --with-omx-target=generic"
;;
armv[67]*)
configure_args+=" --with-omx-target=rpi"
makedepends+=" rpi-firmware rpi-userland-devel"
export PKG_CONFIG_PATH="$XBPS_CROSS_BASE/opt/vc/lib/pkgconfig"
CFLAGS="-I${XBPS_CROSS_BASE}/opt/vc/include/IL"
;;
esac