2018-10-27 11:57:10 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= subtitlecomposer
|
2019-06-30 23:50:28 +02:00
|
|
|
PORTVERSION= 0.7.0
|
2018-10-27 11:57:10 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
|
|
|
CATEGORIES= multimedia kde
|
|
|
|
|
|
|
|
MAINTAINER= makc@FreeBSD.org
|
|
|
|
COMMENT= Subtitle editor
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
|
|
|
LIB_DEPENDS= libicui18n.so:devel/icu \
|
|
|
|
libavcodec.so:multimedia/ffmpeg
|
|
|
|
|
2018-12-25 21:25:39 +01:00
|
|
|
USES= compiler:c++11-lang cmake desktop-file-utils gettext \
|
2018-12-02 13:44:41 +01:00
|
|
|
kde:5 pkgconfig qt:5 shared-mime-info
|
2018-10-27 11:57:10 +02:00
|
|
|
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
|
|
|
|
|
2019-04-06 19:25:22 +02:00
|
|
|
PORTSCOUT= ignore:continuous
|
|
|
|
|
2018-10-27 11:57:10 +02:00
|
|
|
OPTIONS_GROUP= VIDEO
|
|
|
|
VIDEO_DESC= Video players
|
|
|
|
OPTIONS_GROUP_VIDEO= GSTREAMER MPLAYER MPV PHONON XINE
|
|
|
|
OPTIONS_DEFAULT= PHONON
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2019-06-30 23:50:28 +02:00
|
|
|
WRKSRC= ${WRKDIR}/SubtitleComposer-${PORTVERSION}
|
|
|
|
|
2018-10-27 11:57:10 +02:00
|
|
|
# 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>
|