multimedia/ffmpeg: unbreak ALSA=off after r468844

https://ffmpeg.org/pipermail/ffmpeg-devel/2018-September/234516.html

PR:		232498
This commit is contained in:
Jan Beich
2018-10-21 10:33:37 +00:00
parent 9683af6323
commit c5333f12bf
2 changed files with 13 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
PORTNAME= ffmpeg
PORTVERSION= 4.0.2
PORTREVISION= 6
PORTREVISION= 7
PORTEPOCH= 1
CATEGORIES= multimedia audio ipv6 net
MASTER_SITES= https://ffmpeg.org/releases/

View File

@@ -14,3 +14,15 @@
cpu="generic"
intrinsics="none"
@@ -6234,8 +6229,10 @@ else
EOF
fi
-enabled alsa && check_pkg_config alsa alsa "alsa/asoundlib.h" snd_pcm_htimestamp ||
+if enabled alsa; then
+ check_pkg_config alsa alsa "alsa/asoundlib.h" snd_pcm_htimestamp ||
check_lib alsa alsa/asoundlib.h snd_pcm_htimestamp -lasound
+fi
enabled libjack &&
require_pkg_config libjack jack jack/jack.h jack_port_get_latency_range