Commit 9f28db47 authored by Clément Bœsch's avatar Clément Bœsch

Merge commit 'ae90119c'

* commit 'ae90119c':
  configure: Simplify license incompatibility check

An extra GPLV3 list is added for libsmbclient as having it in both GPL
and VERSION3 lists would cause a duplicate in the final config list.

Also, for consistency, libnpp is treated the same as the other nonfree
component (libfdk_aac and openssl).
Merged-by: 's avatarClément Bœsch <u@pkh.me>
parents 0052f3f5 ae90119c
...@@ -1511,15 +1511,45 @@ EXTERNAL_AUTODETECT_LIBRARY_LIST=" ...@@ -1511,15 +1511,45 @@ EXTERNAL_AUTODETECT_LIBRARY_LIST="
zlib zlib
" "
EXTERNAL_LIBRARY_GPL_LIST="
frei0r
libcdio
librubberband
libvidstab
libx264
libx265
libxavs
libxvid
x11grab
"
EXTERNAL_LIBRARY_NONFREE_LIST="
libfdk_aac
openssl
"
EXTERNAL_LIBRARY_VERSION3_LIST="
gmp
libopencore_amrnb
libopencore_amrwb
libvo_amrwbenc
"
EXTERNAL_LIBRARY_GPLV3_LIST="
libsmbclient
"
EXTERNAL_LIBRARY_LIST=" EXTERNAL_LIBRARY_LIST="
$EXTERNAL_AUTODETECT_LIBRARY_LIST $EXTERNAL_AUTODETECT_LIBRARY_LIST
$EXTERNAL_LIBRARY_GPL_LIST
$EXTERNAL_LIBRARY_NONFREE_LIST
$EXTERNAL_LIBRARY_VERSION3_LIST
$EXTERNAL_LIBRARY_GPLV3_LIST
avisynth avisynth
chromaprint chromaprint
crystalhd crystalhd
decklink decklink
frei0r
gcrypt gcrypt
gmp
gnutls gnutls
jni jni
ladspa ladspa
...@@ -1527,10 +1557,8 @@ EXTERNAL_LIBRARY_LIST=" ...@@ -1527,10 +1557,8 @@ EXTERNAL_LIBRARY_LIST="
libbluray libbluray
libbs2b libbs2b
libcaca libcaca
libcdio
libcelt libcelt
libdc1394 libdc1394
libfdk_aac
libflite libflite
libfontconfig libfontconfig
libfreetype libfreetype
...@@ -1543,8 +1571,6 @@ EXTERNAL_LIBRARY_LIST=" ...@@ -1543,8 +1571,6 @@ EXTERNAL_LIBRARY_LIST="
libmodplug libmodplug
libmp3lame libmp3lame
libnut libnut
libopencore_amrnb
libopencore_amrwb
libopencv libopencv
libopenh264 libopenh264
libopenjpeg libopenjpeg
...@@ -1552,7 +1578,6 @@ EXTERNAL_LIBRARY_LIST=" ...@@ -1552,7 +1578,6 @@ EXTERNAL_LIBRARY_LIST="
libopus libopus
libpulse libpulse
librtmp librtmp
librubberband
libschroedinger libschroedinger
libshine libshine
libsmbclient libsmbclient
...@@ -1564,16 +1589,10 @@ EXTERNAL_LIBRARY_LIST=" ...@@ -1564,16 +1589,10 @@ EXTERNAL_LIBRARY_LIST="
libtheora libtheora
libtwolame libtwolame
libv4l2 libv4l2
libvidstab
libvo_amrwbenc
libvorbis libvorbis
libvpx libvpx
libwavpack libwavpack
libwebp libwebp
libx264
libx265
libxavs
libxvid
libzimg libzimg
libzmq libzmq
libzvbi libzvbi
...@@ -1582,9 +1601,7 @@ EXTERNAL_LIBRARY_LIST=" ...@@ -1582,9 +1601,7 @@ EXTERNAL_LIBRARY_LIST="
openal openal
opencl opencl
opengl opengl
openssl
videotoolbox videotoolbox
x11grab
" "
HWACCEL_AUTODETECT_LIBRARY_LIST=" HWACCEL_AUTODETECT_LIBRARY_LIST="
audiotoolbox audiotoolbox
...@@ -1600,10 +1617,14 @@ HWACCEL_AUTODETECT_LIBRARY_LIST=" ...@@ -1600,10 +1617,14 @@ HWACCEL_AUTODETECT_LIBRARY_LIST="
xvmc xvmc
" "
HWACCEL_LIBRARY_NONFREE_LIST="
libnpp
"
HWACCEL_LIBRARY_LIST=" HWACCEL_LIBRARY_LIST="
$HWACCEL_AUTODETECT_LIBRARY_LIST $HWACCEL_AUTODETECT_LIBRARY_LIST
$HWACCEL_LIBRARY_NONFREE_LIST
libmfx libmfx
libnpp
mmal mmal
omx omx
" "
...@@ -5145,33 +5166,17 @@ EOF ...@@ -5145,33 +5166,17 @@ EOF
fi fi
die_license_disabled() { die_license_disabled() {
enabled $1 || { enabled $2 && die "$2 is $1 and --enable-$1 is not specified."; } enabled $1 || { enabled $v && die "$v is $1 and --enable-$1 is not specified."; }
} }
die_license_disabled_gpl() { die_license_disabled_gpl() {
enabled $1 || { enabled $2 && die "$2 is incompatible with the gpl and --enable-$1 is not specified."; } enabled $1 || { enabled $v && die "$v is incompatible with the gpl and --enable-$1 is not specified."; }
} }
die_license_disabled gpl frei0r map "die_license_disabled gpl" $EXTERNAL_LIBRARY_GPL_LIST $EXTERNAL_LIBRARY_GPLV3_LIST
die_license_disabled gpl libcdio map "die_license_disabled version3" $EXTERNAL_LIBRARY_VERSION3_LIST $EXTERNAL_LIBRARY_GPLV3_LIST
die_license_disabled gpl librubberband
die_license_disabled gpl libsmbclient enabled gpl && map "die_license_disabled_gpl nonfree" $EXTERNAL_LIBRARY_NONFREE_LIST $HWACCEL_LIBRARY_NONFREE_LIST
die_license_disabled gpl libvidstab
die_license_disabled gpl libx264
die_license_disabled gpl libx265
die_license_disabled gpl libxavs
die_license_disabled gpl libxvid
die_license_disabled gpl x11grab
die_license_disabled nonfree libnpp
enabled gpl && die_license_disabled_gpl nonfree libfdk_aac
enabled gpl && die_license_disabled_gpl nonfree openssl
die_license_disabled version3 gmp
die_license_disabled version3 libopencore_amrnb
die_license_disabled version3 libopencore_amrwb
die_license_disabled version3 libsmbclient
die_license_disabled version3 libvo_amrwbenc
enabled version3 && { enabled gpl && enable gplv3 || enable lgplv3; } enabled version3 && { enabled gpl && enable gplv3 || enable lgplv3; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment