aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/winff/Makefile57
-rw-r--r--multimedia/winff/distinfo2
-rw-r--r--multimedia/winff/files/patch-unit1.pas43
-rw-r--r--multimedia/winff/pkg-descr3
-rw-r--r--multimedia/winff/pkg-message2
-rw-r--r--multimedia/winff/pkg-plist54
7 files changed, 162 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index 5cbadd949d73..60633c865b78 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -411,6 +411,7 @@
SUBDIR += w_scan
SUBDIR += webcamd
SUBDIR += win32-codecs
+ SUBDIR += winff
SUBDIR += x264
SUBDIR += x265
SUBDIR += xanim
diff --git a/multimedia/winff/Makefile b/multimedia/winff/Makefile
new file mode 100644
index 000000000000..ebe8630aef66
--- /dev/null
+++ b/multimedia/winff/Makefile
@@ -0,0 +1,57 @@
+# Created by: Thierry Thomas <thierry@pompo.net>
+# $FreeBSD$
+
+PORTNAME= WinFF
+PORTVERSION= 1.5.2
+CATEGORIES= multimedia
+MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+PROJECTHOST= ${_PORTNAME}
+DISTNAME= ${PORTNAME}-${PORTVERSION}-source
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Convert your videos quickly, easily, and all at once
+
+LICENSE= GPLv3
+
+BUILD_DEPENDS= fpc:${PORTSDIR}/lang/fpc \
+ lazbuild:${PORTSDIR}/editors/lazarus
+LIB_DEPENDS= libavutil.so:${PORTSDIR}/multimedia/ffmpeg
+
+NO_WRKSUBDIR= yes
+USE_GNOME= gtk20
+_PORTNAME= ${PORTNAME:tl}
+DATADIR= ${PREFIX}/share/${_PORTNAME}
+DOCSDIR= ${PREFIX}/share/doc/${_PORTNAME}
+INSTALLS_ICONS= yes
+
+DESKTOP_ENTRIES= "${PORTNAME}" \
+ "${COMMENT}" \
+ "${_PORTNAME}" \
+ "${_PORTNAME}" \
+ "AudioVideo;" \
+ true
+
+LAZBUILD_CMD= ${LOCALBASE}/bin/lazbuild
+LAZARUS_VER= 1.2.6
+LAZARUS_DIR= ${LOCALBASE}/share/lazarus-${LAZARUS_VER}
+
+pre-configure:
+ ${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' ${WRKSRC}/unit1.pas
+.for fp in unit1.pas unit4.pas
+ ${REINPLACE_CMD} -e 's|/usr/bin/|${LOCALBASE}/bin/|g' ${WRKSRC}/${fp}
+.endfor
+
+do-build:
+ cd ${WRKSRC} && ${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} -B winff.lpr
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME:tl} ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${DATADIR}/languages
+ ${INSTALL_DATA} ${WRKSRC}/presets.xml ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/languages/* ${STAGEDIR}${DATADIR}/languages/
+ ${INSTALL_MAN} ${WRKSRC}/${_PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/winff-icons/48x48/${_PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.pdf ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/multimedia/winff/distinfo b/multimedia/winff/distinfo
new file mode 100644
index 000000000000..9c76ddf200be
--- /dev/null
+++ b/multimedia/winff/distinfo
@@ -0,0 +1,2 @@
+SHA256 (WinFF-1.5.2-source.tar.gz) = 9ee1c68173263dad8d07df2bd62e830d73e6546a0fa86b35de9be8b4c363434c
+SIZE (WinFF-1.5.2-source.tar.gz) = 2320565
diff --git a/multimedia/winff/files/patch-unit1.pas b/multimedia/winff/files/patch-unit1.pas
new file mode 100644
index 000000000000..36232a2bc1c1
--- /dev/null
+++ b/multimedia/winff/files/patch-unit1.pas
@@ -0,0 +1,43 @@
+--- unit1.pas.orig 2013-08-16 03:55:46 UTC
++++ unit1.pas
+@@ -1228,13 +1228,13 @@ end;
+
+ // launch browser
+ procedure TfrmMain.launchbrowser(URL:string);
+-{$IFDEF linux}
++{$IFDEF unix}
+ var
+ launcher:tprocess;
+ s:string;
+ {$endif}
+ begin
+- {$ifdef linux}
++ {$ifdef unix}
+ s:='';
+ if fileexists('/usr/bin/konqueror') then s:='/usr/bin/konqueror';
+ if fileexists('/usr/bin/mozilla-firefox') then s:='/usr/bin/mozilla-firefox';
+@@ -1369,13 +1369,13 @@ end;
+
+ // launch pdf
+ procedure TfrmMain.LaunchPdf(pdffile:string);
+-{$IFDEF linux}
++{$IFDEF unix}
+ var
+ launcher:tprocess;
+ s:string;
+ {$endif}
+ begin
+- {$ifdef linux}
++ {$ifdef unix}
+ s:='';
+ if fileexists('/usr/bin/evince') then s:='/usr/bin/evince';
+ if fileexists('/usr/bin/kpdf') then s:='/usr/bin/kpdf';
+@@ -1953,7 +1953,7 @@ var s : string;
+ language: string;
+ begin
+ language:=leftstr(lang,2);
+- {$ifdef linux}
++ {$ifdef unix}
+ s :='';
+ if fileexists('/usr/share/doc/winff/WinFF.' + language + '.pdf.gz') then s:='/usr/share/doc/winff/WinFF.' + language + '.pdf.gz';
+ if fileexists('/usr/share/doc/winff/WinFF.' + language + '.pdf') then s:='/usr/share/doc/winff/WinFF.' + language + '.pdf';
diff --git a/multimedia/winff/pkg-descr b/multimedia/winff/pkg-descr
new file mode 100644
index 000000000000..506b1c96457c
--- /dev/null
+++ b/multimedia/winff/pkg-descr
@@ -0,0 +1,3 @@
+WinFF is a GUI for FFmpeg. It will let you encode videos easily.
+
+WWW: http://winff.org/
diff --git a/multimedia/winff/pkg-message b/multimedia/winff/pkg-message
new file mode 100644
index 000000000000..e6f87684776e
--- /dev/null
+++ b/multimedia/winff/pkg-message
@@ -0,0 +1,2 @@
+Note: WinFF will emit a warning if it cannot find ffplay.
+To get it, you need to install ffmpeg with the SDL option.
diff --git a/multimedia/winff/pkg-plist b/multimedia/winff/pkg-plist
new file mode 100644
index 000000000000..b7e0565b19c4
--- /dev/null
+++ b/multimedia/winff/pkg-plist
@@ -0,0 +1,54 @@
+bin/winff
+man/man1/winff.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/WinFF.ca.pdf
+%%PORTDOCS%%%%DOCSDIR%%/WinFF.en.pdf
+%%PORTDOCS%%%%DOCSDIR%%/WinFF.es.pdf
+%%PORTDOCS%%%%DOCSDIR%%/WinFF.fr.pdf
+%%PORTDOCS%%%%DOCSDIR%%/WinFF.nl.pdf
+share/pixmaps/winff.png
+%%DATADIR%%/languages/winff.ab.po
+%%DATADIR%%/languages/winff.ar.po
+%%DATADIR%%/languages/winff.bg.po
+%%DATADIR%%/languages/winff.ca.po
+%%DATADIR%%/languages/winff.cs.po
+%%DATADIR%%/languages/winff.de.po
+%%DATADIR%%/languages/winff.de_DE.po
+%%DATADIR%%/languages/winff.el.po
+%%DATADIR%%/languages/winff.en.po
+%%DATADIR%%/languages/winff.es.po
+%%DATADIR%%/languages/winff.es_AR.po
+%%DATADIR%%/languages/winff.es_UY.po
+%%DATADIR%%/languages/winff.eu.po
+%%DATADIR%%/languages/winff.fr.po
+%%DATADIR%%/languages/winff.gl.po
+%%DATADIR%%/languages/winff.he.po
+%%DATADIR%%/languages/winff.hu.po
+%%DATADIR%%/languages/winff.it.po
+%%DATADIR%%/languages/winff.ja.po
+%%DATADIR%%/languages/winff.kk.po
+%%DATADIR%%/languages/winff.kn.po
+%%DATADIR%%/languages/winff.ku.po
+%%DATADIR%%/languages/winff.ky.po
+%%DATADIR%%/languages/winff.lt.po
+%%DATADIR%%/languages/winff.lv.po
+%%DATADIR%%/languages/winff.ms.po
+%%DATADIR%%/languages/winff.nb.po
+%%DATADIR%%/languages/winff.nl.po
+%%DATADIR%%/languages/winff.pl.po
+%%DATADIR%%/languages/winff.po
+%%DATADIR%%/languages/winff.pot
+%%DATADIR%%/languages/winff.pt.po
+%%DATADIR%%/languages/winff.pt_BR.po
+%%DATADIR%%/languages/winff.ro.po
+%%DATADIR%%/languages/winff.ru.po
+%%DATADIR%%/languages/winff.se.po
+%%DATADIR%%/languages/winff.sk.po
+%%DATADIR%%/languages/winff.sl.po
+%%DATADIR%%/languages/winff.sr.po
+%%DATADIR%%/languages/winff.sv.po
+%%DATADIR%%/languages/winff.te.po
+%%DATADIR%%/languages/winff.tr.po
+%%DATADIR%%/languages/winff.uk.po
+%%DATADIR%%/languages/winff.zh_CN.po
+%%DATADIR%%/languages/winff.zh_TW.po
+%%DATADIR%%/presets.xml