2002-10-25 12:30:36 +02:00
|
|
|
# $NetBSD: Makefile,v 1.12 2002/10/25 10:30:36 wiz Exp $
|
1999-10-11 07:48:24 +02:00
|
|
|
#
|
|
|
|
|
2000-07-29 05:12:19 +02:00
|
|
|
DISTNAME= speak_freely-7.2
|
|
|
|
PKGNAME= speakfreely-7.2
|
2000-01-17 17:02:33 +01:00
|
|
|
CATEGORIES= net audio
|
|
|
|
MASTER_SITES= http://www.fourmilab.ch/speakfree/unix/
|
1999-10-11 07:48:24 +02:00
|
|
|
|
2000-01-17 17:02:33 +01:00
|
|
|
MAINTAINER= johnam@mail.kemper.org
|
|
|
|
HOMEPAGE= http://www.fourmilab.ch/speakfree/unix/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= Internet "phone" for UNIX
|
2000-01-17 17:02:33 +01:00
|
|
|
|
2002-10-25 12:30:36 +02:00
|
|
|
USE_BUILDLINK2= YES
|
Reorganize crypto handling, as discussed on tech-pkg. Remove all
RESTRICTED= variables that were predicated on former U.S. export
regulations. Add CRYPTO=, as necessary, so it's still possible to
exclude all crypto packages from a build by setting MKCRYPTO=no
(but "lintpkgsrc -R" will no longer catch them).
Specifically,
- - All packages which set USE_SSL just lose their RESTRICTED
variable, since MKCRYPTO responds to USE_SSL directly.
- - realplayer7 and ns-flash keep their RESTRICTED, which is based
on license terms, but also gain the CRYPTO variable.
- - srp-client is now marked broken, since the distfile is evidently
no longer available. On this, we're no worse off than before.
[We haven't been mirroring the distfile, or testing the build!]
- - isakmpd gets CRYPTO for RESTRICTED, but remains broken.
- - crack loses all restrictions, as it does not evidently empower
a user to utilize strong encryption (working definition: ability
to encode a message that requires a secret key plus big number
arithmetic to decode).
2000-09-09 21:40:14 +02:00
|
|
|
NO_CONFIGURE= YES
|
|
|
|
USE_PERL5= YES
|
2000-01-17 17:02:33 +01:00
|
|
|
|
|
|
|
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"
|
|
|
|
HAVE_LIBCRYPTO= YES
|
2002-10-25 12:30:36 +02:00
|
|
|
.include "../../security/openssl/buildlink2.mk"
|
2000-04-27 05:29:42 +02:00
|
|
|
|
2000-01-17 17:02:33 +01:00
|
|
|
.if defined(USE_IDEA) && ${USE_IDEA} == "YES"
|
|
|
|
LICENSE= no-commercial-use
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SOUNDDIR= ${PREFIX}/share/speakfreely
|
2000-08-27 04:46:03 +02:00
|
|
|
MAKE_ENV+= PERL="${PERL5}" CCFLAGS="${CCFLAGS}" \
|
2000-01-17 17:02:33 +01:00
|
|
|
SOUNDDIR="${SOUNDDIR}"
|
|
|
|
MAKE_ENV+= USE_CRYPTO="${USE_CRYPTO}" HAVE_LIBCRYPTO="${HAVE_LIBCRYPTO}" \
|
2000-04-27 05:29:42 +02:00
|
|
|
SSLBASE="${SSLBASE}" USE_IDEA="${USE_IDEA}"
|
2000-01-17 17:02:33 +01:00
|
|
|
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}
|
|
|
|
|
2002-10-25 12:30:36 +02:00
|
|
|
.include "../../audio/gsm/buildlink2.mk"
|
2000-01-17 17:02:33 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|