aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormarkp <markp@FreeBSD.org>2003-02-01 09:29:32 +0800
committermarkp <markp@FreeBSD.org>2003-02-01 09:29:32 +0800
commit889805a96a9b9949d0f64b36daff198dc47f7f02 (patch)
tree2deb28c5f43db4de360a7952ec40767cc2edf469 /sysutils
parentfe58a913e3a29fb71698b1769dcb66c77bab862e (diff)
downloadfreebsd-ports-gnome-889805a96a9b9949d0f64b36daff198dc47f7f02.tar.gz
freebsd-ports-gnome-889805a96a9b9949d0f64b36daff198dc47f7f02.tar.zst
freebsd-ports-gnome-889805a96a9b9949d0f64b36daff198dc47f7f02.zip
Changed to use REINPLACE
Fixed build under 5.0 PR: 46528 Submitted by: Hendrik Scholz <hendrik@scholz.net>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/bubblemon-dockapp/Makefile11
-rw-r--r--sysutils/bubblemon-dockapp/files/patch-sys_freebsd.c10
2 files changed, 17 insertions, 4 deletions
diff --git a/sysutils/bubblemon-dockapp/Makefile b/sysutils/bubblemon-dockapp/Makefile
index c0e68ed939eb..0ddef6004fb2 100644
--- a/sysutils/bubblemon-dockapp/Makefile
+++ b/sysutils/bubblemon-dockapp/Makefile
@@ -13,6 +13,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/0$//}
MAINTAINER= markp@FreeBSD.org
+USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOMENG= yes
@@ -21,10 +22,12 @@ MAKE_ARGS+= PREFIX="${PREFIX}"
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
post-patch:
- ${PERL} -pi -e "s@CC = gcc@CC = ${CC}@g; s@-O3 -ansi -Wall@${CFLAGS} -Wall@g; \
- s@PREFIX = /usr/local@PREFIX = ${PREFIX}@g; \
- s@gtk-config@${GTK_CONFIG}@g; s@-lgtk@-lgtk12@g; \
- s@-c -g kmem -m 2755 -o root@-s -c -g kmem -m 2755 -o root@g" ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} -e "s@CC = gcc@CC = ${CC}@g; \
+ s@-O3 -ansi -Wall@${CFLAGS} -Wall@g; \
+ s@PREFIX = /usr/local@PREFIX = ${PREFIX}@g; \
+ s@gtk-config@${GTK_CONFIG}@g; s@-lgtk@-lgtk12@g; \
+ s@-c -g kmem -m 2755 -o root@-s -c -g kmem -m 2755 -o root@g" \
+ ${WRKSRC}/Makefile
post-install:
${MKDIR} ${EXAMPLESDIR}
diff --git a/sysutils/bubblemon-dockapp/files/patch-sys_freebsd.c b/sysutils/bubblemon-dockapp/files/patch-sys_freebsd.c
new file mode 100644
index 000000000000..aa87684edd5f
--- /dev/null
+++ b/sysutils/bubblemon-dockapp/files/patch-sys_freebsd.c
@@ -0,0 +1,10 @@
+--- sys_freebsd.c.orig Mon Apr 16 14:14:53 2001
++++ sys_freebsd.c Sat Feb 1 11:39:45 2003
+@@ -19,6 +19,7 @@
+
+ #include <kvm.h>
+ #include <fcntl.h>
++#include <sys/types.h>
+ #include <sys/dkstat.h>
+ #include <sys/vmmeter.h>
+ #include <stdlib.h>