aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2022-12-06 16:02:16 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2022-12-06 16:03:17 +0000
commitf7ed2f7db48d0836b87e67d68d79126cc7d2ad3a (patch)
treee6331a5a0ce054ab65313f8e2b5cf476682e29ca
parent8f6592a3ccd34d5c7c06e327c0aedabbfd5322eb (diff)
downloadports-f7ed2f7db48d0836b87e67d68d79126cc7d2ad3a.tar.gz
ports-f7ed2f7db48d0836b87e67d68d79126cc7d2ad3a.zip
sysutils/cbsd: simplify by switching to OPTIONS_SUB
Approved by: maintainer (semi-implicit)
-rw-r--r--sysutils/cbsd/Makefile15
1 files changed, 3 insertions, 12 deletions
diff --git a/sysutils/cbsd/Makefile b/sysutils/cbsd/Makefile
index 82e6aea5cbbe..9023134de9b7 100644
--- a/sysutils/cbsd/Makefile
+++ b/sysutils/cbsd/Makefile
@@ -28,7 +28,7 @@ USERS= ${PORTNAME}
GROUPS= ${PORTNAME}
OPTIONS_DEFINE= BHYVE_GOP
-OPTIONS_DEFAULT=
+OPTIONS_SUB= yes
BHYVE_GOP_DESC= Include bhyve UEFI firmware with GPU PPT+GOP support
CBSD_HOME?= ${PREFIX}/cbsd
@@ -36,9 +36,9 @@ CBSD_HOME?= ${PREFIX}/cbsd
.include <bsd.port.options.mk>
.if ${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH} == x86_64
-PLIST_SUB= X86=""
+PLIST_SUB+= X86=""
.else
-PLIST_SUB= X86="@comment "
+PLIST_SUB+= X86="@comment "
.endif
.if ${OPSYS} != FreeBSD
@@ -49,12 +49,6 @@ RUN_DEPENDS+= sysrc:sysutils/sysrc
PLIST_SUB+= FBSD=""
.endif
-.if !${PORT_OPTIONS:MBHYVE_GOP}
-PLIST_SUB+= BHYVE_GOP="@comment "
-.else
-PLIST_SUB+= BHYVE_GOP=""
-.endif
-
do-install:
@${ECHO} "Installing in ${CBSD_HOME}"
${MKDIR} ${STAGEDIR}${CBSD_HOME}
@@ -69,9 +63,6 @@ do-install:
${STAGEDIR}${PREFIX}/cbsd/sbin/src \
${STAGEDIR}${PREFIX}/cbsd/tools/src
${INSTALL_MAN} ${WRKSRC}/man/cbsd.8 ${STAGEDIR}${PREFIX}/man/man8/cbsd.8
-.if !${PORT_OPTIONS:MBHYVE_GOP}
- ${RM} -f ${STAGEDIR}${PREFIX}/cbsd/upgrade/patch/efigop.fd
-.endif
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/bsdconfig