Use options helpers
This commit is contained in:
parent
a2f27a2dd0
commit
34c392ec48
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378645
1 changed files with 6 additions and 16 deletions
|
@ -24,24 +24,14 @@ OPTIONS_DEFINE= ESPEAK FESTIVAL
|
|||
ESPEAK_DESC= Espeak speech synthesizer support
|
||||
FESTIVAL_DESC= Festival speech synthesis support
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
.if ${PORT_OPTIONS:MESPEAK}
|
||||
LIB_DEPENDS+= libespeak.so:${PORTSDIR}/audio/espeak
|
||||
CONFIGURE_ARGS+=--with-espeak-dir=${LOCALBASE}
|
||||
PLIST_SUB+= ESPEAK:=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--without-espeak
|
||||
PLIST_SUB+= ESPEAK:="@comment "
|
||||
.endif
|
||||
ESPEAK_LIB_DEPENDS= libespeak.so:${PORTSDIR}/audio/espeak
|
||||
ESPEAK_CONFIGURE_ON=--with-espeak-dir=${LOCALBASE}
|
||||
ESPEAK_CONFIGURE_OFF=--without-espeak
|
||||
|
||||
.if ${PORT_OPTIONS:MFESTIVAL}
|
||||
RUN_DEPENDS+= festival:${PORTSDIR}/audio/festival
|
||||
PLIST_SUB+= FESTIVAL=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--without-festival
|
||||
PLIST_SUB+= FESTIVAL="@comment "
|
||||
.endif
|
||||
FESTIVAL_RUN_DEPENDS= festival:${PORTSDIR}/audio/festival
|
||||
FESTIVAL_CONFIGURE_OFF=--without-festival
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|== x|= x|g' \
|
||||
|
|
Loading…
Reference in a new issue