ports/171901: [MAINTAINER REPLACE AND PORT UPDATE] multimedia/ffmpegthumbnailer: Update to 2.0.8 add gnome scheme support
clutton
mbsd at isgroup.com.ua
Mon Sep 24 00:20:04 UTC 2012
>Number: 171901
>Category: ports
>Synopsis: [MAINTAINER REPLACE AND PORT UPDATE] multimedia/ffmpegthumbnailer: Update to 2.0.8 add gnome scheme support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Sep 24 00:20:03 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: clutton
>Release: any
>Organization:
isgroup.com.ua
>Environment:
>Description:
I sent patch to original maintainer and he offered me to take that port.
So, I'm going ahead.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff --git a/multimedia/ffmpegthumbnailer/Makefile b/multimedia/ffmpegthumbnailer/Makefile
index 73ed727..91d9442 100644
--- a/multimedia/ffmpegthumbnailer/Makefile
+++ b/multimedia/ffmpegthumbnailer/Makefile
@@ -5,12 +5,11 @@
# $FreeBSD$
PORTNAME= ffmpegthumbnailer
-PORTVERSION= 2.0.7
-PORTREVISION= 2
+PORTVERSION= 2.0.8
CATEGORIES= multimedia graphics
MASTER_SITES= GOOGLE_CODE
-MAINTAINER= dierk at blaxxtarz.de
+MAINTAINER= mbsd at isgroup.com.ua
COMMENT= Lightweight video thumbnailer that can be used by file managers
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
@@ -19,22 +18,32 @@ LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
CPPFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include
LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib
-CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
- --enable-gio
+CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig --enable-gio
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GNOME= gnomehack pkgconfig _glib20
USE_LDCONFIG= yes
-MAN1= ffmpegthumbnailer.1
+WANT_GNOME= yes
+
+OPTIONS_DEFINE= GNOME
+
+.include <bsd.port.pre.mk>
-SUB_FILES= pkg-message
+.if ${PORT_OPTIONS:MGNOME}
+PKGNAMESUFFIX+= -gnome
+GCONF_SCHEMAS= ffmpegthumbnailer.schemas
+.endif
+
+MAN1= ffmpegthumbnailer.1
post-install:
cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE} install-pkgconfigDATA
- ${MKDIR} ${DATADIR}
- ${INSTALL_SCRIPT} ${FILESDIR}/bind-nautilus.sh ${DATADIR}
- @${CAT} ${PKGMESSAGE}
-
-.include <bsd.port.mk>
+.if ${PORT_OPTIONS:MGNOME}
+ ${INSTALL_DATA} ${FILESDIR}/${GCONF_SCHEMAS} ${LOCALBASE}/etc/gconf/schemas
+ @${SETENV} GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
+ gconftool-2 --makefile-install-rule ${LOCALBASE}/etc/gconf/schemas/${GCONF_SCHEMAS} \
+ > /dev/null
+.endif
+.include <bsd.port.post.mk>
diff --git a/multimedia/ffmpegthumbnailer/distinfo b/multimedia/ffmpegthumbnailer/distinfo
index 778322d..9deff7f 100644
--- a/multimedia/ffmpegthumbnailer/distinfo
+++ b/multimedia/ffmpegthumbnailer/distinfo
@@ -1,2 +1,2 @@
-SHA256 (ffmpegthumbnailer-2.0.7.tar.gz) = a71155339d17201a13fc3ebb649b0d00c7ab2d5a8880da071c8157a69c6f612b
-SIZE (ffmpegthumbnailer-2.0.7.tar.gz) = 359864
+SHA256 (ffmpegthumbnailer-2.0.8.tar.gz) = 2c8bbefa838d38ea42fc8ac78258cda36865d974c991624b14cffdb92a3bc68b
+SIZE (ffmpegthumbnailer-2.0.8.tar.gz) = 367186
diff --git a/multimedia/ffmpegthumbnailer/files/bind-nautilus.sh b/multimedia/ffmpegthumbnailer/files/bind-nautilus.sh
index 327f5db..e69de29 100644
--- a/multimedia/ffmpegthumbnailer/files/bind-nautilus.sh
+++ b/multimedia/ffmpegthumbnailer/files/bind-nautilus.sh
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-# Use this script to bind ffmpegthumbnailer to nautilus.
-
-type="application at x-extension-webm video/3gpp video/3gpp2 video at avi \
-video at flv video at mkv video at mp4 video at mpeg video at ogg video at quicktime video at webm \
-video at x-avi video at x-flv video at x-m4v video at x-matroska video at x-mkv video at x-mp4 \
-video at x-mpeg video at x-ms-asf video at x-ms-wmv video at x-ms-wvx video at x-msvideo \
-video at x-msvideo@avi video at x-theora@ogg video at x-theora@ogv video at x-webm"
-
-cmd="/usr/bin/ffmpegthumbnailer -s %s -i %i -o %o -f"
-
-for i in $type; do
-gconftool-2 -s "/desktop/gnome/thumbnailers/$i/command" -t string "$cmd"
-gconftool-2 -s "/desktop/gnome/thumbnailers/$i/enable" -t boolean "true"
-done
diff --git a/multimedia/ffmpegthumbnailer/files/pkg-message.in b/multimedia/ffmpegthumbnailer/files/pkg-message.in
index bcf6cc1..e69de29 100644
--- a/multimedia/ffmpegthumbnailer/files/pkg-message.in
+++ b/multimedia/ffmpegthumbnailer/files/pkg-message.in
@@ -1,2 +0,0 @@
-Gnome users may bind ffmpegthumbnailer to nautilus using:
-%%DATADIR%%/bind-nautilus.sh.
diff --git a/multimedia/ffmpegthumbnailer/pkg-plist b/multimedia/ffmpegthumbnailer/pkg-plist
index a4f5145..7f8e8fb 100644
--- a/multimedia/ffmpegthumbnailer/pkg-plist
+++ b/multimedia/ffmpegthumbnailer/pkg-plist
@@ -10,6 +10,4 @@ lib/libffmpegthumbnailer.la
lib/libffmpegthumbnailer.so
lib/libffmpegthumbnailer.so.4
libdata/pkgconfig/libffmpegthumbnailer.pc
-%%DATADIR%%/bind-nautilus.sh
@dirrm include/libffmpegthumbnailer
- at dirrm %%DATADIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list