diff options
author | Christoph Willing <chris.willing@linux.com> | 2019-03-13 07:56:00 +1000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-03-16 06:53:35 +0700 |
commit | 122763b13ae387d8646cccc777b8f188584af027 (patch) | |
tree | 5f3f58b0314060ff96aa0fa44c33979cdca9e99c /multimedia/vlc/vlc.SlackBuild | |
parent | fb86d862d42318a74c117838726f20318c8cee8b (diff) |
multimedia/vlc: Restored support for OpenCV
Signed-off-by: Christoph Willing <chris.willing@linux.com>
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 . |