1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/accessibility/gnome-speech/Makefile
2007-04-09 17:37:55 +00:00

55 lines
1.3 KiB
Makefile

# New ports collection makefile for: gnomespeech
# Date created: 11 May 2003
# Whom: 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.11
CATEGORIES= accessibility audio gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= GNOME text-to-speech API
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= gnomehack libbonobo
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
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>
.if exists(${LOCALBASE}/lib/libespeak.so)
WITH_ESPEAK= yes
.endif
.if exists(${LOCALBASE}/bin/festival)
WITH_FESTIVAL= yes
.endif
.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
.if defined(WITH_FESTIVAL)
RUN_DEPENDS+= festival:${PORTSDIR}/audio/festival
.endif
post-patch:
@${REINPLACE_CMD} -e 's|== x|= x|g' \
${WRKSRC}/configure
.include <bsd.port.post.mk>