blob: 601fa5574aab42b44b9a63618030f837a9b6eca0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# 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.25
CATEGORIES= accessibility audio gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= GNOME text-to-speech API
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= gnomehack gnomeprefix libbonobo
GNU_CONFIGURE= yes
WITH_FBSD10_FIX=yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --enable-static
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/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>
|