summaryrefslogtreecommitdiffstats
path: root/sysutils/xsysinfo
diff options
context:
space:
mode:
authorgj <gj@FreeBSD.org>1998-09-30 19:24:49 +0000
committergj <gj@FreeBSD.org>1998-09-30 19:24:49 +0000
commit08362b5028b7134500ac64d5ef85ed34adeeb2cc (patch)
tree30d6f3ce9988dab70d0a6cecd9b273122ae0f952 /sysutils/xsysinfo
parent3ffca82871cdb36f3890ad17a865dca3e77f2c45 (diff)
downloadFreeBSD-ports-08362b5028b7134500ac64d5ef85ed34adeeb2cc.zip
FreeBSD-ports-08362b5028b7134500ac64d5ef85ed34adeeb2cc.tar.gz
Update xsysinfo to use libdevstat for CAM.
Unfortunately, the maintainer is currently doing his compulsory military service, so I'm committing this change without his OK.
Diffstat (limited to 'sysutils/xsysinfo')
-rw-r--r--sysutils/xsysinfo/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysutils/xsysinfo/Makefile b/sysutils/xsysinfo/Makefile
index 0ea4c86..230ee9d 100644
--- a/sysutils/xsysinfo/Makefile
+++ b/sysutils/xsysinfo/Makefile
@@ -3,7 +3,7 @@
# Date created: 4 April 1996
# Whom: jdli
#
-# $Id: Makefile,v 1.5 1996/12/10 20:07:18 obrien Exp $
+# $Id: Makefile,v 1.6 1997/01/08 01:22:22 asami Exp $
#
DISTNAME= xsysinfo-1.4
@@ -16,4 +16,12 @@ USE_IMAKE= yes
MANCOMPRESSED= yes
MAN1= xsysinfo.1
+pre-configure:
+ if [ -e /usr/lib/libdevstat.a ]; then \
+ cd ${WRKSRC} ; \
+ ${MV} Imakefile Imakefile.in ; \
+ ${SED} -e "s:DEFINES =:DEFINES = -DHAVE_DEVSTAT:" Imakefile.in > Imakefile.i1 ; \
+ ${SED} -e "s:-lkvm:-lkvm -ldevstat:" Imakefile.i1 > Imakefile ; \
+ fi
+
.include <bsd.port.mk>
OpenPOWER on IntegriCloud