wok-next diff ffmpegthumbnailer/receipt @ rev 20402

Up seed (3.8.1) use webkitgtk instead of libwebkit; add cogl for clutter; up clutter (1.26.2) using mesa17 instead of mesa; up gnome-games using mesa17 instead of mix 'mesa & mesa17'
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Dec 05 17:49:11 2017 +0200 (2017-12-05)
parents 346b104468cc
children d5aab818505e
line diff
     1.1 --- a/ffmpegthumbnailer/receipt	Mon Jun 23 01:49:34 2014 +0300
     1.2 +++ b/ffmpegthumbnailer/receipt	Tue Dec 05 17:49:11 2017 +0200
     1.3 @@ -1,35 +1,53 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="ffmpegthumbnailer"
     1.8 -VERSION="2.0.8"
     1.9 +VERSION="2.2.0"
    1.10  CATEGORY="system-tools"
    1.11 -SHORT_DESC="Lightweight video thumbnailer that can be used by file managers"
    1.12 +SHORT_DESC="Fast and lightweight video thumbnailer"
    1.13  MAINTAINER="al.bobylev@gmail.com"
    1.14  LICENSE="GPL2"
    1.15 -WEB_SITE="http://code.google.com/p/ffmpegthumbnailer/"
    1.16 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WGET_URL="http://ffmpegthumbnailer.googlecode.com/files/$TARBALL"
    1.18 +WEB_SITE="https://github.com/dirkvdb/ffmpegthumbnailer"
    1.19  
    1.20 -DEPENDS="ffmpeg gcc-lib-base libjpeg libpng"
    1.21 -BUILD_DEPENDS="ffmpeg-dev libpng-dev jpeg-dev"
    1.22 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.23 +WGET_URL="https://github.com/dirkvdb/ffmpegthumbnailer/releases/download/$VERSION/$TARBALL"
    1.24 +
    1.25 +BUILD_DEPENDS="cmake libjpeg-turbo-dev zlib-dev libpng16-dev ffmpeg-dev"
    1.26 +SPLIT="ffmpegthumbnailer-dev"
    1.27  
    1.28  # Rules to configure and make the package.
    1.29  compile_rules()
    1.30  {
    1.31 -	./configure \
    1.32 -		--enable-png \
    1.33 -		--enable-jpeg \
    1.34 -		--enable-gio \
    1.35 -		$CONFIGURE_ARGS &&
    1.36 +	mkdir build; cd build
    1.37 +	cmake \
    1.38 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.39 +		-DCMAKE_BUILD_TYPE=Release \
    1.40 +		-DENABLE_GIO=ON \
    1.41 +		-DENABLE_THUMBNAILER=ON \
    1.42 +		.. &&
    1.43  	make &&
    1.44 -	make install
    1.45 +	make install &&
    1.46 +
    1.47 +	addtypes="video/x-ms-asx;video/x-ms-wmx;video/x-ms-wvx;application/mxf;\vid\
    1.48 +eo/3gp;video/3gpp;video/dv;video/divx;video/fli;video/flv;video/mp2t;video/mp4v\
    1.49 +-es;video/msvideo;video/ogg;video/vivo;video/vnd.divx;video/vnd.mpegurl;video/v\
    1.50 +nd.rn-realvideo;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;\
    1.51 +video/x-fli;video/x-flic;video/x-m4v;video/x-mpeg;video/x-mpeg2;video/x-nsv;vid\
    1.52 +eo/x-ogm+ogg;video/x-theora+ogg;" &&
    1.53 +	sed -i "/MimeType=/ s|\$|$addtypes|" \
    1.54 +		$install/usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer
    1.55  }
    1.56  
    1.57  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.58  genpkg_rules()
    1.59  {
    1.60 -	mkdir -p $fs/usr/lib $fs/usr/share/thumbnailers
    1.61 -	cp -a $install/usr/bin $fs/usr
    1.62 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.63 -	cp -a $stuff/* $fs/usr/share/thumbnailers
    1.64 +	case $PACKAGE in
    1.65 +		ffmpegthumbnailer)
    1.66 +			copy @std
    1.67 +			DEPENDS="ffmpeg libjpeg-turbo libpng16 zlib"
    1.68 +			;;
    1.69 +		*-dev)
    1.70 +			copy @dev
    1.71 +			DEPENDS="ffmpegthumbnailer ffmpeg-dev"
    1.72 +			;;
    1.73 +	esac
    1.74  }