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> |