aboutsummaryrefslogtreecommitdiffstats
path: root/comms/soundmodem/Makefile
blob: 606154e5e02c6c329b31ffa4b55fb61877cb4d18 (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
# $FreeBSD$

PORTNAME=   soundmodem
PORTVERSION=    0.17
PORTREVISION=   2
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

LICENSE=    GPLv1

LIB_DEPENDS=    libaudiofile.so:${PORTSDIR}/audio/libaudiofile

CONFIGURE_ARGS= --disable-alsatest
WRKSRC=     ${WRKDIR}/${DISTNAME}
USES=       gmake pkgconfig gettext
HAS_CONFIGURE=  yes
USE_GNOME=  gtk20 libxml2

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 ${STAGEDIR}${PREFIX}/etc/rc.d

.include <bsd.port.mk>