diff options
author | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2000-03-30 03:28:07 +0000 |
---|---|---|
committer | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2000-03-30 03:28:07 +0000 |
commit | e3bbb3138e127f742a0fba92d12a6c376dddb231 (patch) | |
tree | d05dc7e87869f0a9f5d1f0b1667fbeec5f45abff /audio/nas | |
parent | Update port to 1.6p0 (diff) |
Update port to 1.4
Add WWW
PR: 17645
Submitted by: tkato@prontomail.ne.jp
Notes
Notes:
svn path=/head/; revision=27135
Diffstat (limited to 'audio/nas')
-rw-r--r-- | audio/nas/Makefile | 24 | ||||
-rw-r--r-- | audio/nas/distinfo | 2 | ||||
-rw-r--r-- | audio/nas/files/patch-ab | 54 | ||||
-rw-r--r-- | audio/nas/files/patch-ac | 24 | ||||
-rw-r--r-- | audio/nas/files/patch-ad | 66 | ||||
-rw-r--r-- | audio/nas/files/patch-ae | 44 | ||||
-rw-r--r-- | audio/nas/files/patch-af | 9 | ||||
-rw-r--r-- | audio/nas/pkg-descr | 12 | ||||
-rw-r--r-- | audio/nas/pkg-message | 11 | ||||
-rw-r--r-- | audio/nas/pkg-plist | 9 |
10 files changed, 130 insertions, 125 deletions
diff --git a/audio/nas/Makefile b/audio/nas/Makefile index e4ae9fe683a8..41899d5d78bb 100644 --- a/audio/nas/Makefile +++ b/audio/nas/Makefile @@ -1,16 +1,17 @@ # New ports collection makefile for: nas (formerly netaudio) -# Version required: 1.2p1 +# Version required: 1.4 # Date created: 03 Nov 1994 # Whom: jkh # # $FreeBSD$ # -DISTNAME= nas-1.2p5 -PKGNAME= nas-1.2.5 +DISTNAME= nas-1.4 CATEGORIES= audio -MASTER_SITES= ${MASTER_SITE_XCONTRIB} +MASTER_SITES= ${MASTER_SITE_XCONTRIB} \ + http://radscan.com/nas/ MASTER_SITE_SUBDIR= audio/nas +EXTRACT_SUFX= .src.tar.gz MAINTAINER= ports@FreeBSD.org @@ -19,10 +20,9 @@ ALL_TARGET= World # no need to "xmkmf -a" and create the Makefiles twice -- see above XMKMF= xmkmf -MAN1= AUVoxConfig.1 auconvert.1 auctl.1 audemo.1 audial.1 auedit.1 auinfo.1 \ - aupanel.1 auphone.1 auplay.1 aurecord.1 auscope.1 auserver.1 autool.1 \ - auvoxware.1 auwave.1 checkmail.1 issndfile.1 nas.1 playbucket.1 \ - soundtoh.1 +MAN1= auconvert.1 auctl.1 audemo.1 audial.1 auedit.1 auinfo.1 aupanel.1 \ + auphone.1 auplay.1 aurecord.1 auscope.1 autool.1 auvoxware.1 auwave.1 \ + checkmail.1 issndfile.1 nas.1 playbucket.1 soundtoh.1 MAN3= AuAnyEvent.3 AuBucketAttributes.3 AuCloseServer.3 \ AuConvertDataToShort.3 AuConvertShortToData.3 AuCreateBucket.3 \ AuCreateFlow.3 AuDataFormats.3 AuDataTypes.3 AuDefineToFormat.3 \ @@ -69,4 +69,12 @@ MAN3= AuAnyEvent.3 AuBucketAttributes.3 AuCloseServer.3 \ SoundReadFile.3 SoundRewindFile.3 SoundSeekFile.3 \ SoundStringToFileFormat.3 SoundTellFile.3 SoundWriteFile.3 +post-patch: + @find ${WRKSRC} -name '*.[ch]' | xargs \ + ${PERL} -pi -e "s|<malloc.h>|<stdlib.h>|g" + +post-install: + ${LDCONFIG} -m ${PREFIX}/lib + @${CAT} ${PKGMESSAGE} + .include <bsd.port.mk> diff --git a/audio/nas/distinfo b/audio/nas/distinfo index 194e2d00b7c9..83cfa7cb2482 100644 --- a/audio/nas/distinfo +++ b/audio/nas/distinfo @@ -1 +1 @@ -MD5 (nas-1.2p5.tar.gz) = 27c7118347dd71dd32a7f27d7e6d44bc +MD5 (nas-1.4.src.tar.gz) = 8b9280377d0ad404afbaa5a93f213bc5 diff --git a/audio/nas/files/patch-ab b/audio/nas/files/patch-ab index df614f791471..4758d9d13c27 100644 --- a/audio/nas/files/patch-ab +++ b/audio/nas/files/patch-ab @@ -1,16 +1,38 @@ -*** server/dda/voxware/auvoxware.c.orig Thu Nov 3 11:24:11 1994 ---- server/dda/voxware/auvoxware.c Thu Nov 3 11:24:50 1994 -*************** -*** 755,760 **** ---- 755,765 ---- - /* - * Setup soundcard at maximum audio quality. - */ -+ -+ #ifdef __FreeBSD__ -+ #define NO_16_BIT_SAMPLING -+ #endif -+ - static void setupSoundcard(sndStatPtr) - SndStat* sndStatPtr; - { +--- server/dda/voxware/auvoxware.c.orig Sun Mar 5 11:40:55 2000 ++++ server/dda/voxware/auvoxware.c Sat Mar 25 15:18:36 2000 +@@ -610,7 +610,11 @@ + + if(sndStatOut.fd == -1) + { ++#ifdef __FreeBSD__ ++ while ((sndStatOut.fd = open(sndStatOut.device, O_RDWR)) == -1 && wait) ++#else + while ((sndStatOut.fd = open(sndStatOut.device, O_RDWR|O_SYNC)) == -1 && wait) ++#endif + { + osLogMsg("openDevice: waiting on output device\n"); + sleep(1); +@@ -1230,6 +1234,11 @@ + /* + * Setup soundcard at maximum audio quality. + */ ++ ++#ifdef __FreeBSD__ ++#define NO_16_BIT_SAMPLING ++#endif ++ + static void setupSoundcard(sndStatPtr) + SndStat* sndStatPtr; + { +@@ -1380,7 +1389,11 @@ + + AL_initialized = AuTrue; + ++#ifdef __FreeBSD__ ++ if ((fd = open(sndStatOut.device, O_RDWR, 0)) == -1) { ++#else + if ((fd = open(sndStatOut.device, O_RDWR|O_SYNC, 0)) == -1) { ++#endif + UNIDENTMSG; + return AuFalse; + } diff --git a/audio/nas/files/patch-ac b/audio/nas/files/patch-ac index 67ce9ac3f3b6..afba11d7fcf9 100644 --- a/audio/nas/files/patch-ac +++ b/audio/nas/files/patch-ac @@ -1,12 +1,12 @@ -*** ./lib/audio/Astreams.c.orig Thu Nov 3 11:58:30 1994 ---- ./lib/audio/Astreams.c Thu Nov 3 11:58:52 1994 -*************** -*** 52,58 **** - #include <sys/stropts.h> - - extern int errno; -- extern char *sys_errlist[]; - - /* stolen from <X11/Xproto.h> */ - typedef struct { ---- 52,57 ---- +--- lib/audio/Astreams.c.orig Sun May 9 10:10:05 1999 ++++ lib/audio/Astreams.c Sat Mar 25 15:20:42 2000 +@@ -52,7 +52,9 @@ + #include <sys/stropts.h> + + extern int errno; ++#if !defined(BSD) + extern char *sys_errlist[]; ++#endif + + /* stolen from <X11/Xproto.h> */ + typedef struct { diff --git a/audio/nas/files/patch-ad b/audio/nas/files/patch-ad index 06c979d270ef..36336b371ef2 100644 --- a/audio/nas/files/patch-ad +++ b/audio/nas/files/patch-ad @@ -1,55 +1,11 @@ -*** clients/audio/auedit/Graph.c.orig Wed Dec 6 10:11:03 1995 ---- clients/audio/auedit/Graph.c Sat Oct 5 11:37:52 1996 -*************** -*** 28,34 **** - */ - - #ifndef WIN32 -! #include <values.h> - #else /* WIN32 */ - #define MAXSHORT 0x7fff - #endif /* WIN32 */ ---- 28,34 ---- - */ - - #ifndef WIN32 -! #include <limits.h> - #else /* WIN32 */ - #define MAXSHORT 0x7fff - #endif /* WIN32 */ -*************** -*** 322,329 **** - - for (x = 0; x < (int) w->core.width; x++) - { -! minY = MAXSHORT; -! maxY = -MAXSHORT; - - for (; (int) k == x && p < end; k += w->graph.hscale) - { ---- 322,329 ---- - - for (x = 0; x < (int) w->core.width; x++) - { -! minY = SHRT_MAX; -! maxY = SHRT_MIN; - - for (; (int) k == x && p < end; k += w->graph.hscale) - { -*************** -*** 391,397 **** - GraphWidget w; - { - w->graph.vscale = (float) w->core.height / w->graph.numTracks / -! (MAXSHORT - -MAXSHORT + 1); - - w->graph.hscale = (float) ((int) w->core.width - 1) / - (w->graph.end - w->graph.start); ---- 391,397 ---- - GraphWidget w; - { - w->graph.vscale = (float) w->core.height / w->graph.numTracks / -! (SHRT_MAX - SHRT_MIN + 1); - - w->graph.hscale = (float) ((int) w->core.width - 1) / - (w->graph.end - w->graph.start); +--- clients/audio/auedit/Graph.c.orig Mon Oct 25 02:24:08 1999 ++++ clients/audio/auedit/Graph.c Sat Mar 25 14:56:23 2000 +@@ -28,7 +28,7 @@ + */ + + #ifndef WIN32 +-# ifdef __NetBSD__ ++# if defined(__NetBSD__) || defined(__FreeBSD__) + # include <limits.h> + # define MAXSHORT SHRT_MAX + # define MINSHORT SHRT_MIN diff --git a/audio/nas/files/patch-ae b/audio/nas/files/patch-ae index 9de5c29d8989..585fdc620126 100644 --- a/audio/nas/files/patch-ae +++ b/audio/nas/files/patch-ae @@ -1,25 +1,19 @@ -*** lib/audio/Imakefile Tue Feb 13 12:18:13 1996 ---- lib/audio/Imakefile Tue Feb 13 10:21:19 1996 -*************** -*** 66,73 **** - #endif /* ProjectX < 5 */ - - EDB_DEFINES = -DERRORDB=\"$(LIBDIR)/AuErrorDB\" - - DEFINES = $(MALLOC_DEFINES) $(SYSV_DEFINES) -! CONN_DEFINES = ConnectionFlags - INSTALLFLAGS += $(INSTINCFLAGS) - ---- 66,78 ---- - #endif /* ProjectX < 5 */ - -+ #if HasBSD44Sockets -+ SOCK_DEFINES = -DBSD44SOCKETS -+ #endif -+ -+ - EDB_DEFINES = -DERRORDB=\"$(LIBDIR)/AuErrorDB\" - - DEFINES = $(MALLOC_DEFINES) $(SYSV_DEFINES) -! CONN_DEFINES = ConnectionFlags $(SOCK_DEFINES) - INSTALLFLAGS += $(INSTINCFLAGS) +--- lib/audio/Imakefile.orig Sat Jan 1 18:28:13 2000 ++++ lib/audio/Imakefile Sat Mar 25 14:56:19 2000 +@@ -64,10 +64,15 @@ + COMPAT_OBJS = AuGetBest.o + #endif /* ProjectX < 5 */ + ++#if HasBSD44Sockets ++ SOCK_DEFINES = -DBSD44SOCKETS ++#endif ++ ++ + EDB_DEFINES = -DERRORDB=\"$(LIBDIR)/AuErrorDB\" + + DEFINES = $(MALLOC_DEFINES) $(SYSV_DEFINES) +- CONN_DEFINES = ConnectionFlags ++ CONN_DEFINES = ConnectionFlags $(SOCK_DEFINES) + + HEADERS = Alibint.h Alibnet.h Xtutil.h audiolib.h audioutil.h snd.h wave.h \ + voc.h aiff.h sound.h soundlib.h fileutil.h 8svx.h Astreams.h \ diff --git a/audio/nas/files/patch-af b/audio/nas/files/patch-af new file mode 100644 index 000000000000..c32fc12518df --- /dev/null +++ b/audio/nas/files/patch-af @@ -0,0 +1,9 @@ +--- config/NetAudio.def.orig Sun Feb 13 05:31:14 2000 ++++ config/NetAudio.def Fri Mar 24 04:55:49 2000 +@@ -8,5 +8,5 @@ + + XCOMM Directory where NAS will look for it's config file(s) + #ifndef NasConfigSearchPath +-#define NasConfigSearchPath /etc/nas/ ++#define NasConfigSearchPath $(PROJECTROOT)/etc + #endif diff --git a/audio/nas/pkg-descr b/audio/nas/pkg-descr index b07f298ba12b..f66fbcbe7b27 100644 --- a/audio/nas/pkg-descr +++ b/audio/nas/pkg-descr @@ -1,5 +1,7 @@ - The Network Audio System is designed for playing, - recording, and manipulating audio data over a network. - Like the X Window System, it uses the client/server model to - separate applications from the specific drivers that control - audio input and output devices. +The Network Audio System is designed for playing, +recording, and manipulating audio data over a network. +Like the X Window System, it uses the client/server model to +separate applications from the specific drivers that control +audio input and output devices. + +WWW: http://radscan.com/nas.html diff --git a/audio/nas/pkg-message b/audio/nas/pkg-message new file mode 100644 index 000000000000..445d5a9b7177 --- /dev/null +++ b/audio/nas/pkg-message @@ -0,0 +1,11 @@ +************************************************** +************************************************** +NOTE: + +Be sure to create a /usr/X11R6/etc/nasd.conf file; use +/usr/X11R6/etc/nasd.conf.eg as a starting point. +It should work fine as is. + +************************************************** +************************************************** + diff --git a/audio/nas/pkg-plist b/audio/nas/pkg-plist index 9dfc37002ac9..519f849269e7 100644 --- a/audio/nas/pkg-plist +++ b/audio/nas/pkg-plist @@ -1,4 +1,3 @@ -bin/au bin/auconvert bin/auctl bin/audemo @@ -11,12 +10,13 @@ bin/auplay bin/aurecord bin/auscope bin/autool -bin/auvoxware bin/auwave bin/checkmail bin/issndfile +bin/nasd bin/playbucket bin/soundtoh +etc/nasd.conf.eg include/audio/8svx.h include/audio/Afuncproto.h include/audio/Afuncs.h @@ -38,7 +38,10 @@ include/audio/sound.h include/audio/soundlib.h include/audio/voc.h include/audio/wave.h -lib/AUVoxConfig.eg lib/X11/AuErrorDB lib/libaudio.a +lib/libaudio.so +lib/libaudio.so.1 +@exec /sbin/ldconfig -m %B +@unexec /sbin/ldconfig -R @dirrm include/audio |