1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

Add a Qt5 option to multimedia/mlt

multimedia/mlt has a Qt4 option specifically to support multimedia/kdenlive.
Future versions of kdenlive are Qt5 based. Prepare for this by also enabling
the Qt5 library being built.

Convert the QT4 option into a radio-option "QT=QT4 QT5".

Reviewed by:	mat
Approved by:	rakuco (mentor)
Differential Revision:	https://reviews.freebsd.org/D7432
This commit is contained in:
Tobias C. Berner 2016-08-15 17:46:33 +00:00
parent a5606d9b89
commit 6c7187533f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420257
2 changed files with 24 additions and 14 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= mlt
PORTVERSION= 6.2.0
PORTREVISION?= 1
PORTREVISION?= 2
CATEGORIES?= multimedia
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
@ -38,8 +38,10 @@ PLIST_SUB= PORTVERSION="${PORTVERSION}"
PORTDOCS= AUTHORS ChangeLog NEWS README docs
PORTEXAMPLES= demo
OPTIONS_DEFINE= DOCS EXAMPLES FFMPEG FREI0R GTK2 JACK KDE4 QT4 \
OPTIONS_DEFINE= DOCS EXAMPLES FFMPEG FREI0R GTK2 JACK KDE4 \
SAMPLERATE SOX SWFDEC VDPAU VIDSTAB
OPTIONS_RADIO= QT
OPTIONS_RADIO_QT= QT4 QT5
OPTIONS_DEFAULT=FFMPEG FREI0R GTK2 QT4 SAMPLERATE SOX SWFDEC VDPAU VIDSTAB
OPTIONS_SUB= yes
@ -71,11 +73,8 @@ KDE4_CONFIGURE_WITH= kde
KDE4_USE= kde4=kdelibs
KDE4_IMPLIES= QT4
QT4_LIB_DEPENDS= libexif.so:graphics/libexif
QT4_USE= QT4=corelib,gui,opengl,svg,xml
QT4_CONFIGURE_ENABLE= qt
QT4_CONFIGURE_ON= --qt-libdir="${QT_LIBDIR}" \
--qt-includedir="${QT_INCDIR}"
QT5_USE= QT5=core,gui,opengl,svg,xml
SAMPLERATE_LIB_DEPENDS= libsamplerate.so:audio/libsamplerate
SAMPLERATE_CONFIGURE_ENABLE=resample
@ -99,6 +98,17 @@ VIDSTAB_CONFIGURE_ENABLE=vid.stab
BROKEN= does not compile on sparc64 (invokes i386 asm)
.endif
.if ${PORT_OPTIONS:MQT[45]}
LIB_DEPENDS+= libexif.so:graphics/libexif
CONFIGURE_ARGS+= --enable-qt \
--qt-libdir="${QT_LIBDIR}" \
--qt-includedir="${QT_INCDIR}"
PLIST_SUB+= QT=""
.else
CONFIGURE_ARGS+= --disable-qt
PLIST_SUB+= QT="@comment "
.endif
pre-configure:
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},' \
${WRKSRC}/src/modules/avformat/vdpau.c \

View File

@ -70,7 +70,7 @@ lib/mlt/libmltnormalize.so
lib/mlt/libmltoldfilm.so
lib/mlt/libmltplus.so
lib/mlt/libmltplusgpl.so
%%QT4%%lib/mlt/libmltqt.so
%%QT%%lib/mlt/libmltqt.so
%%SAMPLERATE%%lib/mlt/libmltresample.so
lib/mlt/libmltsdl.so
%%SOX%%lib/mlt/libmltsox.so
@ -397,13 +397,13 @@ man/man1/melt.1.gz
%%DATADIR%%/profiles/uhd_2160p_60
%%DATADIR%%/profiles/vcd_ntsc
%%DATADIR%%/profiles/vcd_pal
%%QT4%%%%DATADIR%%/qt/filter_audiospectrum.yml
%%QT4%%%%DATADIR%%/qt/filter_audiowaveform.yml
%%QT4%%%%DATADIR%%/qt/filter_lightshow.yml
%%QT4%%%%DATADIR%%/qt/producer_kdenlivetitle.yml
%%QT4%%%%DATADIR%%/qt/producer_qimage.yml
%%QT4%%%%DATADIR%%/qt/producer_qtext.yml
%%QT4%%%%DATADIR%%/qt/transition_vqm.yml
%%QT%%%%DATADIR%%/qt/filter_audiospectrum.yml
%%QT%%%%DATADIR%%/qt/filter_audiowaveform.yml
%%QT%%%%DATADIR%%/qt/filter_lightshow.yml
%%QT%%%%DATADIR%%/qt/producer_kdenlivetitle.yml
%%QT%%%%DATADIR%%/qt/producer_qimage.yml
%%QT%%%%DATADIR%%/qt/producer_qtext.yml
%%QT%%%%DATADIR%%/qt/transition_vqm.yml
%%SAMPLERATE%%%%DATADIR%%/resample/filter_resample.yml
%%DATADIR%%/sdl/consumer_sdl.yml
%%DATADIR%%/sdl/consumer_sdl_audio.yml