View | Details | Raw Unified | Return to bug 173807
Collapse All | Expand All

(-)speech-dispatcher/Makefile (-27 / +23 lines)
Lines 1-7 Link Here
1
# New ports collection makefile for:	speech-dispatcher
1
# Created by: Alberto Villa <villa.alberto@gmail.com>
2
# Date created:				8 December 2009
3
# Whom:					Alberto Villa <villa.alberto@gmail.com>
4
#
5
# $FreeBSD$
2
# $FreeBSD$
6
3
7
PORTNAME=	speech-dispatcher
4
PORTNAME=	speech-dispatcher
Lines 16-23 Link Here
16
LICENSE=	GPLv2 LGPL21
13
LICENSE=	GPLv2 LGPL21
17
LICENSE_COMB=	multi
14
LICENSE_COMB=	multi
18
15
19
LIB_DEPENDS=	dotconf.0:${PORTSDIR}/devel/dotconf \
16
LIB_DEPENDS=	dotconf:${PORTSDIR}/devel/dotconf \
20
		sndfile.1:${PORTSDIR}/audio/libsndfile
17
		sndfile:${PORTSDIR}/audio/libsndfile
21
18
22
# gnomehier is required because of share/sounds directory.
19
# gnomehier is required because of share/sounds directory.
23
USE_GNOME=	glib20 gnomehier pkgconfig
20
USE_GNOME=	glib20 gnomehier pkgconfig
Lines 42-71 Link Here
42
39
43
INFO=		spd-say ${PORTNAME} ssip
40
INFO=		spd-say ${PORTNAME} ssip
44
41
45
OPTIONS=	ALSA	"ALSA support" off \
42
OPTIONS_DEFINE=	ALSA ESPEAK FESTIVAL FLITE FLITE LIBAO NAS PULSEAUDIO PYTHON
46
		ESPEAK	"eSpeak output module" on \
43
OPTIONS_DEFAULT=	ESPEAK
47
		FESTIVAL	"Festival output module" off \
48
		FLITE	"Festival Lite output module" off \
49
		LIBAO	"libao support" off \
50
		NAS	"Network Audio System support" off \
51
		PULSEAUDIO	"PulseAudio support" off \
52
		PYTHON	"Python support" off
53
44
45
ESPEAK_DESC=	eSpeak output module
46
FESTIVAL_DESC=	Festival output module
47
FLITE_DESC=	Festival Lite output module
48
LIBAO_DESC=	libao support
49
54
.include <bsd.port.options.mk>
50
.include <bsd.port.options.mk>
55
51
56
.if ${OSVERSION} < 800067 && ${ARCH} == "amd64"
52
.if ${OSVERSION} < 800067 && ${ARCH} == "amd64"
57
CFLAGS+=	-fPIC
53
CFLAGS+=	-fPIC
58
.endif
54
.endif
59
55
60
.ifdef(WITH_ALSA)
56
.if ${PORT_OPTIONS:MALSA}
61
LIB_DEPENDS+=	asound.2:${PORTSDIR}/audio/alsa-lib
57
LIB_DEPENDS+=	asound:${PORTSDIR}/audio/alsa-lib
62
CONFIGURE_ARGS+=	--with-alsa
58
CONFIGURE_ARGS+=	--with-alsa
63
.else
59
.else
64
CONFIGURE_ARGS+=	--without-alsa
60
CONFIGURE_ARGS+=	--without-alsa
65
.endif
61
.endif
66
62
67
.ifndef(WITHOUT_ESPEAK)
63
.if ${PORT_OPTIONS:MESPEAK}
68
LIB_DEPENDS+=	espeak.1:${PORTSDIR}/audio/espeak
64
LIB_DEPENDS+=	espeak:${PORTSDIR}/audio/espeak
69
CONFIGURE_ARGS+=	--with-espeak
65
CONFIGURE_ARGS+=	--with-espeak
70
PLIST_SUB+=	ESPEAK=""
66
PLIST_SUB+=	ESPEAK=""
71
.else
67
.else
Lines 73-84 Link Here
73
PLIST_SUB+=	ESPEAK="@comment "
69
PLIST_SUB+=	ESPEAK="@comment "
74
.endif
70
.endif
75
71
76
.ifdef(WITH_FESTIVAL)
72
.if ${PORT_OPTIONS:MFESTIVAL}
77
RUN_DEPENDS+=	festival:${PORTSDIR}/audio/festival \
73
RUN_DEPENDS+=	festival:${PORTSDIR}/audio/festival \
78
		${LOCALBASE}/share/festival/lib/${PORTNAME}.scm:${PORTSDIR}/audio/festival-freebsoft-utils
74
		${LOCALBASE}/share/festival/lib/${PORTNAME}.scm:${PORTSDIR}/audio/festival-freebsoft-utils
79
.endif
75
.endif
80
76
81
.ifdef(WITH_FLITE)
77
.if ${PORT_OPTIONS:MFLITE}
82
BUILD_DEPENDS+=	flite:${PORTSDIR}/audio/flite
78
BUILD_DEPENDS+=	flite:${PORTSDIR}/audio/flite
83
RUN_DEPENDS+=	flite:${PORTSDIR}/audio/flite
79
RUN_DEPENDS+=	flite:${PORTSDIR}/audio/flite
84
CONFIGURE_ARGS+=	--with-flite
80
CONFIGURE_ARGS+=	--with-flite
Lines 88-115 Link Here
88
PLIST_SUB+=	FLITE="@comment "
84
PLIST_SUB+=	FLITE="@comment "
89
.endif
85
.endif
90
86
91
.ifdef(WITH_LIBAO)
87
.if ${PORT_OPTIONS:MLIBAO}
92
LIB_DEPENDS+=	ao.4:${PORTSDIR}/audio/libao
88
LIB_DEPENDS+=	ao:${PORTSDIR}/audio/libao
93
CONFIGURE_ARGS+=	--with-libao
89
CONFIGURE_ARGS+=	--with-libao
94
.else
90
.else
95
CONFIGURE_ARGS+=	--without-libao
91
CONFIGURE_ARGS+=	--without-libao
96
.endif
92
.endif
97
93
98
.ifdef(WITH_NAS)
94
.if ${PORT_OPTIONS:MNAS}
99
LIB_DEPENDS+=	audio.2:${PORTSDIR}/audio/nas
95
LIB_DEPENDS+=	audio:${PORTSDIR}/audio/nas
100
CONFIGURE_ARGS+=	--with-nas
96
CONFIGURE_ARGS+=	--with-nas
101
.else
97
.else
102
CONFIGURE_ARGS+=	--without-nas
98
CONFIGURE_ARGS+=	--without-nas
103
.endif
99
.endif
104
100
105
.if defined(WITH_PULSEAUDIO) && ${OSVERSION} >= 700041
101
.if ${PORT_OPTIONS:MPULSEAUDIO} && ${OSVERSION} >= 700041
106
LIB_DEPENDS+=	pulse.0:${PORTSDIR}/audio/pulseaudio
102
LIB_DEPENDS+=	pulse:${PORTSDIR}/audio/pulseaudio
107
CONFIGURE_ARGS+=	--with-pulse
103
CONFIGURE_ARGS+=	--with-pulse
108
.else
104
.else
109
CONFIGURE_ARGS+=	--without-pulse
105
CONFIGURE_ARGS+=	--without-pulse
110
.endif
106
.endif
111
107
112
.ifdef(WITH_PYTHON)
108
.if ${PORT_OPTIONS:MPYTHON}
113
USE_PYTHON=	2.5+
109
USE_PYTHON=	2.5+
114
CONFIGURE_ARGS+=	--enable-python
110
CONFIGURE_ARGS+=	--enable-python
115
PLIST_SUB+=	PYTHON=""
111
PLIST_SUB+=	PYTHON=""

Return to bug 173807