blob: 3a78e216f6a1e76651298caaabdda8f0c7a98259 (
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
|
# Created by: TAKAHASHI Kaoru <kaoru@kaisei.org>
# $FreeBSD$
PORTNAME= asterisk
PORTVERSION= 1.8
CATEGORIES= japanese net
MASTER_SITES= http://ftp.voip-info.jp/asterisk/sounds/${VENDORVERSION:S|.|_|}/ \
ftp://ftp.voip-info.jp/asterisk/sounds/${VENDORVERSION:S|.|_|}/
PKGNAMESUFFIX= -sounds
DISTNAME= asterisk-sound-jp_${VENDORVERSION:S|.||}_pre
MAINTAINER= kaoru@kaisei.org
COMMENT= Japanese sound files for Asterisk
RUN_DEPENDS= asterisk:${PORTSDIR}/net/asterisk
VENDORVERSION= 1.6
NO_BUILD= yes
ASTERISKDIR= ${PREFIX}/share/asterisk/sounds
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
SUB_FILES= pkg-message
SUB_LIST= PORTSDIR=${PORTSDIR}
NO_STAGE= yes
do-install:
@-${MKDIR} ${ASTERISKDIR}/ja
for gsm in ${WRKDIR}/ja/*.gsm; do \
${INSTALL_DATA} "$$gsm" ${ASTERISKDIR}/ja ; \
done
@${MKDIR} ${ASTERISKDIR}/ja/digits
for digitgsm in ${WRKDIR}/ja/digits/*.gsm; do \
${INSTALL_DATA} "$$digitgsm" ${ASTERISKDIR}/ja/digits ; \
done
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/ja
@cd ${WRKDIR}/ja && ${INSTALL_DATA} README.txt ${DOCSDIR}/ja
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|