1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

Update to 2.1.1.

- Convert to USE_GITHUB.
- Convert to USES=cmake.
- Add patch to prevent cmake trying to find the dl library, since in FreeBSD
  the dl functions are in the Standard C library (libc) - see dlopen(3)
- Pet portlint with other patches (remake the patches with makepatch)

This update also allows multimedia/ffmpegthumbnailer to build against ffmpeg
3.0.x. The ports tree currently still has multimedia/ffmepg at version 2.8.6,
however this update is backwards compatible with ffmpeg 2.8.6. The update of
multimedia/ffmpeg to 3.0.x branch is waiting for ports which depend on it to
successfully build with the newer version of ffmpeg.

PR:		208821
Submitted by:	Ben Woods <woodsb02@gmail.com>
Approved by:	clutton@zoho.com (maintainer)
This commit is contained in:
Raphael Kubo da Costa 2016-04-16 17:09:07 +00:00
parent 6a9dd6d1af
commit ee65af8b19
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=413461
7 changed files with 34 additions and 20 deletions

View File

@ -2,10 +2,8 @@
# $FreeBSD$
PORTNAME= ffmpegthumbnailer
PORTVERSION= 2.0.9
PORTREVISION= 1
PORTVERSION= 2.1.1
CATEGORIES= multimedia graphics
MASTER_SITES= LOCAL/riggs/${PORTNAME}
MAINTAINER= clutton@zoho.com
COMMENT= Lightweight video thumbnailer that can be used by file managers
@ -16,21 +14,21 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png \
libswscale.so:multimedia/ffmpeg
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig --enable-gio
USE_GITHUB= yes
GH_ACCOUNT= dirkvdb
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USES= compiler:c++11-lib jpeg libtool pathfix pkgconfig
USES= cmake:outsource compiler:c++11-lib jpeg localbase pathfix pkgconfig
USE_GNOME= glib20
USE_LDCONFIG= yes
CMAKE_ARGS= -DENABLE_GIO=ON \
-DCMAKE_INSTALL_MANDIR:PATH="man"
OPTIONS_DEFINE= THUMBNAILER
THUMBNAILER_DESC=Register as a system thumbnailer
OPTIONS_SUB= yes
OPTIONS_DEFAULT=THUMBNAILER
THUMBNAILER_CONFIGURE_ENABLE= thumbnailer
THUMBNAILER_CMAKE_ON= -DENABLE_THUMBNAILER=ON
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (ffmpegthumbnailer-2.0.9.tar.gz) = 41f55f37000e3c640617e4807d990998ffc430472d3b481894a3df1ea7aee3af
SIZE (ffmpegthumbnailer-2.0.9.tar.gz) = 483899
SHA256 (dirkvdb-ffmpegthumbnailer-2.1.1_GH0.tar.gz) = e43d8aae7e80771dc700b3d960a0717d5d28156684a8ddc485572cbcbc4365e9
SIZE (dirkvdb-ffmpegthumbnailer-2.1.1_GH0.tar.gz) = 1531723

View File

@ -0,0 +1,16 @@
libdl only exists on Linux. Use CMAKE_DL_LIBS instead.
Submitted upstream: https://github.com/dirkvdb/ffmpegthumbnailer/pull/132
--- CMakeLists.txt.orig 2016-04-16 16:57:31 UTC
+++ CMakeLists.txt
@@ -96,9 +96,8 @@ FIND_LIBRARY(SWSCALE_LIBRARY
IF (ENABLE_GIO)
FIND_PATH(DL_INCLUDES dlfcn.h)
- FIND_LIBRARY(DL_LIBRARY dl)
LIST(APPEND FFMPEGTHUMBNAILER_INCLUDE_DIRS ${DL_INCLUDES})
- LIST(APPEND FFMPEGTHUMBNAILER_LIBRARIES ${DL_LIBRARY})
+ LIST(APPEND FFMPEGTHUMBNAILER_LIBRARIES ${CMAKE_DL_LIBS})
ENDIF ()
LIST(APPEND FFMPEGTHUMBNAILER_INCLUDE_DIRS ${AVFORMAT_INCLUDE_DIR} ${AVCODEC_INCLUDE_DIR} ${AVUTIL_INCLUDE_DIR} ${SWSCALE_INCLUDE_DIR})

View File

@ -1,8 +1,8 @@
--- dist/ffmpegthumbnailer.thumbnailer 2012-08-25 15:32:20.000000000 +0300
+++ dist/ffmpegthumbnailer.thumbnailer 2013-12-03 05:21:35.000000000 +0200
--- dist/ffmpegthumbnailer.thumbnailer.orig 2016-02-17 19:57:35 UTC
+++ dist/ffmpegthumbnailer.thumbnailer
@@ -1,4 +1,4 @@
[Thumbnailer Entry]
TryExec=ffmpegthumbnailer
Exec=ffmpegthumbnailer -i %i -o %o -s %s -f
-MimeType=video/jpeg;video/mp4;video/mpeg;video/quicktime;video/x-ms-asf;video/x-ms-wm;video/x-ms-wmv;video/x-msvideo;video/x-flv;video/x-matroska;
-MimeType=video/jpeg;video/mp4;video/mpeg;video/quicktime;video/x-ms-asf;video/x-ms-wm;video/x-ms-wmv;video/x-msvideo;video/x-flv;video/x-matroska;video/webm;video/mp2t;
+MimeType=application/mxf;application/ogg;application/ram;application/sdp;application/vnd.ms-wpl;application/vnd.rn-realmedia;application/x-extension-m4a;application/x-extension-mp4;application/x-flac;application/x-flash-video;application/x-matroska;application/x-netshow-channel;application/x-ogg;application/x-quicktimeplayer;application/x-shorten;audio/3gpp;audio/AMR;audio/AMR-WB;audio/ac3;audio/basic;audio/midi;audio/mp4;audio/mpeg;audio/ogg;audio/prs.sid;audio/vnd.rn-realaudio;audio/x-aiff;audio/x-ape;audio/x-flac;audio/x-gsm;audio/x-it;audio/x-m4a;audio/x-matroska;audio/x-mod;audio/x-mp3;audio/x-mpeg;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;audio/x-musepack;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-realaudio;audio/x-pn-wav;audio/x-pn-windows-acm;audio/x-real-audio;audio/x-realaudio;audio/x-sbc;audio/x-speex;audio/x-tta;audio/x-vorbis;audio/x-vorbis/ogg;audio/x-wav;audio/x-wavpack;audio/x-xm;image/vnd.rn-realpix;image/x-pict;misc/ultravox;text/x-google-video-pointer;video/3gpp;video/dv;video/fli;video/flv;video/mp2t;video/mp4;video/mp4v-es;video/mpeg;video/msvideo;video/ogg;video/quicktime;video/vivo;video/vnd.divx;video/vnd.rn-realvideo;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-flv;video/x-m4v;video/x-matroska;video/x-mpeg;video/x-ms-asf;video/x-ms-asx;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvx;video/x-msvideo;video/x-nsv;video/x-ogm/ogg;video/x-theora/ogg;video/x-totem-stream;

View File

@ -1,5 +1,5 @@
--- libffmpegthumbnailer/jpegwriter.h.orig 2014-05-30 02:04:59.000000000 -0700
+++ libffmpegthumbnailer/jpegwriter.h 2014-12-02 18:20:46.000000000 -0800
--- libffmpegthumbnailer/jpegwriter.h.orig 2016-02-17 19:57:35 UTC
+++ libffmpegthumbnailer/jpegwriter.h
@@ -17,6 +17,7 @@
#ifndef JPEG_WRITER_H
#define JPEG_WRITER_H

View File

@ -5,4 +5,4 @@ files, so supported videoformats depend on the configuration flags of ffmpeg.
This thumbnailer was designed to be as fast and lightweight as possible. The
only dependencies are ffmpeg, libjpeg and libpng.
WWW: http://code.google.com/p/ffmpegthumbnailer/
WWW: https://github.com/dirkvdb/ffmpegthumbnailer

View File

@ -1,14 +1,14 @@
bin/ffmpegthumbnailer
include/libffmpegthumbnailer/ffmpegthumbnailertypes.h
include/libffmpegthumbnailer/filmstripfilter.h
include/libffmpegthumbnailer/ifilter.h
include/libffmpegthumbnailer/imagetypes.h
include/libffmpegthumbnailer/videoframe.h
include/libffmpegthumbnailer/videothumbnailer.h
include/libffmpegthumbnailer/videothumbnailerc.h
lib/libffmpegthumbnailer.a
lib/libffmpegthumbnailer.so
lib/libffmpegthumbnailer.so.4
lib/libffmpegthumbnailer.so.4.0.9
lib/libffmpegthumbnailer.so.4.11.0
libdata/pkgconfig/libffmpegthumbnailer.pc
man/man1/ffmpegthumbnailer.1.gz
%%THUMBNAILER%%share/thumbnailers/ffmpegthumbnailer.thumbnailer