summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/qwinff/Makefile28
-rw-r--r--multimedia/qwinff/distinfo3
-rw-r--r--multimedia/qwinff/files/patch-src_main.cpp11
-rw-r--r--multimedia/qwinff/files/patch-src_ui_mainwindow.cpp22
-rw-r--r--multimedia/qwinff/pkg-descr15
-rw-r--r--multimedia/qwinff/pkg-plist21
7 files changed, 101 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index 3ea418484456..3a2649b522b9 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -358,6 +358,7 @@
SUBDIR += quodlibet
SUBDIR += quvi
SUBDIR += quvi09
+ SUBDIR += qwinff
SUBDIR += rage
SUBDIR += rav1e
SUBDIR += recmpeg
diff --git a/multimedia/qwinff/Makefile b/multimedia/qwinff/Makefile
new file mode 100644
index 000000000000..2da12fe79f79
--- /dev/null
+++ b/multimedia/qwinff/Makefile
@@ -0,0 +1,28 @@
+# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= qwinff
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.2.1-22
+DISTVERSIONSUFFIX= -g17e987e
+CATEGORIES= multimedia
+
+MAINTAINER= ehaupt@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>
diff --git a/multimedia/qwinff/distinfo b/multimedia/qwinff/distinfo
new file mode 100644
index 000000000000..8bd5afe6f5d8
--- /dev/null
+++ b/multimedia/qwinff/distinfo
@@ -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
diff --git a/multimedia/qwinff/files/patch-src_main.cpp b/multimedia/qwinff/files/patch-src_main.cpp
new file mode 100644
index 000000000000..ea3a897dbe36
--- /dev/null
+++ b/multimedia/qwinff/files/patch-src_main.cpp
@@ -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.
+ *
diff --git a/multimedia/qwinff/files/patch-src_ui_mainwindow.cpp b/multimedia/qwinff/files/patch-src_ui_mainwindow.cpp
new file mode 100644
index 000000000000..ac8db6af53de
--- /dev/null
+++ b/multimedia/qwinff/files/patch-src_ui_mainwindow.cpp
@@ -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
diff --git a/multimedia/qwinff/pkg-descr b/multimedia/qwinff/pkg-descr
new file mode 100644
index 000000000000..366f8174c988
--- /dev/null
+++ b/multimedia/qwinff/pkg-descr
@@ -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/
diff --git a/multimedia/qwinff/pkg-plist b/multimedia/qwinff/pkg-plist
new file mode 100644
index 000000000000..9a6735436fe6
--- /dev/null
+++ b/multimedia/qwinff/pkg-plist
@@ -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