aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/asterisk-sounds/Makefile
blob: 8a416a0fdce3379a69d5b50db19e3815a00b6139 (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
# Created by: TAKAHASHI Kaoru <kaoru@kaisei.org>
# $FreeBSD$

PORTNAME=   asterisk
PORTVERSION=    1.8
PORTREVISION=   1
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= ports@FreeBSD.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}

OPTIONS_DEFINE= DOCS

do-install:
    @-${MKDIR} ${STAGEDIR}${ASTERISKDIR}/ja
    for gsm in ${WRKDIR}/ja/*.gsm; do \
        ${INSTALL_DATA} "$$gsm" ${STAGEDIR}${ASTERISKDIR}/ja ; \
    done
    @${MKDIR} ${STAGEDIR}${ASTERISKDIR}/ja/digits
    for digitgsm in ${WRKDIR}/ja/digits/*.gsm; do \
        ${INSTALL_DATA} "$$digitgsm" ${STAGEDIR}${ASTERISKDIR}/ja/digits ; \
    done
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/ja
    @cd ${WRKDIR}/ja && ${INSTALL_DATA} README.txt ${STAGEDIR}${DOCSDIR}/ja

.include <bsd.port.mk>