aboutsummaryrefslogtreecommitdiffstats
path: root/comms/soundmodem/Makefile
blob: 2adb28dd4646ad077203cbc39dfef7c92961e8e7 (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
# ports collection makefile for:    soundmodem
# Date created:     4 November 2006
# Whom:         db
#
# $FreeBSD$
#

PORTNAME=   soundmodem
PORTVERSION=    0.10
PORTREVISION=   3
CATEGORIES= comms hamradio
MASTER_SITES=   http://www.baycom.org/~tom/ham/soundmodem/ \
        http://chronos.org.uk/distfiles/

MAINTAINER= db@FreeBSD.org
COMMENT=    Amateur Radio sound modem

LIB_DEPENDS=    audiofile:${PORTSDIR}/audio/libaudiofile

CONFIGURE_ARGS= --disable-alsatest
WRKSRC=     ${WRKDIR}/${DISTNAME}
USE_GMAKE=  yes
HAS_CONFIGURE=  yes
ONLY_FOR_ARCHS= i386
USE_GNOME=  gtk12 libxml
MAN8=       soundmodem.8 soundmodemconfig.8
PLIST_FILES=    bin/soundmodemconfig etc/rc.d/soundmodem \
        include/modem.h include/simd.h sbin/soundmodem

pre-patch:
    @${CP} ${FILESDIR}/soundmodem ${WRKSRC}

post-patch:
    ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
        ${WRKSRC}/soundcard/soundmodem.8 \
        ${WRKSRC}/soundcard/main.c \
        ${WRKSRC}/configapp/src/soundmodemconfig.8 \
        ${WRKSRC}/configapp/src/main.c \
        ${WRKSRC}/soundmodem

post-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/soundmodem ${PREFIX}/etc/rc.d

.include <bsd.port.mk>