aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2018-10-27 17:57:10 +0800
committermakc <makc@FreeBSD.org>2018-10-27 17:57:10 +0800
commita9d2179ff7b43d79af66e0a53a15f5ba85745bd5 (patch)
tree2f627fc8b7b48f32db1e2d3e592fe80744bffc94 /multimedia
parent1de19e0479bcb54187d331656395495e66df4570 (diff)
downloadfreebsd-ports-gnome-a9d2179ff7b43d79af66e0a53a15f5ba85745bd5.tar.gz
freebsd-ports-gnome-a9d2179ff7b43d79af66e0a53a15f5ba85745bd5.tar.zst
freebsd-ports-gnome-a9d2179ff7b43d79af66e0a53a15f5ba85745bd5.zip
multimedia/subtitlecomposer:
- Restore from attic and update to 0.6.6
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/Makefile1
-rw-r--r--multimedia/subtitlecomposer/Makefile61
-rw-r--r--multimedia/subtitlecomposer/distinfo3
-rw-r--r--multimedia/subtitlecomposer/files/patch-src_formats_CMakeLists.txt11
-rw-r--r--multimedia/subtitlecomposer/pkg-descr4
-rw-r--r--multimedia/subtitlecomposer/pkg-plist69
6 files changed, 149 insertions, 0 deletions
diff --git a/multimedia/Makefile b/multimedia/Makefile
index a2c9341e73cc..867596b4ee3a 100644
--- a/multimedia/Makefile
+++ b/multimedia/Makefile
@@ -399,6 +399,7 @@
SUBDIR += snappy
SUBDIR += spigot
SUBDIR += spook
+ SUBDIR += subtitlecomposer
SUBDIR += subtitlecomposer-kde4
SUBDIR += subtitleeditor
SUBDIR += subtitleoffsetmodifier
diff --git a/multimedia/subtitlecomposer/Makefile b/multimedia/subtitlecomposer/Makefile
new file mode 100644
index 000000000000..f0f79bb319a8
--- /dev/null
+++ b/multimedia/subtitlecomposer/Makefile
@@ -0,0 +1,61 @@
+# $FreeBSD$
+
+PORTNAME= subtitlecomposer
+PORTVERSION= 0.6.6
+DISTVERSIONPREFIX= v
+CATEGORIES= multimedia kde
+
+MAINTAINER= makc@FreeBSD.org
+COMMENT= Subtitle editor
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+CONFLICTS_INSTALL= subtitlecomposer-kde4-*
+
+LIB_DEPENDS= libicui18n.so:devel/icu \
+ libavcodec.so:multimedia/ffmpeg
+
+USES= cmake:outsource desktop-file-utils gettext kde:5 pkgconfig \
+ qt:5 shared-mime-info
+USE_KDE= auth codecs config configwidgets coreaddons ecm_build i18n \
+ kio kross sonnet textwidgets widgetsaddons xmlgui
+USE_QT= buildtools_build qmake_build core gui widgets
+
+USE_GITHUB= yes
+GH_ACCOUNT= maxrd2
+
+OPTIONS_GROUP= VIDEO
+VIDEO_DESC= Video players
+OPTIONS_GROUP_VIDEO= GSTREAMER MPLAYER MPV PHONON XINE
+OPTIONS_DEFAULT= PHONON
+OPTIONS_SUB= yes
+
+# Requires PocketSphinx-5prealpha
+SPHINX_DESC= Speech recognition via PocketSphinx
+SPHINX_LIB_DEPENDS= libpocketsphinx.so:audio/pocketsphinx
+CMAKE_ARGS= -DCMAKE_DISABLE_FIND_PACKAGE_PocketSphinx=ON
+
+GSTREAMER_USE= GNOME=glib20 GSTREAMER1=yes
+GSTREAMER_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_GStreamer=ON
+
+MPLAYER_DESC= Install MPlayer
+MPLAYER_RUN_DEPENDS= mplayer:multimedia/mplayer
+
+MPV_DESC= Multimedia support via MPV
+MPV_LIB_DEPENDS= libmpv.so:multimedia/mpv
+MPV_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_MPV=ON
+
+PHONON_USE= QT=phonon4
+PHONON_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_Phonon4Qt5=ON
+
+XINE_LIB_DEPENDS= libxine.so:multimedia/libxine
+XINE_USE= XORG=x11,xcb
+XINE_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_Xine=ON
+
+post-patch:
+ ${RM} ${WRKSRC}/cmake/FindICU.cmake
+ ${REINPLACE_CMD} '/include <locale>/s,locale,clocale,' \
+ ${WRKSRC}/src/videoplayerplugins/mpv/mpvbackend.cpp
+
+.include <bsd.port.mk>
diff --git a/multimedia/subtitlecomposer/distinfo b/multimedia/subtitlecomposer/distinfo
new file mode 100644
index 000000000000..640e737bc9a3
--- /dev/null
+++ b/multimedia/subtitlecomposer/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1540495091
+SHA256 (maxrd2-subtitlecomposer-v0.6.6_GH0.tar.gz) = 6cd1d74f7934cdaa5d492f47da4143bd096a6196f2afcb2827cada9a3cdb2ea4
+SIZE (maxrd2-subtitlecomposer-v0.6.6_GH0.tar.gz) = 1637272
diff --git a/multimedia/subtitlecomposer/files/patch-src_formats_CMakeLists.txt b/multimedia/subtitlecomposer/files/patch-src_formats_CMakeLists.txt
new file mode 100644
index 000000000000..436d59371e26
--- /dev/null
+++ b/multimedia/subtitlecomposer/files/patch-src_formats_CMakeLists.txt
@@ -0,0 +1,11 @@
+--- src/formats/CMakeLists.txt.orig 2018-10-25 20:45:54 UTC
++++ src/formats/CMakeLists.txt
+@@ -68,7 +68,7 @@ set(formats_UIS
+ CACHE INTERNAL EXPORTEDVARIABLE
+ )
+
+-find_package(ICU)
++find_package(ICU REQUIRED COMPONENTS i18n uc data)
+ if(ICU_FOUND)
+ message(STATUS "ICU Library will be used for charset detection.")
+
diff --git a/multimedia/subtitlecomposer/pkg-descr b/multimedia/subtitlecomposer/pkg-descr
new file mode 100644
index 000000000000..2740e74c4084
--- /dev/null
+++ b/multimedia/subtitlecomposer/pkg-descr
@@ -0,0 +1,4 @@
+Subtitle editor that supports basic operations (text, time, and
+style edition, live preview, spell checking and more.
+
+WWW: https://github.com/maxrd2/subtitlecomposer
diff --git a/multimedia/subtitlecomposer/pkg-plist b/multimedia/subtitlecomposer/pkg-plist
new file mode 100644
index 000000000000..466c2a48168b
--- /dev/null
+++ b/multimedia/subtitlecomposer/pkg-plist
@@ -0,0 +1,69 @@
+bin/subtitlecomposer
+etc/xdg/subtitlecomposerrc
+%%GSTREAMER%%lib/subtitlecomposer/gstplayer.so
+lib/subtitlecomposer/mplayer.so
+%%MPV%%lib/subtitlecomposer/mpvplayer.so
+%%PHONON%%lib/subtitlecomposer/phononplayer.so
+%%XINE%%lib/subtitlecomposer/xineplayer.so
+share/applications/subtitlecomposer.desktop
+share/icons/hicolor/128x128/apps/subtitlecomposer.png
+share/icons/hicolor/16x16/apps/subtitlecomposer.png
+share/icons/hicolor/256x256/apps/subtitlecomposer.png
+share/icons/hicolor/32x32/apps/subtitlecomposer.png
+share/kxmlgui5/subtitlecomposer/subtitlecomposerui.rc
+share/locale/bg/LC_MESSAGES/subtitlecomposer.mo
+share/locale/cs/LC_MESSAGES/subtitlecomposer.mo
+share/locale/de/LC_MESSAGES/subtitlecomposer.mo
+share/locale/el/LC_MESSAGES/subtitlecomposer.mo
+share/locale/es/LC_MESSAGES/subtitlecomposer.mo
+share/locale/fr/LC_MESSAGES/subtitlecomposer.mo
+share/locale/hr/LC_MESSAGES/subtitlecomposer.mo
+share/locale/hu/LC_MESSAGES/subtitlecomposer.mo
+share/locale/it/LC_MESSAGES/subtitlecomposer.mo
+share/locale/pl/LC_MESSAGES/subtitlecomposer.mo
+share/locale/pt_BR/LC_MESSAGES/subtitlecomposer.mo
+share/locale/ru/LC_MESSAGES/subtitlecomposer.mo
+share/locale/sr/LC_MESSAGES/subtitlecomposer.mo
+share/locale/sr@latin/LC_MESSAGES/subtitlecomposer.mo
+share/locale/uk/LC_MESSAGES/subtitlecomposer.mo
+share/mime/packages/subtitlecomposer.xml
+%%DATADIR%%/icons/hicolor/128x128/categories/waveform.png
+%%DATADIR%%/icons/hicolor/16x16/actions/select_stream.png
+%%DATADIR%%/icons/hicolor/16x16/actions/time_from_video.png
+%%DATADIR%%/icons/hicolor/48x48/actions/audio_extract.png
+%%DATADIR%%/icons/hicolor/48x48/apps/gstreamer.png
+%%DATADIR%%/icons/hicolor/48x48/apps/mediaplayer.png
+%%DATADIR%%/icons/hicolor/48x48/apps/mplayer.png
+%%DATADIR%%/icons/hicolor/48x48/apps/xine.png
+%%DATADIR%%/icons/hicolor/64x64/apps/mpv.png
+%%DATADIR%%/icons/hicolor/scalable/actions/anchor.svg
+%%DATADIR%%/icons/hicolor/scalable/actions/current_line_follows_video.svg
+%%DATADIR%%/icons/hicolor/scalable/actions/playrate_minus.svg
+%%DATADIR%%/icons/hicolor/scalable/actions/playrate_plus.svg
+%%DATADIR%%/icons/hicolor/scalable/actions/set_hide_time.svg
+%%DATADIR%%/icons/hicolor/scalable/actions/set_show_time.svg
+%%DATADIR%%/scripts/README
+%%DATADIR%%/scripts/api/scripting_list.h
+%%DATADIR%%/scripts/api/scripting_range.h
+%%DATADIR%%/scripts/api/scripting_rangelist.h
+%%DATADIR%%/scripts/api/scripting_rangesmodule.h
+%%DATADIR%%/scripts/api/scripting_sstring.h
+%%DATADIR%%/scripts/api/scripting_stringsmodule.h
+%%DATADIR%%/scripts/api/scripting_subtitle.h
+%%DATADIR%%/scripts/api/scripting_subtitleline.h
+%%DATADIR%%/scripts/api/scripting_subtitlelinemodule.h
+%%DATADIR%%/scripts/api/scripting_subtitlemodule.h
+%%DATADIR%%/scripts/example_capitalize_all_lines.js
+%%DATADIR%%/scripts/example_capitalize_all_lines.py
+%%DATADIR%%/scripts/example_capitalize_all_lines.rb
+%%DATADIR%%/scripts/example_iterate_selection.js
+%%DATADIR%%/scripts/example_iterate_selection.py
+%%DATADIR%%/scripts/example_iterate_selection.rb
+%%DATADIR%%/scripts/example_remove_impair_lines.js
+%%DATADIR%%/scripts/example_remove_impair_lines.py
+%%DATADIR%%/scripts/example_remove_impair_lines.rb
+%%DATADIR%%/scripts/example_trim_to_selection.js
+%%DATADIR%%/scripts/example_trim_to_selection.py
+%%DATADIR%%/scripts/example_trim_to_selection.rb
+%%DATADIR%%/scripts/fix_dialog_cues.py
+%%DATADIR%%/scripts/remove_hearing_impaired_text.js