summaryrefslogtreecommitdiff
path: root/net/speakfreely/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/speakfreely/Makefile')
-rw-r--r--net/speakfreely/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/net/speakfreely/Makefile b/net/speakfreely/Makefile
new file mode 100644
index 00000000000..8d9ee171594
--- /dev/null
+++ b/net/speakfreely/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/10/11 05:48:24 jlam Exp $
+#
+
+DISTNAME= speak_freely-7.1
+PKGNAME= speakfreely-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/
+
+CONFLICTS= speakfreely-crypto-*
+
+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"