aboutsummaryrefslogtreecommitdiffstats
path: root/audio/freeswitch-music/Makefile
blob: d4da890c2cd05fac31ab10dd42f6beb57ceebcbb (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
44
45
46
47
# Ports collection makefile for: freeswitch-sounds
# Date created: May 11, 2009
# Whom: Eric F Crist <ecrist@secure-computing.net>
#
# $FreeBSD$
#

PORTNAME=   freeswitch
PORTVERSION=    1.0.8
CATEGORIES= audio
MASTER_SITES=   http://files.freeswitch.org/
PKGNAMESUFFIX=  -music
DIST_SUBDIR=    freeswitch-music

MAINTAINER= ecrist@secure-computing.net
COMMENT=    FreeSwitch Music - All Bitrates

NO_WRKSUBDIR=   yes
NO_BUILD=   yes

OPTIONS=    8K           "Install 8000Hz Music" on \
        16K          "Install 16000Hz Music" on \
        32K          "Install 32000Hz Music" on \
        48K          "Install 48000Hz Music" on

.include <bsd.port.options.mk>
.if defined(WITH_8K)
DISTFILES+= ${PORTNAME}-sounds${PKGNAMESUFFIX}-8000-${PORTVERSION}${EXTRACT_SUFX}
.endif
.if defined(WITH_16K)
DISTFILES+= ${PORTNAME}-sounds${PKGNAMESUFFIX}-16000-${PORTVERSION}${EXTRACT_SUFX}
.endif
.if defined(WITH_32K)
DISTFILES+= ${PORTNAME}-sounds${PKGNAMESUFFIX}-32000-${PORTVERSION}${EXTRACT_SUFX}
.endif
.if defined(WITH_48K)
DISTFILES+= ${PORTNAME}-sounds${PKGNAMESUFFIX}-48000-${PORTVERSION}${EXTRACT_SUFX}
.endif

#RUN_DEPENDS+= freeswitch:${PORTSDIR}/net/freeswitch-core

do-install:
    @${ECHO_MSG} "Installing files..."
    ${MKDIR} ${PREFIX}/share/${PORTNAME}/sounds
    (cd ${WRKDIR} &&${COPYTREE_SHARE} \* ${DATADIR}/sounds/)

.include <bsd.port.mk>