summaryrefslogtreecommitdiff
path: root/v4l-utils/Pkgfile
diff options
context:
space:
mode:
authorTim Biermann <tbier@posteo.de>2020-11-03 20:53:34 +0000
committerTim Biermann <tbier@posteo.de>2020-11-03 20:53:34 +0000
commit91e5578ee55d26c6f806b552c48ab3280f72f7ca (patch)
treec3e8a22dedc3c6c177ee9f827cdc82af8f9ebc79 /v4l-utils/Pkgfile
parent60cf3b0297bf7a451092ab41093810a6cb35e1cb (diff)
downloadcontrib-91e5578ee55d26c6f806b552c48ab3280f72f7ca.tar.gz
contrib-91e5578ee55d26c6f806b552c48ab3280f72f7ca.tar.xz
v4l-utils: support clang only modul if clang is available
Diffstat (limited to 'v4l-utils/Pkgfile')
-rw-r--r--v4l-utils/Pkgfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/v4l-utils/Pkgfile b/v4l-utils/Pkgfile
index a4f34286e..33faf75e2 100644
--- a/v4l-utils/Pkgfile
+++ b/v4l-utils/Pkgfile
@@ -10,7 +10,9 @@ source=(https://linuxtv.org/downloads/v4l-utils/$name-$version.tar.bz2)
build() {
cd $name-$version
- ./configure --prefix=/usr \
+ [[ -e /usr/bin/clang ]] && PKGMK_V4L+=" --enable-bpf" || PKGMK_V4L+=" --disable-bpf"
+ ./configure $PKGMK_V4L \
+ --prefix=/usr \
--disable-nls
make
MAKEFLAGS="-j1" make install DESTDIR=$PKG

Generated by cgit