2007-05-05 23:31:09 +02:00
|
|
|
# $NetBSD: Makefile,v 1.75 2007/05/05 21:31:09 markd Exp $
|
1998-05-18 11:18:28 +02:00
|
|
|
|
2007-05-05 23:31:09 +02:00
|
|
|
DISTNAME= nas-1.9.src
|
2000-08-04 03:31:55 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/.src//}
|
1998-05-18 11:18:28 +02:00
|
|
|
CATEGORIES= audio
|
2004-10-28 15:38:52 +02:00
|
|
|
MASTER_SITES= http://nas.codebrilliance.com/nas/ \
|
2004-11-23 09:50:23 +01:00
|
|
|
ftp://ftp.uni-duisburg.de/Sound/NAS/
|
1998-05-18 11:18:28 +02:00
|
|
|
|
2005-04-07 14:38:02 +02:00
|
|
|
MAINTAINER= markd@NetBSD.org
|
2000-08-04 03:31:55 +02:00
|
|
|
HOMEPAGE= http://radscan.com/nas.html
|
2001-02-16 14:30:32 +01:00
|
|
|
COMMENT= Network Audio System
|
1998-05-21 22:23:51 +02:00
|
|
|
|
2004-04-18 00:48:06 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2007-05-02 14:51:43 +02:00
|
|
|
# 1) uses dia library before it is built
|
|
|
|
# 2) make succeeds even with failures, making this problem non-obvious
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2004-11-23 09:50:23 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
2007-03-24 14:45:05 +01:00
|
|
|
USE_TOOLS+= gmake
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_IMAKE= yes
|
2000-08-04 03:31:55 +02:00
|
|
|
|
Update of nas to 1.6.
pkgsrc changes: PKG_SYSCONFised.
changes: bug fixes and ...
1.5h 10/12/2002
- Added SoundFileGetProc() to get access to the toSound and
fromSound Procs in _SoundFileInfo[]. Needed for xemacs.
- Added AudioLibraryVersionMajor, AudioLibraryVersionMinor,
and AudioLibraryVersionTeeny to audiolib.h. Somewhat more
informative than just the old AudioLibraryVersion which was
set a '2'. The older AudioLibraryVersion define is still
there however.
1.5g 10/7/2002
- changed inputsection defaults in nasd.conf.eg to 44.1Khz, 2
channel 16b sound.
outputsection also defaults to 44.1Khz now, instead of 33Khz.
- began some CC ANSI'fication of libaudio.
1.5f 8/26/2002
7/20/2002
- added cygwinArchitecture to the server Imakefile so
auvoxware will be built on cygwin systems.
- Removed the SoundFileInfo[] array in sound.h so cygwin would
be happy. Apps should not have been accessing that array
directly anyways.
Added the following new functions to sound.c (that used to
be macros in sound.h):
SoundFileFormatString, SoundValidDataFormat,
SoundFileFormatToString, SoundFileFormatToAbbrev,
SoundFileFormatToSuffixes
Assuming your code did not attempt to directly access
SoundFileInfo[], no changes should be required.
libaudio.so revision bumped to 2.3
- re-added back the Xtutils stuff, as some of the demos did in
fact require it. cygwin has a problem with implicitly
defined functions anyway.
7/9/2002
- rename dia/nasconfig.* to dia/nasconf.* to avoid name
collision with NasConfig.h on windows systems.
1.5e 7/7/2002
- added patch from Nicolas Escuder that adds support for
Windows operating systems using Cygwin. Even the NAS server
is now supported. There are still issues with building
regarding Imake, but once I can get more information, I'll
fix those up.
Read the README.CYGWIN file in the nas/ directory for
instructions. I will provide a link on the nas-links page
to precompiled windows binaries for libaudio.dll, nasd, and
some clients - provided by Nicolas.
- based on idea from Nicolas, added background (-b) mode to
nasd, to force it to run in the background. Actually, he
supplied a patch, but I just redid it to work properly with unix
systems.
- added NAS_AUDIOMSGFILE in config/NasConfig.h to specify
where audio messages are stored (ADMPATH in os/osinit.c).
1.5d 6/1/2002
- added .ps -> .pdf conversions in doc/pdf/
- added html versions of man pages in doc/html/
1.5c 3/27/2002
- removed Xtutil[hc] from libaudio and removed references to
Xtutil.h in the clients. Suggestion by Paul Fox.
1.5b 3/16/2002
- added patch from Marco Molteni to add a '-local' option to
nasd. Specifying this option allows only local clients to
connect.
- moved allow_any_host into the NasConfig struct. Along with
the new '-local' option.
1.5a 2/23/2002
- more STARTSERVER fixes - there was still one case where when
STARTSERVER was defined, nasd could be called with the wrong
display number due to a bug in _AuConnectServer.
- changed LEX/YACC DEBUG token to CDEBUG to avoid conflicts
when building nas with '-DDEBUG'
- DEFAULT_AUSERVER is now ":0" rather than
"tcp/localhost:8000". A local socket connection will startup
faster than a tcp connection.
- mutex.h
- corrected unixware 7.x build problem
(XMUTEX_INITIALIZER) in mutex.h
- added same check for sun/solaris boxes
- got rid of XUSE_MTSAFE_API - now controlled by
NAS_USEMTSAFEAPI defined in config/NasConfig.h
If you think you are having mutex problems, you can
edit config/NasConfig.h and '#undef'
NAS_USEMTSAFEAPI, then rebuild everthing. This will
turn off threadsafety in libaudio.
- added new option, 'gain', to config file in the input/output
sections. This sets the default gains when nasd starts up
(if MixerInit is enabled). Only in voxware for now.
2002-11-28 12:40:45 +01:00
|
|
|
PKG_SYSCONFSUBDIR= nas
|
|
|
|
|
2006-07-12 19:21:52 +02:00
|
|
|
SUBST_CLASSES+= sysconf
|
2006-04-02 04:07:38 +02:00
|
|
|
SUBST_STAGE.sysconf= pre-configure
|
|
|
|
SUBST_FILES.sysconf= config/NetAudio.def
|
|
|
|
SUBST_SED.sysconf= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
|
|
|
|
|
2006-07-12 19:21:52 +02:00
|
|
|
SUBST_CLASSES+= ossaudio
|
2006-04-02 04:07:38 +02:00
|
|
|
SUBST_STAGE.ossaudio= pre-configure
|
|
|
|
SUBST_FILES.ossaudio= server/nasd.conf.eg server/dda/voxware/auvoxware.c
|
|
|
|
SUBST_SED.ossaudio= -e "s|@DEVOSSAUDIO@|${DEVOSSAUDIO}|g"
|
|
|
|
|
2006-07-12 19:21:52 +02:00
|
|
|
SUBST_CLASSES+= mungeman
|
2006-04-02 04:07:38 +02:00
|
|
|
SUBST_STAGE.mungeman= pre-configure
|
|
|
|
SUBST_FILES.mungeman= config/mungeman
|
|
|
|
SUBST_SED.mungeman= -e 's|^ *\#|\#|g'
|
2003-12-18 20:09:31 +01:00
|
|
|
|
2005-01-21 22:40:43 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2006-07-08 02:30:26 +02:00
|
|
|
.if defined(UNPRIVILEGED) && !empty(UNPRIVILEGED:M[Yy][Ee][Ss])
|
|
|
|
SUBST_CLASSES+= owngrp
|
|
|
|
SUBST_MESSAGE.owngrp= Fixing hardcoded owner/group.
|
|
|
|
SUBST_STAGE.owngrp= post-configure
|
2006-07-10 01:58:42 +02:00
|
|
|
SUBST_FILES.owngrp= clients/audio/auconvert/Makefile \
|
|
|
|
clients/audio/auctl/Makefile \
|
|
|
|
clients/audio/audemo/Makefile \
|
|
|
|
clients/audio/audial/Makefile \
|
|
|
|
clients/audio/auedit/Makefile \
|
|
|
|
clients/audio/auinfo/Makefile \
|
|
|
|
clients/audio/aupanel/Makefile \
|
|
|
|
clients/audio/auphone/Makefile \
|
|
|
|
clients/audio/auplay/Makefile \
|
|
|
|
clients/audio/aurecord/Makefile \
|
|
|
|
clients/audio/autool/Makefile \
|
|
|
|
clients/audio/auwave/Makefile \
|
|
|
|
clients/audio/examples/Makefile \
|
|
|
|
clients/audio/util/Makefile \
|
|
|
|
clients/audio/widgets/Makefile \
|
2006-07-08 02:30:26 +02:00
|
|
|
clients/audio/Makefile \
|
|
|
|
clients/Makefile config/Makefile doc/Makefile \
|
|
|
|
doc/man/lib/Makefile doc/man/Makefile \
|
|
|
|
include/audio/Makefile include/Makefile \
|
2006-07-10 01:58:42 +02:00
|
|
|
lib/Makefile lib/audio/Makefile \
|
2006-07-08 02:30:26 +02:00
|
|
|
Makefile server/Makefile
|
|
|
|
SUBST_SED.owngrp= -e 's/-c -o root -g wheel/-c -o ${UNPRIVILEGED_USER} -g ${UNPRIVILEGED_GROUP}/g'
|
|
|
|
.endif
|
|
|
|
|
2005-06-05 01:43:51 +02:00
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
post-install:
|
2006-06-17 13:47:47 +02:00
|
|
|
${LN} -s ${PREFIX}/lib/libaudio.so.2.4 ${PREFIX}/lib/libaudio.so.2
|
2005-06-05 01:43:51 +02:00
|
|
|
.endif
|
|
|
|
|
2000-09-13 20:03:30 +02:00
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST.clients
|
2005-01-21 22:40:43 +01:00
|
|
|
|
2007-01-28 21:18:30 +01:00
|
|
|
.if ${OPSYS} != "Darwin" && ${OPSYS} != "Interix"
|
2007-01-27 21:56:18 +01:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.server
|
2002-12-03 10:13:39 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples/nas
|
|
|
|
CONF_FILES= ${EGDIR}/nasd.conf.eg ${PKG_SYSCONFDIR}/nasd.conf
|
2007-01-27 21:56:18 +01:00
|
|
|
|
|
|
|
. if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || \
|
|
|
|
${OPSYS} == "DragonFly" || ${OPSYS} == "Linux" || ${OPSYS} == "UnixWare"
|
|
|
|
. include "../../mk/oss.buildlink3.mk"
|
2005-06-05 01:43:51 +02:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.voxware
|
2005-01-21 22:40:43 +01:00
|
|
|
. endif
|
2000-09-13 20:03:30 +02:00
|
|
|
.endif
|
|
|
|
|
2006-07-08 01:20:20 +02:00
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC}/config && ${SETENV} ${CONFIGURE_ENV} ./configure
|
|
|
|
|
2006-12-27 14:37:35 +01:00
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
.include "../../x11/libXaw/buildlink3.mk"
|
|
|
|
.include "../../x11/libXp/buildlink3.mk"
|
|
|
|
|
1998-05-18 11:18:28 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|