From 6c7187533f08e6408d3110a5a1374bfca33a8339 Mon Sep 17 00:00:00 2001 From: "Tobias C. Berner" Date: Mon, 15 Aug 2016 17:46:33 +0000 Subject: [PATCH] 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 --- multimedia/mlt/Makefile | 22 ++++++++++++++++------ multimedia/mlt/pkg-plist | 16 ++++++++-------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/multimedia/mlt/Makefile b/multimedia/mlt/Makefile index 91cf088e9b1b..97f7186ea22b 100644 --- a/multimedia/mlt/Makefile +++ b/multimedia/mlt/Makefile @@ -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 \ diff --git a/multimedia/mlt/pkg-plist b/multimedia/mlt/pkg-plist index e9897f26ec10..b8062640ce8b 100644 --- a/multimedia/mlt/pkg-plist +++ b/multimedia/mlt/pkg-plist @@ -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