aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/gkrelltop
diff options
context:
space:
mode:
authornovel <novel@FreeBSD.org>2005-08-29 05:15:04 +0800
committernovel <novel@FreeBSD.org>2005-08-29 05:15:04 +0800
commit70b83106a3a04eaa87725bc668fef4c1ab857262 (patch)
tree286cdf29593178d2d763c5749fff61c11eebec16 /sysutils/gkrelltop
parentb109e5f7e16889a6ac66800fa333cc3046de1e28 (diff)
downloadfreebsd-ports-gnome-70b83106a3a04eaa87725bc668fef4c1ab857262.tar.gz
freebsd-ports-gnome-70b83106a3a04eaa87725bc668fef4c1ab857262.tar.zst
freebsd-ports-gnome-70b83106a3a04eaa87725bc668fef4c1ab857262.zip
Fix build on 4.x.
PR: 84560 Submitted by: Pawel Pekala <c0rn@gazeta.pl> Approved by: David <david@pinko.net> (maintainer)
Diffstat (limited to 'sysutils/gkrelltop')
-rw-r--r--sysutils/gkrelltop/Makefile10
-rw-r--r--sysutils/gkrelltop/files/patch-gkrelltop.c20
2 files changed, 22 insertions, 8 deletions
diff --git a/sysutils/gkrelltop/Makefile b/sysutils/gkrelltop/Makefile
index c93f5ff25ec5..36a677255206 100644
--- a/sysutils/gkrelltop/Makefile
+++ b/sysutils/gkrelltop/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gkrelltop
PORTVERSION= 2.2.6
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= http://psychology.rutgers.edu/~zaimi/html/gkrelltop/
DISTNAME= ${PORTNAME}_2.2-6
@@ -27,13 +27,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_FILES= libexec/gkrellm2/plugins/gkrelltop.so \
libexec/gkrellm2/plugins/gkrelltopd.so
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-BROKEN= "Does not compile on FreeBSD 4.x"
-.endif
-
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/sysutils/gkrelltop/files/patch-gkrelltop.c b/sysutils/gkrelltop/files/patch-gkrelltop.c
new file mode 100644
index 000000000000..3d9c9e88597a
--- /dev/null
+++ b/sysutils/gkrelltop/files/patch-gkrelltop.c
@@ -0,0 +1,20 @@
+--- gkrelltop.c.orig Thu Aug 4 21:08:58 2005
++++ gkrelltop.c Thu Aug 4 21:09:34 2005
+@@ -324,7 +324,8 @@
+ TextStyle *ts, *ts_alt;
+ gint y;
+ gint i;
+-
++ GkrellmPiximage *krell_image = NULL;
++
+ /* See comments about first create in demo2.c
+ */
+ if (first_create)
+@@ -335,7 +336,6 @@
+ ts = gkrellm_meter_textstyle(style_id); //smaller font e brighter col
+ ts_alt = gkrellm_meter_alt_textstyle(style_id); //smaller font e brighter col
+
+- GkrellmPiximage *krell_image = NULL;
+ //krell_image = gkrellm_krell_meter_piximage(style_id);
+ gkrellm_load_piximage("krell_panel1", krell_panel1_xpm, &krell_image, STYLE_NAME);
+ /*