svn commit: r426941 - head/devel/libvirt
Roman Bogorodskiy
novel at FreeBSD.org
Wed Nov 23 16:39:04 UTC 2016
Author: novel
Date: Wed Nov 23 16:39:02 2016
New Revision: 426941
URL: https://svnweb.freebsd.org/changeset/ports/426941
Log:
devel/libvirt: improve tier-2 packaging
Add RUN_DEPEND on sysutils/dmidecode only on amd64 and i386 as it's
available only on these ARCHs. Also, bump PORTREVISION due to
dependencies change.
Submitted by: linimon
Reported by: linimon
Modified:
head/devel/libvirt/Makefile
Modified: head/devel/libvirt/Makefile
==============================================================================
--- head/devel/libvirt/Makefile Wed Nov 23 15:47:53 2016 (r426940)
+++ head/devel/libvirt/Makefile Wed Nov 23 16:39:02 2016 (r426941)
@@ -3,6 +3,7 @@
PORTNAME= libvirt
PORTVERSION= 2.4.0
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://libvirt.org/sources/ \
ftp://libvirt.org/libvirt/
@@ -18,8 +19,7 @@ LIB_DEPENDS= libcurl.so:ftp/curl \
libssh2.so:security/libssh2
BUILD_DEPENDS= dnsmasq:dns/dnsmasq \
xsltproc:textproc/libxslt
-RUN_DEPENDS= dnsmasq:dns/dnsmasq \
- dmidecode:sysutils/dmidecode
+RUN_DEPENDS= dnsmasq:dns/dnsmasq
OPTIONS_DEFINE= DOCS GNUTLS NLS NSS QEMU READLINE SASL
OPTIONS_DEFAULT= GNUTLS READLINE
@@ -163,4 +163,10 @@ post-install:
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == amd64 || ${ARCH} == i386
+RUN_DEPENDS+= dmidecode:${PORTSDIR}/sysutils/dmidecode
+.endif
+
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list