v4l-utils: support clang only modul if clang is available

This commit is contained in:
Tim Biermann 2020-11-03 20:53:34 +00:00
parent 60cf3b0297
commit 91e5578ee5
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF39oDgLE5+e000igfljevRMchnhcvYp/aFSu1YgUSfhOPKO0UH4+E5lgWqt/Ru950rbfB5grRbav4iQ3J3ZeL/Qs=
SHA256 (Pkgfile) = 7eea582ceda1536a86bb7aeb87a4de7638abc48cf85e8a4040abe78bf4564f2a
RWSagIOpLGJF3ziWvlMLqdfy5Ng339j6UsMd2MPD8tbT3jv9o7kwJ9mqRe1U2hFgyjy1B0wKHvsA+wEpG7BP2kI6w+RSgTaWjgA=
SHA256 (Pkgfile) = 20745f057d0c81c9f155bc646ae24a3d9f6caa34230bf3c4be378d852d418a06
SHA256 (.footprint) = c7b36114213dd64bc58cd8d1f9fda68259231b923c9b023e3f85cc8aa32a962c
SHA256 (v4l-utils-1.20.0.tar.bz2) = 956118713f7ccb405c55c7088a6a2490c32d54300dd9a30d8d5008c28d3726f7

View File

@ -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