diff options
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/plasma-applet-playwolf/Makefile | 5 | ||||
-rw-r--r-- | deskutils/plasma-applet-playwolf/files/patch-wolflabel.cpp | 19 |
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) { |