aboutsummaryrefslogtreecommitdiffstats
path: root/x11/rsibreak
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2006-03-22 01:48:46 +0800
committerale <ale@FreeBSD.org>2006-03-22 01:48:46 +0800
commit8c9fa8b09c6f2227718e5008ae78c4685985cc49 (patch)
treed85884475a2dadcfdf52a933759a522a4b7aab33 /x11/rsibreak
parentfea7d91cc5f9d550710c77d0fd665813bb8fec12 (diff)
downloadfreebsd-ports-graphics-8c9fa8b09c6f2227718e5008ae78c4685985cc49.tar.gz
freebsd-ports-graphics-8c9fa8b09c6f2227718e5008ae78c4685985cc49.tar.zst
freebsd-ports-graphics-8c9fa8b09c6f2227718e5008ae78c4685985cc49.zip
Hopefully unbreak on FreeBSD 4.
Diffstat (limited to 'x11/rsibreak')
-rw-r--r--x11/rsibreak/Makefile8
-rw-r--r--x11/rsibreak/files/patch-rsibreak_src_rsiwidget.cpp19
2 files changed, 20 insertions, 7 deletions
diff --git a/x11/rsibreak/Makefile b/x11/rsibreak/Makefile
index 41b84fb773d..09a9c435cdd 100644
--- a/x11/rsibreak/Makefile
+++ b/x11/rsibreak/Makefile
@@ -19,14 +19,8 @@ USE_KDELIBS_VER=3
USE_AUTOTOOLS= libtool:15
USE_GETTEXT= yes
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-BROKEN= Doesn't compile on FreeBSD 4.X
-.endif
-
post-patch:
@${REINPLACE_CMD} 's/install-data-local: install-apidox/install-data-local:/' \
${WRKSRC}/rsibreak/Makefile.in ${WRKSRC}/rsibreak/src/Makefile.in
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/x11/rsibreak/files/patch-rsibreak_src_rsiwidget.cpp b/x11/rsibreak/files/patch-rsibreak_src_rsiwidget.cpp
new file mode 100644
index 00000000000..20cd32f25ca
--- /dev/null
+++ b/x11/rsibreak/files/patch-rsibreak_src_rsiwidget.cpp
@@ -0,0 +1,19 @@
+--- rsibreak/src/rsiwidget.cpp.orig Tue Mar 21 18:38:48 2006
++++ rsibreak/src/rsiwidget.cpp Tue Mar 21 18:39:14 2006
+@@ -41,6 +41,7 @@
+
+ #include <stdlib.h>
+ #include <math.h>
++#include <time.h>
+
+ #include "rsiwidget.h"
+ #include "rsitimer.h"
+@@ -235,7 +236,7 @@
+
+ QDir dir( folder);
+
+- if ( !dir.exists() or !dir.isReadable() )
++ if ( !dir.exists() || !dir.isReadable() )
+ {
+ kdWarning() << "Folder does not exist or is not readable: "
+ << folder << endl;