diff options
Diffstat (limited to 'multimedia/vlc/vlc.SlackBuild')
-rw-r--r-- | multimedia/vlc/vlc.SlackBuild | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/multimedia/vlc/vlc.SlackBuild b/multimedia/vlc/vlc.SlackBuild index bc3848345a82a..5d662da8b83ad 100644 --- a/multimedia/vlc/vlc.SlackBuild +++ b/multimedia/vlc/vlc.SlackBuild @@ -29,7 +29,7 @@ PRGNAM=vlc VERSION=${VERSION:-3.0.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -60,7 +60,6 @@ SLKLDFLAGS="-lrt" DOCS="ABOUT-NLS AUTHORS COPYING INSTALL NEWS README THANKS" qtversion="--enable-qt=4" ; [ "${QTVERSION:-5}" != "4" ] && qtversion="--enable-qt=5" wayland="--disable-wayland" ; [ "${WAYLAND:-no}" != "no" ] && wayland="--enable-wayland" -opencv="--disable-opencv" ; [ "${OPENCV:-no}" != "no" ] && opencv="--enable-opencv" # In an ordinary virtual machine, since a different kernal is running, # a unique dbus id is needed. @@ -85,6 +84,22 @@ cd $PRGNAM-$VERSION patch -p0 < $CWD/patch-projectM-fontpath.diff patch -p0 < $CWD/patch_vlc_cache_gen.diff +opencv="" +if [ "${OPENCV:-yes}" != "yes" ]; then + opencv="--disable-opencv" ; +else + if pkg-config --exists opencv4 ; then + opencv="--enable-opencv" + patch -p0 < $CWD/patch-opencv4.diff + mv modules/video_filter/opencv_wrapper.c modules/video_filter/opencv_wrapper.cpp + elif pkg-config --exists opencv ; then + # opencv-legacy + opencv="--enable-opencv" + else + opencv="--disable-opencv" + fi +fi + autoreconf -fiv chown -R root:root . |