aboutsummaryrefslogtreecommitdiffstats
path: root/accessibility/gnome-speech
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/gnome-speech')
-rw-r--r--accessibility/gnome-speech/Makefile41
1 files changed, 21 insertions, 20 deletions
diff --git a/accessibility/gnome-speech/Makefile b/accessibility/gnome-speech/Makefile
index 70e217980fbf..fe53fd9127a0 100644
--- a/accessibility/gnome-speech/Makefile
+++ b/accessibility/gnome-speech/Makefile
@@ -1,10 +1,6 @@
-# New ports collection makefile for: gnomespeech
-# Date created: 11 May 2003
-# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
-#
+# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
# $MCom: ports/accessibility/gnome-speech/Makefile,v 1.21 2006/08/22 00:55:57 ahze Exp $
-#
PORTNAME= gnome-speech
PORTVERSION= 0.4.25
@@ -17,37 +13,42 @@ COMMENT= GNOME text-to-speech API
USE_BZIP2= yes
USE_GMAKE= yes
-USE_GNOME= gnomehack gnomeprefix libbonobo
-GNU_CONFIGURE= yes
+USE_GNOME= gnomeprefix libbonobo
+USES= pathfix
+GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --enable-static
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= ESPEAK FESTIVAL
+ESPEAK_DESC= Espeak speech synthesizer support
+FESTIVAL_DESC= Festival speech synthesis support
-.if exists(${LOCALBASE}/lib/libespeak.so)
-WITH_ESPEAK= yes
-.endif
-
-.if exists(${LOCALBASE}/bin/festival)
-WITH_FESTIVAL= yes
-.endif
+.include <bsd.port.options.mk>
-.if defined(WITH_ESPEAK)
-LIB_DEPENDS+= espeak.1:${PORTSDIR}/audio/espeak
+.if ${PORT_OPTIONS:MESPEAK}
+LIB_DEPENDS+= espeak:${PORTSDIR}/audio/espeak
CONFIGURE_ARGS+=--with-espeak-dir=${LOCALBASE}
PLIST_SUB+= ESPEAK:=""
.else
PLIST_SUB+= ESPEAK:="@comment "
.endif
-.if defined(WITH_FESTIVAL)
+.if ${PORT_OPTIONS:MFESTIVAL}
RUN_DEPENDS+= festival:${PORTSDIR}/audio/festival
.endif
post-patch:
@${REINPLACE_CMD} -e 's|== x|= x|g' \
${WRKSRC}/configure
-
-.include <bsd.port.post.mk>
+ @${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
+ ${WRKSRC}/drivers/swift/*.[ch] \
+ ${WRKSRC}/drivers/dectalk/*.[ch] \
+ ${WRKSRC}/drivers/theta/*.[ch] \
+ ${WRKSRC}/drivers/eloquence/*.[ch] \
+ ${WRKSRC}/drivers/viavoice/*.[ch] \
+ ${WRKSRC}/drivers/loquendo/*.[ch] \
+ ${WRKSRC}/drivers/espeak/*.[ch]
+
+.include <bsd.port.mk>