aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/sysinfo
diff options
context:
space:
mode:
authordanger <danger@FreeBSD.org>2009-05-05 23:02:51 +0800
committerdanger <danger@FreeBSD.org>2009-05-05 23:02:51 +0800
commitaeedaa70fbe3372d9a24a2ca434f65e4bcfa0c30 (patch)
treeca7bd7e11d4aeb758092034f48c203baec83e1a7 /sysutils/sysinfo
parent0809b0282bfad814173cd5adc1b48d9fe6aef794 (diff)
downloadfreebsd-ports-gnome-aeedaa70fbe3372d9a24a2ca434f65e4bcfa0c30.tar.gz
freebsd-ports-gnome-aeedaa70fbe3372d9a24a2ca434f65e4bcfa0c30.tar.zst
freebsd-ports-gnome-aeedaa70fbe3372d9a24a2ca434f65e4bcfa0c30.zip
- add the OPTIONS section
Approved by: itetcu
Diffstat (limited to 'sysutils/sysinfo')
-rw-r--r--sysutils/sysinfo/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysutils/sysinfo/Makefile b/sysutils/sysinfo/Makefile
index 7886b060680c..403640443fe8 100644
--- a/sysutils/sysinfo/Makefile
+++ b/sysutils/sysinfo/Makefile
@@ -18,6 +18,14 @@ COMMENT= Utility used to gather system configuration information
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+OPTIONS= DMIDECODE "Include information from the dmidecode tool" Off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_DMIDECODE)
+RUN_DEPENDS= dmidecode:${PORTSDIR}/sysutils/dmidecode
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|common.subr|${DATADIR}/common.subr|g' ${WRKSRC}/sysinfo
@${REINPLACE_CMD} -e 's|sysinfo.conf|${PREFIX}/etc/sysinfo.conf|g' ${WRKSRC}/sysinfo
@@ -37,4 +45,4 @@ post-install:
${CP} -p ${PREFIX}/etc/sysinfo.conf.sample ${PREFIX}/etc/sysinfo.conf ; \
fi
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>