summaryrefslogtreecommitdiff
path: root/net/speakfreely/Makefile.common
blob: 7222e0f67a19ac13b88cb246892063d8737918df (plain)
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
# $NetBSD: Makefile.common,v 1.1 1999/10/26 16:45:16 jlam Exp $
#

DISTNAME=		speak_freely-7.1
CATEGORIES=		net audio
MASTER_SITES=		http://www.fourmilab.ch/speakfree/unix/

MAINTAINER=		johnam@mail.kemper.org
HOMEPAGE=		http://www.fourmilab.ch/speakfree/unix/

DEPENDS+=		gsm-1.0.10:../../audio/gsm

USE_PERL=		yes
PERL_PATH=		${LOCALBASE}/bin/perl

MIRROR_DISTFILE=	no			# source includes crypto code

NO_CONFIGURE=		yes

BUILD_DEFS+=		SPEAKFREELY_OPTIONS

.include "../../mk/bsd.prefs.mk"

# SPEAKFREELY_OPTIONS is a space-separated list of compile-time options
# to support.  Currently supported options:
#
#	halfduplex	for if sound card doesn't support full-duplex sound
#
SPEAKFREELY_OPTIONS?=   halfduplex

.if ${SPEAKFREELY_OPTIONS:Mhalfduplex} == "halfduplex"
CCFLAGS+=		-DHALF_DUPLEX
.endif

SOUNDDIR=		${PREFIX}/share/speakfreely
MAKE_ENV+=		PERL="${PERL_PATH}" CCFLAGS="${CCFLAGS}" \
			SOUNDDIR="${SOUNDDIR}" HAVE_GSM=yes
MAKE_ENV+=		HAVE_MD5=yes

post-extract:
	${MV} ${WRKSRC}/sfspeaker.1 ${WRKSRC}/sfspeaker.1.in

pre-build:
	${SED} -e "s,@SOUNDDIR@,${SOUNDDIR},g" ${WRKSRC}/sfspeaker.1.in \
		> ${WRKSRC}/sfspeaker.1

post-install:
	${INSTALL_DATA_DIR} ${SOUNDDIR}
	${INSTALL_DATA} ${WRKSRC}/busy.au ${SOUNDDIR}
	${INSTALL_DATA} ${WRKSRC}/ring.au ${SOUNDDIR}

.include "../../mk/bsd.pkg.mk"