Skip to content

Commit

Permalink
sysutils/xen-tools: improve ivshmem check
Browse files Browse the repository at this point in the history
There's no need to check twice for OPSYS, as there's already a check
for OPSYS being FreeBSD in the makefile.

Also bump the port revision.

Approved by: bapt (implicit)
  • Loading branch information
Roger Pau Monné authored and Roger Pau Monné committed May 20, 2021
1 parent db917ae commit 8790f67
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions sysutils/xen-tools/Makefile
@@ -1,7 +1,7 @@
PORTNAME= xen
PKGNAMESUFFIX= -tools
PORTVERSION= 4.15.0
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= sysutils emulators
MASTER_SITES= http://downloads.xenproject.org/release/xen/${PORTVERSION}/

Expand Down Expand Up @@ -58,12 +58,6 @@ DOCS_ALL_TARGET= docs
INSTALL_TARGET= install-tools
DOCS_INSTALL_TARGET= install-docs

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300000
PLIST_SUB+= IVSHMEM=""
.else
PLIST_SUB+= IVSHMEM="@comment "
.endif

.include <bsd.port.options.mk>

.if ${OPSYS} != FreeBSD
Expand All @@ -78,6 +72,13 @@ IGNORE= only supported on FreeBSD 12.0 or newer
BROKEN= SPICE support requires FreeBSD version 13.0 or higher
.endif

# ivshmem requires eventfd
.if ${OSVERSION} >= 1300000
PLIST_SUB+= IVSHMEM=""
.else
PLIST_SUB+= IVSHMEM="@comment "
.endif

post-patch:
@for p in `ls ${FILESDIR}/*qemuu*.patch 2>/dev/null`; do \
${ECHO_CMD} "====> Applying $${p##*/}" ; \
Expand Down

0 comments on commit 8790f67

Please sign in to comment.