aboutsummaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-02-08 12:30:24 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-02-08 12:30:24 +0000
commit34c392ec48f05f91998697156c12fadfe08f91f5 (patch)
treef0f89550082c1528c3da64a5fe06f006dd46f381 /accessibility
parenta2f27a2dd08d053a5d152f1849eabd15f98bfd34 (diff)
downloadports-34c392ec48f05f91998697156c12fadfe08f91f5.tar.gz
ports-34c392ec48f05f91998697156c12fadfe08f91f5.zip
Notes
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/gnome-speech/Makefile26
1 files changed, 8 insertions, 18 deletions
diff --git a/accessibility/gnome-speech/Makefile b/accessibility/gnome-speech/Makefile
index b7326523c888..10fce6f04ac0 100644
--- a/accessibility/gnome-speech/Makefile
+++ b/accessibility/gnome-speech/Makefile
@@ -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>
-
-.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
-
-.if ${PORT_OPTIONS:MFESTIVAL}
-RUN_DEPENDS+= festival:${PORTSDIR}/audio/festival
-PLIST_SUB+= FESTIVAL=""
-.else
-CONFIGURE_ARGS+=--without-festival
-PLIST_SUB+= FESTIVAL="@comment "
-.endif
+OPTIONS_SUB= yes
+
+ESPEAK_LIB_DEPENDS= libespeak.so:${PORTSDIR}/audio/espeak
+ESPEAK_CONFIGURE_ON=--with-espeak-dir=${LOCALBASE}
+ESPEAK_CONFIGURE_OFF=--without-espeak
+
+FESTIVAL_RUN_DEPENDS= festival:${PORTSDIR}/audio/festival
+FESTIVAL_CONFIGURE_OFF=--without-festival
post-patch:
@${REINPLACE_CMD} -e 's|== x|= x|g' \