aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-12-05 18:43:12 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-12-05 18:43:12 +0000
commit48c8dc65fcd300a8afa523f3f34e9669a3673e4c (patch)
tree680b8706fee03f1387e9efe60b0469a4ec2818a0 /sysutils
parentedb8841271c8714d5ee4d4268dc75d92c5429b0c (diff)
downloadports-48c8dc65fcd300a8afa523f3f34e9669a3673e4c.tar.gz
ports-48c8dc65fcd300a8afa523f3f34e9669a3673e4c.zip
Fix build on 6-current
PR: ports/74733 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=123256
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/asmem/Makefile11
-rw-r--r--sysutils/asmem/files/patch-read_mem.c10
2 files changed, 13 insertions, 8 deletions
diff --git a/sysutils/asmem/Makefile b/sysutils/asmem/Makefile
index af7c5b54b37a..b71b195e3d35 100644
--- a/sysutils/asmem/Makefile
+++ b/sysutils/asmem/Makefile
@@ -16,17 +16,12 @@ COMMENT= An AfterStep look-n-feel memory utilization monitor
USE_X_PREFIX= yes
USE_XPM= yes
GNU_CONFIGURE= yes
+
MAN1= asmem.1
PLIST_FILES= bin/asmem
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 600000
-BROKEN= "Does not compile on FreeBSD >= 6.x"
-.endif
-
do-install:
${INSTALL_PROGRAM} -g kmem -m 2755 ${WRKSRC}/asmem ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/asmem.man ${PREFIX}/man/man1/asmem.1
+ ${INSTALL_MAN} ${WRKSRC}/asmem.man ${MANPREFIX}/man/man1/asmem.1
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/sysutils/asmem/files/patch-read_mem.c b/sysutils/asmem/files/patch-read_mem.c
new file mode 100644
index 000000000000..14dac69d7d15
--- /dev/null
+++ b/sysutils/asmem/files/patch-read_mem.c
@@ -0,0 +1,10 @@
+--- read_mem.c.dist Fri Sep 19 01:06:01 2003
++++ read_mem.c Tue Nov 30 18:52:06 2004
+@@ -56,6 +56,7 @@
+ // Machine dependent headers
+ // FreeBSD
+ #if defined(__FreeBSD__)
++#include <sys/param.h>
+ #include <sys/conf.h>
+ #include <osreldate.h>
+ #include <kvm.h>