1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Add LICENSE

- Fix build on 11.x

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2016-06-09 12:23:07 +00:00
parent 1396c58b57
commit 788a135f7c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=416595
2 changed files with 24 additions and 0 deletions

View File

@ -11,6 +11,9 @@ PKGNAMEPREFIX= kde4-style-
MAINTAINER= makc@FreeBSD.org
COMMENT= KDE style and window decoration
LICENSE= LGPL20+
LICENSE_FILE= ${WRKSRC}/COPYING.LIB
USE_KDE4= kdelibs automoc4
USE_QT4= qmake_build moc_build rcc_build uic_build
USES= cmake gettext tar:bzip2

View File

@ -0,0 +1,21 @@
abs is not needed, as AnimInfo::animFrame is unsigned
--- style/polyester.cpp.orig 2009-02-17 18:23:09 UTC
+++ style/polyester.cpp
@@ -216,7 +216,7 @@ void PolyesterStyle::animate()
if( animWidgets[widget].active == true ) {
mustStop = false;
- if(abs(animWidgets[widget].animFrame) < ANIMATIONSTEPS) {
+ if(animWidgets[widget].animFrame < ANIMATIONSTEPS) {
if ( _animateButton ) {
animWidgets[widget].animFrame += animationDelta;
widget->repaint();
@@ -225,7 +225,7 @@ void PolyesterStyle::animate()
}
}
} else {
- if(abs(animWidgets[widget].animFrame) > 0) {
+ if(animWidgets[widget].animFrame != 0) {
mustStop = false;
if ( _animateButton ) {
animWidgets[widget].animFrame -= animationDelta;