aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/asterisk-sound/Makefile
blob: cfb752867d0d8cedd06ef78e4b12dc956de48c55 (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
# New ports collection makefile for:    asterisk-sounds-jp
# Date created:             27 June 2007
# Whom:     Fumihiko Kimura <jfkimura@yahoo.co.jp>
#
# $FreeBSD$
#

PORTNAME=   asterisk-sounds
PORTVERSION=    1.4
PORTREVISION=   5
CATEGORIES= japanese net
MASTER_SITES=   ftp://ftp.voip-info.jp/asterisk/sounds/
DISTNAME=   ${PORTVERSION:S|.|_|}/${PORTNAME:S|sounds|sound|}-jp_${PORTVERSION:S|.||}_beta

MAINTAINER= jfkimura@yahoo.co.jp
COMMENT=    Japanese sound files for Asterisk

RUN_DEPENDS=    asterisk:${PORTSDIR}/net/asterisk

NO_BUILD=   yes
ASTERISKSDIR=   ${LOCALBASE}/share/asterisk/sounds

do-install:
    @-${MKDIR} ${ASTERISKSDIR}
    @${CP} -pR ${WRKDIR}/jp ${ASTERISKSDIR}
    @${MKDIR} ${DOCSDIR}
    @${CP} -pv ${WRKDIR}/jp/README.txt ${DOCSDIR}

post-install:
    @cd ${WRKDIR} && ${FIND} ./jp -type f -o -type l | ${SED} -e 's,^\.,${ASTERISKSDIR:S|${LOCALBASE}/||},' > ${TMPPLIST}
    @cd ${WRKDIR} && ${FIND} ./jp -type d -depth  | ${SED} -e 's,^\.,@dirrm ${ASTERISKSDIR:S|${LOCALBASE}/||},' >> ${TMPPLIST}
    @${ECHO} ${DOCSDIR:S|${LOCALBASE}/||}/README.txt >> ${TMPPLIST}
    @${ECHO} "@dirrm" ${DOCSDIR:S|${LOCALBASE}/||}  >> ${TMPPLIST}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>