aboutsummaryrefslogtreecommitdiffstats
path: root/accessibility/gnome-speech
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2013-03-14 15:05:55 +0800
committerkwm <kwm@FreeBSD.org>2013-03-14 15:05:55 +0800
commit269374640cfc36c8340659f26d11da921e1c3ab4 (patch)
treeb57753a551580f9625d744df6535817575c02e8f /accessibility/gnome-speech
parent7bcf751b841ed0a665b48818d21f010daac3bd99 (diff)
downloadfreebsd-ports-gnome-269374640cfc36c8340659f26d11da921e1c3ab4.tar.gz
freebsd-ports-gnome-269374640cfc36c8340659f26d11da921e1c3ab4.tar.zst
freebsd-ports-gnome-269374640cfc36c8340659f26d11da921e1c3ab4.zip
Fix build with glib 2.34 when optional dependancy is enabled. [1]
While here, us USES=pathfix instead of gnomehack and convert to OptionsNG. PR: ports/176929 [1] Submitted by: Chris Torek <torek@torek.net>
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>