aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authortcberner <tcberner@FreeBSD.org>2018-01-17 19:40:31 +0800
committertcberner <tcberner@FreeBSD.org>2018-01-17 19:40:31 +0800
commita60c7f78e105a7b8dd841abe708d1a46b4f1c340 (patch)
tree10048775bfb78f6a30de4b4a48194fe1948066aa /multimedia
parent3967b8ed4e7c81ffb8bb9021077ccf9f89f16b8a (diff)
downloadfreebsd-ports-gnome-a60c7f78e105a7b8dd841abe708d1a46b4f1c340.tar.gz
freebsd-ports-gnome-a60c7f78e105a7b8dd841abe708d1a46b4f1c340.tar.zst
freebsd-ports-gnome-a60c7f78e105a7b8dd841abe708d1a46b4f1c340.zip
multimedia/k9copy-kde4, fix build with clan6
* add patch to use NoSearchOptions instead of false * add USES=localbase PR: 224669
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/k9copy-kde4/Makefile4
-rw-r--r--multimedia/k9copy-kde4/files/patch-src_core_k9tools.cpp15
2 files changed, 17 insertions, 2 deletions
diff --git a/multimedia/k9copy-kde4/Makefile b/multimedia/k9copy-kde4/Makefile
index b87fbfb92ac9..f6aa75db8038 100644
--- a/multimedia/k9copy-kde4/Makefile
+++ b/multimedia/k9copy-kde4/Makefile
@@ -3,7 +3,7 @@
PORTNAME= k9copy
PORTVERSION= 2.3.4
-PORTREVISION= 15
+PORTREVISION= 16
CATEGORIES= multimedia kde
MASTER_SITES= LOCAL/rakuco
DISTNAME= ${PORTNAME}-${PORTVERSION}-Source
@@ -17,7 +17,7 @@ LIB_DEPENDS= libxine.so:multimedia/libxine \
libmpeg2.so:multimedia/libmpeg2 \
libavcodec0.so:multimedia/ffmpeg0
-USES= cmake gettext kde:4
+USES= cmake gettext kde:4 localbase
USE_KDE= kdelibs automoc4
USE_QT4= moc_build qmake_build rcc_build uic_build
diff --git a/multimedia/k9copy-kde4/files/patch-src_core_k9tools.cpp b/multimedia/k9copy-kde4/files/patch-src_core_k9tools.cpp
new file mode 100644
index 000000000000..c2b71f9a90ba
--- /dev/null
+++ b/multimedia/k9copy-kde4/files/patch-src_core_k9tools.cpp
@@ -0,0 +1,15 @@
+src/core/k9tools.cpp:59:54: error: no viable conversion from 'bool'
+ to 'KStandardDirs::SearchOptions' (aka 'QFlags<KStandardDirs::SearchOption>'
+ bool res= KStandardDirs::findExe( _progName,NULL,false) !=NULL ;
+
+--- src/core/k9tools.cpp.orig 2018-01-17 11:30:09 UTC
++++ src/core/k9tools.cpp
+@@ -56,7 +56,7 @@ bool k9Tools::checkProgram(QString _progName,bool _msg
+ }
+ return false;
+ #else
+- bool res= KStandardDirs::findExe( _progName,NULL,false) !=NULL ;
++ bool res= KStandardDirs::findExe( _progName,NULL, KStandardDirs::SearchOption::NoSearchOptions) !=NULL ;
+ if (_msg && !res)
+ k9Dialogs::error(i18n("Error starting program %1").arg(_progName),i18n("Running program"));
+ return res;