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

(-)Makefile (-19 / +18 lines)
Lines 5-47 Link Here
5
# $FreeBSD: ports/misc/freeswitch-pizzademo/Makefile,v 1.5 2011/10/30 17:18:19 crees Exp $
5
# $FreeBSD: ports/misc/freeswitch-pizzademo/Makefile,v 1.5 2011/10/30 17:18:19 crees Exp $
6
#
6
#
7
7
8
PORTNAME=	freeswitch-pizza
8
PORTNAME=	freeswitch
9
PORTVERSION=	1.0.7.1
9
DISTVERSION=	1.2.rc2
10
PORTEPOCH=	1
10
PORTEPOCH=	1
11
CATEGORIES=	misc
11
CATEGORIES=	misc
12
MASTER_SITES=	http://dl.dropbox.com/u/152504/ \
12
MASTER_SITES=	http://files.freeswitch.org/
13
		http://files.freeswitch.org/:2
13
PKGNAMESUFFIX=  -pizzademo
14
DISTFILES=	${BASE_PORTNAME}-${PORTVERSION}.tar.gz \
14
DISTFILES=	${PORTNAME}-${DISTVERSION}.tar.bz2 \
15
		pizza_gram.tar.gz:2 \
15
		pizza_gram.tar.gz \
16
		pizza_sounds.tar.gz:2
16
		pizza_sounds.tar.gz
17
DIST_SUBDIR=	${BASE_PORTNAME}
17
DIST_SUBDIR=	${PORTNAME}
18
18
19
MAINTAINER=	r.neese@gmail.com
19
MAINTAINER=	r.neese@gmail.com
20
COMMENT=	FreeSwitch pizza demo
20
COMMENT=	FreeSwitch pizza demo
21
21
22
RUN_DEPENDS=    ${LOCALBASE}/bin/freeswitch:${PORTSDIR}/net/freeswitch-core \
22
RUN_DEPENDS=    ${LOCALBASE}/bin/freeswitch:${PORTSDIR}/net/freeswitch-core
23
		${LOCALBASE}/share/${BASE_PORTNAME}/sounds/.freeswitch-sounds:${PORTSDIR}/audio/freeswitch-sounds
24
23
25
NO_BUILD=	yes
24
NO_BUILD=	yes
26
25
27
BASE_PORTNAME=	freeswitch
26
BASE_PORTNAME=	freeswitch
28
27
29
WRKSRC=	${WRKDIR}/${BASE_PORTNAME}-${PORTVERSION}/scripts/javascript
28
WRKSRC=	${WRKDIR}/${PORTNAME}-${DISTVERSION}/scripts/javascript
30
29
31
pre-install:
30
post-patch:
32
	@${REINPLACE_CMD} -e 's|include("js_modules/SpeechTools.jm")|include("javascript/js_modules/SpeechTools.jm")|g' ${WRKSRC}/ps_pizza.js
31
	@${REINPLACE_CMD} -e 's|include("js_modules/SpeechTools.jm")|include("javascript/js_modules/SpeechTools.jm")|g' ${WRKSRC}/ps_pizza.js
33
	@${REINPLACE_CMD} -e 's|asr.setAudioBase("/root/pizza)|asr.setAudioBase("${PREFIX}/share/${BASE_PORTNAME}/sounds/en/us/callie/pizza/8000")|g' ${WRKSRC}/ps_pizza.js
32
	@${REINPLACE_CMD} -e 's|asr.setAudioBase("/root/pizza)|asr.setAudioBase("${PREFIX}/share/${PORTNAME}/sounds/pizza/8000")|g' ${WRKSRC}/ps_pizza.js
34
33
35
do-install:
34
do-install:
36
	@cd ${WRKDIR}; ${FIND} *.gram \
35
	@cd ${WRKDIR}; ${FIND} *.gram \
37
		| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/etc/${BASE_PORTNAME}/grammar/
36
		| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/etc/${PORTNAME}/grammar/
38
	@cd ${WRKDIR}/pizza/; ${FIND} *.wav \
37
	@cd ${WRKDIR}/pizza/; ${FIND} *.wav \
39
		| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/share/${BASE_PORTNAME}/sounds/en/us/callie/pizza/8000
38
		| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/share/${PORTNAME}/sounds/pizza/8000
40
	${TOUCH} ${PREFIX}/share/${BASE_PORTNAME}/sounds/.pizza
39
	${TOUCH} ${PREFIX}/share/${PORTNAME}/sounds/.pizza
41
	@${MKDIR} ${PREFIX}/etc/${BASE_PORTNAME}/scripts/javascript
40
	@${MKDIR} ${PREFIX}/etc/${PORTNAME}/scripts/javascript
42
	@cd ${WRKSRC}; ${FIND} ps_pizza.js \
41
	@cd ${WRKSRC}; ${FIND} ps_pizza.js \
43
		| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/etc/${BASE_PORTNAME}/scripts/javascript
42
		| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/etc/${PORTNAME}/scripts/javascript
44
	@cd ${WRKSRC}; ${FIND} js_modules \
43
	@cd ${WRKSRC}; ${FIND} js_modules \
45
		| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/etc/${BASE_PORTNAME}/scripts/javascript
44
		| ${CPIO} -pdm -R freeswitch:freeswitch ${PREFIX}/etc/${PORTNAME}/scripts/javascript
46
45
47
.include <bsd.port.mk>
46
.include <bsd.port.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-5 Link Here
1
SHA256 (freeswitch/freeswitch-1.0.7.1.tar.gz) = 180db5eb11bc35d383a143ee17ed15092ca1f0651afe93fe6fc2b7f7c35e4dbb
1
SHA256 (freeswitch/freeswitch-1.2.rc2.tar.bz2) = bbf9b3f6e7a7569b9594b5852d1b8a95266ef3276df222776ac84667adb6cc08
2
SIZE (freeswitch/freeswitch-1.0.7.1.tar.gz) = 36116764
2
SIZE (freeswitch/freeswitch-1.2.rc2.tar.bz2) = 38075354
3
SHA256 (freeswitch/pizza_gram.tar.gz) = e713406834ba40fe07c69b84f042fcb27493c15bc6b51133418527bc7a818027
3
SHA256 (freeswitch/pizza_gram.tar.gz) = e713406834ba40fe07c69b84f042fcb27493c15bc6b51133418527bc7a818027
4
SIZE (freeswitch/pizza_gram.tar.gz) = 1053
4
SIZE (freeswitch/pizza_gram.tar.gz) = 1053
5
SHA256 (freeswitch/pizza_sounds.tar.gz) = 606f736625b7f331e219e10460029c8e0b0e58136feeddde976a0dcc68a97bef
5
SHA256 (freeswitch/pizza_sounds.tar.gz) = 606f736625b7f331e219e10460029c8e0b0e58136feeddde976a0dcc68a97bef

Return to bug 167875