aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-09-04 07:32:33 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-09-04 07:32:33 +0000
commit0e01173d56a3d0ab942861182a407db99dc443dd (patch)
tree4a2e6258f8329a064bece651f38b7b1071dc1c71
parent76fc62b40f2a35425d241b98784b5a2155bd93c3 (diff)
downloadports-0e01173d56a3d0ab942861182a407db99dc443dd.tar.gz
ports-0e01173d56a3d0ab942861182a407db99dc443dd.zip
MFH: r421307
- Fix build on 11+ - While here, fix LICENSE Approved by: portmgr blanket Approved by: ports-secteam blanket
Notes
Notes: svn path=/branches/2016Q3/; revision=421308
-rw-r--r--deskutils/plasma-applet-playwolf/Makefile5
-rw-r--r--deskutils/plasma-applet-playwolf/files/patch-wolflabel.cpp19
2 files changed, 22 insertions, 2 deletions
diff --git a/deskutils/plasma-applet-playwolf/Makefile b/deskutils/plasma-applet-playwolf/Makefile
index 44fe0822f8df..772680e59d8c 100644
--- a/deskutils/plasma-applet-playwolf/Makefile
+++ b/deskutils/plasma-applet-playwolf/Makefile
@@ -10,7 +10,8 @@ PKGNAMEPREFIX= plasma-applet-
MAINTAINER= jhale@FreeBSD.org
COMMENT= Amarok 2.x plasma applet for KDE4
-LICENSE= GPLv2
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake tar:bzip2
USE_KDE4= automoc4 kdelibs
@@ -32,7 +33,7 @@ ADD_NEWLINE_TO= flowlayout.cpp \
post-patch:
.for i in ${ADD_NEWLINE_TO}
- ${ECHO_CMD} >> ${WRKSRC}/${i}
+ @${ECHO_CMD} >> ${WRKSRC}/${i}
.endfor
.include <bsd.port.mk>
diff --git a/deskutils/plasma-applet-playwolf/files/patch-wolflabel.cpp b/deskutils/plasma-applet-playwolf/files/patch-wolflabel.cpp
new file mode 100644
index 000000000000..108d250c5a97
--- /dev/null
+++ b/deskutils/plasma-applet-playwolf/files/patch-wolflabel.cpp
@@ -0,0 +1,19 @@
+--- wolflabel.cpp.orig 2010-01-13 21:33:08 UTC
++++ wolflabel.cpp
+@@ -24,6 +24,7 @@
+ #include <QtGui/QGraphicsItemAnimation>
+ #include <QtGui/QGraphicsSceneResizeEvent>
+ #include <QtGui/QLabel>
++#include <QtCore/qmath.h>
+
+ #include <KIO/Job>
+ #include <KIO/NetAccess>
+@@ -195,7 +196,7 @@ void WolfLabel::paint(QPainter *painter,
+ m_animation->setPropertyName("xOffset");
+ m_animation->setTargetObject(this);
+ }
+- m_animation->setDuration((2 * abs(x) + SPACING) * 150);
++ m_animation->setDuration((2 * qFabs(x) + SPACING) * 150);
+ m_animation->setNewStartValue(x - SPACING);
+ m_animation->setNewEndValue(SPACING);
+ if (m_animation->state() != QAbstractAnimation::Running) {