diff options
-rw-r--r-- | sysutils/xsysinfo/Makefile | 10 |
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> |