From 269374640cfc36c8340659f26d11da921e1c3ab4 Mon Sep 17 00:00:00 2001 From: kwm Date: Thu, 14 Mar 2013 07:05:55 +0000 Subject: 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 --- accessibility/gnome-speech/Makefile | 41 +++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 20 deletions(-) (limited to 'accessibility/gnome-speech') 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 -# +# Created by: Joe Marcus Clarke # $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 +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 -.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 + @${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 -- cgit