2003-09-18 09:01:13 +02:00
|
|
|
# New ports collection makefile for: gnomespeech
|
|
|
|
# Date created: 11 May 2003
|
|
|
|
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2006-10-14 10:35:50 +02:00
|
|
|
# $MCom: ports/accessibility/gnome-speech/Makefile,v 1.21 2006/08/22 00:55:57 ahze Exp $
|
2003-09-18 09:01:13 +02:00
|
|
|
#
|
|
|
|
|
2006-05-28 06:06:27 +02:00
|
|
|
PORTNAME= gnome-speech
|
2007-05-29 01:13:49 +02:00
|
|
|
PORTVERSION= 0.4.12
|
2004-01-22 09:56:43 +01:00
|
|
|
CATEGORIES= accessibility audio gnome
|
2003-09-18 09:01:13 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
2006-10-14 10:35:50 +02:00
|
|
|
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
2003-09-18 09:01:13 +02:00
|
|
|
DIST_SUBDIR= gnome2
|
|
|
|
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
COMMENT= GNOME text-to-speech API
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GNOME= gnomehack libbonobo
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-10-14 10:35:50 +02:00
|
|
|
USE_LDCONFIG= yes
|
2003-09-18 09:01:13 +02:00
|
|
|
CONFIGURE_ARGS= --enable-static
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-04-09 19:32:52 +02:00
|
|
|
.if exists(${LOCALBASE}/lib/libespeak.so)
|
|
|
|
WITH_ESPEAK= yes
|
|
|
|
.endif
|
|
|
|
|
2003-09-18 09:01:13 +02:00
|
|
|
.if exists(${LOCALBASE}/bin/festival)
|
|
|
|
WITH_FESTIVAL= yes
|
|
|
|
.endif
|
|
|
|
|
2007-04-09 19:32:52 +02:00
|
|
|
.if defined(WITH_ESPEAK)
|
|
|
|
LIB_DEPENDS+= espeak.1:${PORTSDIR}/audio/espeak
|
|
|
|
CONFIGURE_ARGS+=--with-espeak-dir=${LOCALBASE}
|
|
|
|
PLIST_SUB+= ESPEAK:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ESPEAK:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-09-18 09:01:13 +02:00
|
|
|
.if defined(WITH_FESTIVAL)
|
2007-04-09 19:32:52 +02:00
|
|
|
RUN_DEPENDS+= festival:${PORTSDIR}/audio/festival
|
2003-09-18 09:01:13 +02:00
|
|
|
.endif
|
|
|
|
|
2007-04-09 19:32:52 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|== x|= x|g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2003-09-18 09:01:13 +02:00
|
|
|
.include <bsd.port.post.mk>
|