aboutsummaryrefslogtreecommitdiff
path: root/sysutils/flashrom
diff options
context:
space:
mode:
authorAlexander Logvinov <avl@FreeBSD.org>2011-06-27 05:42:34 +0000
committerAlexander Logvinov <avl@FreeBSD.org>2011-06-27 05:42:34 +0000
commit60deb0f2b9729d3485bab114ac57749113fc4b21 (patch)
tree382a5267f5aa961155c437ac9ff033564cef4cb1 /sysutils/flashrom
parentdc9c15e0ad17f0216a7515b1f9290ee3cc9837df (diff)
downloadports-60deb0f2b9729d3485bab114ac57749113fc4b21.tar.gz
ports-60deb0f2b9729d3485bab114ac57749113fc4b21.zip
- Make dmidecode an optional dependency
PR: ports/157540 Submitted by: Mark Johnston <markjdb at gmail.com>
Notes
Notes: svn path=/head/; revision=276480
Diffstat (limited to 'sysutils/flashrom')
-rw-r--r--sysutils/flashrom/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/sysutils/flashrom/Makefile b/sysutils/flashrom/Makefile
index 3ebca77447c2..714bca382ec1 100644
--- a/sysutils/flashrom/Makefile
+++ b/sysutils/flashrom/Makefile
@@ -7,6 +7,7 @@
PORTNAME= flashrom
PORTVERSION= 0.9.3
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://qa.coreboot.org/releases/
@@ -14,9 +15,9 @@ MAINTAINER= avl@FreeBSD.org
COMMENT= A utility for reading, writing, verifying and erasing flash ROM chips
LIB_DEPENDS= pci.3:${PORTSDIR}/devel/libpci
-RUN_DEPENDS= dmidecode:${PORTSDIR}/sysutils/dmidecode
-OPTIONS= FTDI "Enable external FT2232SPI flasher support" off
+OPTIONS= DMIDECODE "Use dmidecode to gather DMI information" on \
+ FTDI "Enable external FT2232SPI flasher support" off
USE_BZIP2= yes
USE_GMAKE= yes
@@ -35,6 +36,10 @@ MAN8= ${PORTNAME}.8
.include <bsd.port.options.mk>
+.if !defined(WITHOUT_DMIDECODE)
+RUN_DEPENDS= dmidecode:${PORTSDIR}/sysutils/dmidecode
+.endif
+
.if defined(WITH_FTDI)
USE_GNOME= pkgconfig
LIB_DEPENDS+= ftdi.18:${PORTSDIR}/devel/libftdi