summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-12-05 18:43:12 +0000
committerkrion <krion@FreeBSD.org>2004-12-05 18:43:12 +0000
commitab3ab13adb4dee8c675fe184d409939bb1fa215d (patch)
treee37e9d99b285a5beca8a0f38f0d6f60d87667edc
parent6735688758cc30851bb8e97a53e947a90632fa63 (diff)
downloadFreeBSD-ports-ab3ab13adb4dee8c675fe184d409939bb1fa215d.zip
FreeBSD-ports-ab3ab13adb4dee8c675fe184d409939bb1fa215d.tar.gz
Fix build on 6-current
PR: ports/74733 Submitted by: Ports Fury
-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 af7c5b5..b71b195 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 0000000..14dac69
--- /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>
OpenPOWER on IntegriCloud