aboutsummaryrefslogtreecommitdiffstats
path: root/audio/rat/Makefile
blob: 56e90fc6f5ce8898ffc50fc4567620e4891c928d (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
48
49
50
51
52
53
54
55
56
57
58
# New ports collection makefile for:  rat
# Date created:               3 July 1999
# Whom:                   O.Hodson@cs.ucl.ac.uk (Orion Hodson)
#
# $FreeBSD$
#

PORTNAME=   rat
PORTVERSION=    4.2.25
PORTREVISION=   1
CATEGORIES= mbone audio ipv6 tk83
MASTER_SITES=                                     \
    http://www-mice.cs.ucl.ac.uk/multimedia/software/rat/releases/${PORTVERSION}/ \
    http://www.icir.org/hodson/ucl-mirror/

MAINTAINER= ports@FreeBSD.org
COMMENT=    IPv4/v6 Multicast and unicast audio conferencing tool

TCLTK_VERSION=  8.3
LIB_DEPENDS=    tk83.1:${PORTSDIR}/x11-toolkits/tk83

USE_AUTOCONF=   yes
USE_GMAKE=  yes
MAN1=       rat.1
MANCOMPRESSED=  no

RAT_BUILD_DIRS= common rat
RAT=        ${PORTNAME}-${PORTVERSION}
RAT_SCRIPT= ${PORTNAME}
PLIST_SUB=  PORTVERSION=${PORTVERSION}

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 400014
ENABLE_IPv6=    --enable-ipv6
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/rat/${RAT} ${PREFIX}/bin/${RAT}
    ${INSTALL_PROGRAM} ${WRKSRC}/rat/${RAT}-ui ${PREFIX}/bin/${RAT}-ui
    ${INSTALL_PROGRAM} ${WRKSRC}/rat/${RAT}-media ${PREFIX}/bin/${RAT}-media
    ${INSTALL_SCRIPT} ${WRKSRC}/rat/${RAT_SCRIPT} ${PREFIX}/bin/${RAT_SCRIPT}
    ${INSTALL_MAN}  ${WRKSRC}/rat/man/man1/rat.1 ${PREFIX}/man/man1
    ${MKDIR} ${LOCALBASE}/etc/sdr/plugins
    ${INSTALL_DATA} ${WRKSRC}/rat/sdr2.plugin.S02.audio.rtp.*.${RAT} ${LOCALBASE}/etc/sdr/plugins

do-build:
    cd ${WRKSRC}/common/src && ${GMAKE}
    cd ${WRKSRC}/rat && ${GMAKE}

run-autotools:
    @${DO_NADA}

do-configure:
    cd ${WRKSRC}/common && ${AUTOCONF} && ./configure ${CONFIGURE_ARGS} ${ENABLE_IPv6}
    cd ${WRKSRC}/rat && ${AUTOCONF} && ./configure ${CONFIGURE_ARGS} --with-tcl=${LOCALBASE} --with-tk=${LOCALBASE} ${ENABLE_IPv6} --with-tcltk-version=${TCLTK_VERSION}

.include <bsd.port.post.mk>