svn commit: r563800 - in head/multimedia: . qwinff qwinff/files

Emanuel Haupt ehaupt at FreeBSD.org
Tue Feb 2 12:22:35 UTC 2021


Author: ehaupt
Date: Tue Feb  2 12:22:33 2021
New Revision: 563800
URL: https://svnweb.freebsd.org/changeset/ports/563800

Log:
  Add qwinff 0.2.1.22, qt5 GUI Frontend for FFmpeg.

Added:
  head/multimedia/qwinff/
  head/multimedia/qwinff/Makefile   (contents, props changed)
  head/multimedia/qwinff/distinfo   (contents, props changed)
  head/multimedia/qwinff/files/
  head/multimedia/qwinff/files/patch-src_main.cpp   (contents, props changed)
  head/multimedia/qwinff/files/patch-src_ui_mainwindow.cpp   (contents, props changed)
  head/multimedia/qwinff/pkg-descr   (contents, props changed)
  head/multimedia/qwinff/pkg-plist   (contents, props changed)
Modified:
  head/multimedia/Makefile

Modified: head/multimedia/Makefile
==============================================================================
--- head/multimedia/Makefile	Tue Feb  2 12:17:34 2021	(r563799)
+++ head/multimedia/Makefile	Tue Feb  2 12:22:33 2021	(r563800)
@@ -358,6 +358,7 @@
     SUBDIR += quodlibet
     SUBDIR += quvi
     SUBDIR += quvi09
+    SUBDIR += qwinff
     SUBDIR += rage
     SUBDIR += rav1e
     SUBDIR += recmpeg

Added: head/multimedia/qwinff/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/qwinff/Makefile	Tue Feb  2 12:22:33 2021	(r563800)
@@ -0,0 +1,28 @@
+# Created by: Emanuel Haupt <ehaupt at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	qwinff
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.2.1-22
+DISTVERSIONSUFFIX=	-g17e987e
+CATEGORIES=	multimedia
+
+MAINTAINER=	ehaupt at FreeBSD.org
+COMMENT=	Qt5 GUI Frontend for FFmpeg
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING.txt
+
+RUN_DEPENDS=	ffmpeg:multimedia/ffmpeg \
+		sox:audio/sox
+
+USES=		cmake:noninja qt:5
+USE_GITHUB=	yes
+USE_QT=		core gui linguisttools network widgets buildtools_build \
+		qmake_build
+
+post-patch:
+	@${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \
+		${WRKSRC}/src/main.cpp ${WRKSRC}/src/ui/mainwindow.cpp
+
+.include <bsd.port.mk>

Added: head/multimedia/qwinff/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/qwinff/distinfo	Tue Feb  2 12:22:33 2021	(r563800)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1612210655
+SHA256 (qwinff-qwinff-v0.2.1-22-g17e987e_GH0.tar.gz) = 62747593724fc702a368895110f8b9589a654d4715fb34804ef640e462e53f57
+SIZE (qwinff-qwinff-v0.2.1-22-g17e987e_GH0.tar.gz) = 641957

Added: head/multimedia/qwinff/files/patch-src_main.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/qwinff/files/patch-src_main.cpp	Tue Feb  2 12:22:33 2021	(r563800)
@@ -0,0 +1,11 @@
+--- src/main.cpp.orig	2020-10-25 12:05:30 UTC
++++ src/main.cpp
+@@ -30,6 +30,8 @@
+ #include "services/notification.h"
+ #include "services/constants.h"
+ 
++#define DATA_PATH "%%DATADIR%%"
++
+ /**
+  * @brief Find the absolute path of the translation of the current locale.
+  *

Added: head/multimedia/qwinff/files/patch-src_ui_mainwindow.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/qwinff/files/patch-src_ui_mainwindow.cpp	Tue Feb  2 12:22:33 2021	(r563800)
@@ -0,0 +1,22 @@
+--- src/ui/mainwindow.cpp.orig	2020-10-25 12:05:30 UTC
++++ src/ui/mainwindow.cpp
+@@ -48,6 +48,8 @@
+ #include <QDebug>
+ #include <QUrl>
+ 
++#define DATA_PATH "%%DATADIR%%"
++
+ MainWindow::MainWindow(QWidget *parent, const QStringList& fileList) :
+     QMainWindow(parent),
+     ui(new Ui::MainWindow),
+@@ -673,7 +675,9 @@ int MainWindow::get_poweroff_behavior()
+ bool MainWindow::load_presets()
+ {
+     // The default preset file is located in <datapath>/presets.xml
+-    QString default_preset_file = QDir(Paths::dataPath()).absoluteFilePath("presets.xml");
++    //QString default_preset_file = QDir(Paths::dataPath()).absoluteFilePath("presets.xml");
++    QString app_path = QString(DATA_PATH);
++    QString default_preset_file = QDir(app_path).absoluteFilePath("presets.xml");
+ 
+     QString local_preset_file;
+     if (!Constants::getBool("Portable")) { // non-portable app

Added: head/multimedia/qwinff/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/qwinff/pkg-descr	Tue Feb  2 12:22:33 2021	(r563800)
@@ -0,0 +1,15 @@
+QWinFF is a GUI for FFmpeg, a powerful command-line media converter.  It
+provides an intuitive graphical interface and a rich set of presets to
+help you use ffmpeg easily without having to type a single command.
+Advanced users can also adjust conversion parameters like bitrate and
+sample rate in detail.
+
+QWinFF also comes in handy when you need to make a video clip for a
+larger video. Starting from version 0.2.0, QWinFF features an
+interactive video-cutting interface that lets you watch the video and
+select the time range you want to convert. There is also an option that
+changes the speed of the video, making it possible to create slow-motion
+or fast-motion animations. Audio will also be rescaled without changing
+the pitch.
+
+WWW: http://qwinff.github.io/

Added: head/multimedia/qwinff/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/qwinff/pkg-plist	Tue Feb  2 12:22:33 2021	(r563800)
@@ -0,0 +1,21 @@
+bin/qwinff
+share/applications/qwinff.desktop
+share/pixmaps/qwinff.png
+%%DATADIR%%/constants.xml
+%%DATADIR%%/presets.xml
+%%DATADIR%%/translations/qwinff_ar.qm
+%%DATADIR%%/translations/qwinff_cs_CZ.qm
+%%DATADIR%%/translations/qwinff_de.qm
+%%DATADIR%%/translations/qwinff_es_ES.qm
+%%DATADIR%%/translations/qwinff_es_GT.qm
+%%DATADIR%%/translations/qwinff_fr.qm
+%%DATADIR%%/translations/qwinff_hu_HU.qm
+%%DATADIR%%/translations/qwinff_it_IT.qm
+%%DATADIR%%/translations/qwinff_ja_JP.qm
+%%DATADIR%%/translations/qwinff_pl_PL.qm
+%%DATADIR%%/translations/qwinff_pt_BR.qm
+%%DATADIR%%/translations/qwinff_ro_RO.qm
+%%DATADIR%%/translations/qwinff_ru.qm
+%%DATADIR%%/translations/qwinff_tr_TR.qm
+%%DATADIR%%/translations/qwinff_zh_CN.qm
+%%DATADIR%%/translations/qwinff_zh_TW.qm


More information about the svn-ports-all mailing list