1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

Add qwinff 0.2.1.22, qt5 GUI Frontend for FFmpeg.

This commit is contained in:
Emanuel Haupt 2021-02-02 12:22:33 +00:00
parent 5dc7bb2c3e
commit 0b866ea00e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=563800
7 changed files with 101 additions and 0 deletions

View File

@ -358,6 +358,7 @@
SUBDIR += quodlibet
SUBDIR += quvi
SUBDIR += quvi09
SUBDIR += qwinff
SUBDIR += rage
SUBDIR += rav1e
SUBDIR += recmpeg

View File

@ -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>

View File

@ -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

View File

@ -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.
*

View File

@ -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

View File

@ -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/

View File

@ -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