47369ef416
using patented IDEA algorithm. Uses two new make variables which may be defined in mk.conf: USE_CRYPTO: YES, NO USE_IDEA: YES, NO Defaults to building with crypto but without IDEA.
80 lines
2.1 KiB
Makefile
80 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.3 2000/01/17 16:02:33 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/
|
|
|
|
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 USE_CRYPTO USE_IDEA
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
USE_CRYPTO?= YES
|
|
USE_IDEA?= NO
|
|
|
|
# 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
|
|
|
|
.if defined(USE_CRYPTO) && ${USE_CRYPTO} == "YES"
|
|
.if exists (/usr/include/openssl/blowfish.h)
|
|
HAVE_LIBCRYPTO= YES
|
|
OPENSSLDIR= /usr
|
|
.else
|
|
#
|
|
# We have a choice of either using the included sources for crypto or to simply
|
|
# DEPEND on security/openssl. Not sure which is the right way to go, so for
|
|
# now, just DEPEND on security/openssl.
|
|
#
|
|
#HAVE_LIBCRYPTO= NO
|
|
HAVE_LIBCRYPTO= YES
|
|
OPENSSLDIR= ${LOCALBASE}
|
|
DEPENDS+= openssl-*:../../security/openssl
|
|
.endif
|
|
RESTRICTED= "Crypto; export-controlled"
|
|
.if defined(USE_IDEA) && ${USE_IDEA} == "YES"
|
|
LICENSE= no-commercial-use
|
|
.endif
|
|
.endif
|
|
|
|
SOUNDDIR= ${PREFIX}/share/speakfreely
|
|
MAKE_ENV+= PERL="${PERL_PATH}" CCFLAGS="${CCFLAGS}" \
|
|
SOUNDDIR="${SOUNDDIR}"
|
|
MAKE_ENV+= USE_CRYPTO="${USE_CRYPTO}" HAVE_LIBCRYPTO="${HAVE_LIBCRYPTO}" \
|
|
OPENSSLDIR="${OPENSSLDIR}" USE_IDEA="${USE_IDEA}"
|
|
MAKE_ENV+= HAVE_GSM=YES HAVE_MD5=YES
|
|
MAKE_ENV+= DOMAIN=
|
|
|
|
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"
|