aboutsummaryrefslogtreecommitdiffstats
path: root/audio/nas
diff options
context:
space:
mode:
authorobraun <obraun@FreeBSD.org>2002-10-26 15:58:47 +0800
committerobraun <obraun@FreeBSD.org>2002-10-26 15:58:47 +0800
commit8c6a1a12d1408d8bef7990b3ef222c0fda47f8e8 (patch)
tree1c0112b7d1eca4240f68a048ec08a682dd783243 /audio/nas
parent74725e4662a61874316db63f4fa26dc10befe1d3 (diff)
downloadfreebsd-ports-gnome-8c6a1a12d1408d8bef7990b3ef222c0fda47f8e8.tar.gz
freebsd-ports-gnome-8c6a1a12d1408d8bef7990b3ef222c0fda47f8e8.tar.zst
freebsd-ports-gnome-8c6a1a12d1408d8bef7990b3ef222c0fda47f8e8.zip
Upgrade to 1.6.
PR: 44482 Submitted by: KATO Tsuguru <tkato@prontomail.com>
Diffstat (limited to 'audio/nas')
-rw-r--r--audio/nas/Makefile9
-rw-r--r--audio/nas/distinfo2
-rw-r--r--audio/nas/files/patch-ab41
-rw-r--r--audio/nas/files/patch-ac12
-rw-r--r--audio/nas/files/patch-ah12
-rw-r--r--audio/nas/files/patch-server_os_utils.c16
6 files changed, 29 insertions, 63 deletions
diff --git a/audio/nas/Makefile b/audio/nas/Makefile
index 049dd9e8e5ff..e591ccae196a 100644
--- a/audio/nas/Makefile
+++ b/audio/nas/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= nas
-PORTVERSION= 1.5
+PORTVERSION= 1.6
CATEGORIES= audio
MASTER_SITES= http://radscan.com/nas/
EXTRACT_SUFX= .src.tar.gz
@@ -20,10 +20,6 @@ ALL_TARGET= World
XMKMF= xmkmf
INSTALLS_SHLIB= yes
-.include <bsd.port.pre.mk>
-
-.include "${.CURDIR}/Makefile.man"
-
post-patch:
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} \
${REINPLACE_CMD} -e "s|<malloc.h>|<stdlib.h>|g"
@@ -31,4 +27,5 @@ post-patch:
post-install:
@${SED} -e 's:/usr/X11R6:${PREFIX}:g' ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include "Makefile.man"
+.include <bsd.port.mk>
diff --git a/audio/nas/distinfo b/audio/nas/distinfo
index 2faf49235518..31f98f9ef427 100644
--- a/audio/nas/distinfo
+++ b/audio/nas/distinfo
@@ -1 +1 @@
-MD5 (nas-1.5.src.tar.gz) = 0726f5537b576d4d2c80208ae8b24946
+MD5 (nas-1.6.src.tar.gz) = 08b54fbf3af8c2ffab39f6f84f2ab337
diff --git a/audio/nas/files/patch-ab b/audio/nas/files/patch-ab
index 6f8bc40a642b..c112f5c66d83 100644
--- a/audio/nas/files/patch-ab
+++ b/audio/nas/files/patch-ab
@@ -1,6 +1,15 @@
---- ./server/dda/voxware/auvoxware.c.orig Sun Apr 29 17:11:08 2001
-+++ ./server/dda/voxware/auvoxware.c Sat Sep 7 17:02:34 2002
-@@ -154,16 +154,11 @@
+--- server/dda/voxware/auvoxware.c.orig Thu Jul 25 09:42:28 2002
++++ server/dda/voxware/auvoxware.c Sat Oct 26 02:54:26 2002
+@@ -133,7 +133,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
+-#ifndef SVR4
++#if !defined(SVR4) && !defined(__FreeBSD__)
+ #include <getopt.h>
+ #endif
+ #include <sys/types.h>
+@@ -171,16 +171,11 @@
#include <sys/param.h>
#include <assert.h>
@@ -21,38 +30,38 @@
#endif
#include <audio/audio.h>
-@@ -624,7 +619,11 @@
-
+@@ -659,7 +654,11 @@
if(sndStatOut.fd == -1)
{
-+#ifdef __FreeBSD__
-+ while ((sndStatOut.fd = open(sndStatOut.device, sndStatOut.howToOpen, 0666)) == -1 && wait)
+ while ((sndStatOut.fd = open(sndStatOut.device,
++#if defined(__FreeBSD__)
++ sndStatOut.howToOpen|extramode,
+#else
- while ((sndStatOut.fd = open(sndStatOut.device, sndStatOut.howToOpen|O_SYNC, 0666)) == -1 && wait)
+ sndStatOut.howToOpen|O_SYNC|extramode,
+#endif
+ 0666)) == -1 && wait)
{
osLogMsg("openDevice: waiting on output device\n");
- sleep(1);
-@@ -1269,6 +1268,11 @@
+@@ -1310,6 +1309,11 @@
/*
* Setup soundcard at maximum audio quality.
*/
+
-+#ifdef __FreeBSD__
++#if defined(__FreeBSD__)
+#define NO_16_BIT_SAMPLING
+#endif
+
static void setupSoundcard(sndStatPtr)
SndStat* sndStatPtr;
{
-@@ -1425,7 +1429,11 @@
- osLogMsg("openDevice OUT %s mode %d\n",
+@@ -1472,7 +1476,11 @@
sndStatOut.device, sndStatOut.howToOpen);
-+#ifdef __FreeBSD__
-+ if ((fd = open(sndStatOut.device, sndStatOut.howToOpen, 0)) == -1)
+ if ((fd = open(sndStatOut.device,
++#if defined(__FreeBSD__)
++ sndStatOut.howToOpen|extramode, 0)) == -1)
+#else
- if ((fd = open(sndStatOut.device, sndStatOut.howToOpen|O_SYNC, 0)) == -1)
+ sndStatOut.howToOpen|O_SYNC|extramode, 0)) == -1)
+#endif
{
UNIDENTMSG;
diff --git a/audio/nas/files/patch-ac b/audio/nas/files/patch-ac
deleted file mode 100644
index afba11d7fcf9..000000000000
--- a/audio/nas/files/patch-ac
+++ /dev/null
@@ -1,12 +0,0 @@
---- 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-ah b/audio/nas/files/patch-ah
deleted file mode 100644
index 62d5d049bbb5..000000000000
--- a/audio/nas/files/patch-ah
+++ /dev/null
@@ -1,12 +0,0 @@
---- ./lib/audio/Alibint.c.orig Sat Sep 7 17:07:48 2002
-+++ ./lib/audio/Alibint.c Sat Sep 7 17:07:58 2002
-@@ -1349,8 +1349,8 @@
- {
- #if !defined(__FreeBSD__) && !defined(__linux__) && !defined(__NetBSD__)
- extern char *sys_errlist[];
--#endif
- extern int sys_nerr;
-+#endif
- char *s = (char *)((n >= 0 && n < sys_nerr) ? sys_errlist[n] : "unknown error");
-
- return (s ? s : "no such error");
diff --git a/audio/nas/files/patch-server_os_utils.c b/audio/nas/files/patch-server_os_utils.c
deleted file mode 100644
index c271dafd76c1..000000000000
--- a/audio/nas/files/patch-server_os_utils.c
+++ /dev/null
@@ -1,16 +0,0 @@
-$FreeBSD$
-
- utils.c:124: conflicting types for `sbrk'
- /usr/include/unistd.h:212: previous declaration of `sbrk'
-
---- server/os/utils.c.orig Sat May 25 10:07:51 2002
-+++ server/os/utils.c Sat May 25 10:21:48 2002
-@@ -120,7 +120,7 @@ static mutex print_lock
-
- void ddxUseMsg(void);
-
--#if !defined(SVR4) && !defined(hpux) && !defined(linux) && !defined(AMOEBA) && !defined(_MINIX)
-+#if !defined(SVR4) && !defined(hpux) && !defined(linux) && !defined(AMOEBA) && !defined(_MINIX) && !defined(__FreeBSD__)
- extern char *sbrk();
- #endif
-