mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
sysutils/cbsd: simplify by switching to OPTIONS_SUB
Approved by: maintainer (semi-implicit)
This commit is contained in:
parent
8f6592a3cc
commit
f7ed2f7db4
1 changed files with 3 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue