aboutsummaryrefslogtreecommitdiff
path: root/deskutils
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-09-04 07:31:06 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-09-04 07:31:06 +0000
commitec41d3a06ed61a0e893f9266cae84b1bcb31be29 (patch)
treef4f93cfbae84bc8734db422db8139bb441e5afac /deskutils
parent0bd3d8c3af6ba46f0b3876f32ad0d8442ee9f7f1 (diff)
Notes
Diffstat (limited to 'deskutils')
-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 28a14422c247..5c98d807d2ea 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 kde:4 tar:bzip2
USE_KDE= 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) {