maintainer isn't able to test this at the moment, nor am I.  could
someone who uses rdesktop with audio please test this?

thanks

-- 
[email protected]
SDF Public Access UNIX System - http://sdf.lonestar.org

Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/rdesktop/Makefile,v
retrieving revision 1.26
diff -N -u -p Makefile
--- Makefile    20 Aug 2008 16:25:41 -0000      1.26
+++ Makefile    26 Dec 2009 00:57:39 -0000
@@ -2,6 +2,7 @@
 
 COMMENT=       open source client for Windows Terminal Server
 DISTNAME=      rdesktop-1.6.0
+PKGNAME=       ${DISTNAME}p0
 CATEGORIES=    x11 net
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=rdesktop/}
 
@@ -14,13 +15,17 @@ PERMIT_PACKAGE_CDROM=       Yes
 PERMIT_PACKAGE_FTP=    Yes
 PERMIT_DISTFILES_CDROM=        Yes
 PERMIT_DISTFILES_FTP=  Yes
-WANTLIB=               X11 c crypto
+WANTLIB=               X11 c crypto pthread-stubs xcb
 
+MODULES=       converters/libiconv
+
+LIB_DEPENDS=   ao::audio/libao
+
 NO_REGRESS=    Yes
 USE_X11=       Yes
 
 CONFIGURE_STYLE= gnu
 CONFIGURE_ARGS+= --with-x=${X11BASE} \
-               --with-sound=sun
+               --with-sound=libao
 
 .include <bsd.port.mk>
Index: patches/patch-rdpsnd_sun_c
===================================================================
RCS file: /cvs/ports/x11/rdesktop/patches/patch-rdpsnd_sun_c,v
retrieving revision 1.1
diff -N -u -p patches/patch-rdpsnd_sun_c
--- patches/patch-rdpsnd_sun_c  20 Aug 2008 16:25:41 -0000      1.1
+++ /dev/null   26 Dec 2009 00:31:01 -0000
@@ -1,40 +0,0 @@
-$OpenBSD: patch-rdpsnd_sun_c,v 1.1 2008/08/20 16:25:41 jasper Exp $
-
-2 changes are here:
-- Change all uint_t to unsigned int.  On Linux a uint_t is just a typedef
-  to unsigned int.  We don't have a uint_t.
-
-- In sun_open rdesktop will also check that a device is in full duplex
-  mode before opening the device successfully. I didn't add code to check
-  if a device is in full duplex mode, I just removed the check.
-
---- rdpsnd_sun.c.orig  Sat May 10 23:14:38 2008
-+++ rdpsnd_sun.c       Tue Jun 17 16:08:59 2008
-@@ -54,7 +54,7 @@ static uint32 snd_rate;
- static short samplewidth;
- static char *dsp_dev;
- 
--static uint_t written_samples;
-+static unsigned int written_samples;
- 
- void sun_play(void);
- void sun_record(void);
-@@ -147,8 +147,7 @@ sun_open(int mode)
-       {
-               AUDIO_INITINFO(&info);
- 
--              if ((ioctl(dsp_fd, AUDIO_GETINFO, &info) == -1)
--                  || !(info.hw_features & AUDIO_HWFEATURE_DUPLEX))
-+              if (ioctl(dsp_fd, AUDIO_GETINFO, &info) == -1)
-               {
-                       close(dsp_fd);
-                       dsp_fd = -1;
-@@ -440,7 +439,7 @@ sun_play(void)
-       if (out->p == out->end)
-       {
-               audio_info_t info;
--              uint_t delay_samples;
-+              unsigned int delay_samples;
-               unsigned long delay_us;
- 
-               if (ioctl(dsp_fd, AUDIO_GETINFO, &info) != -1)

Reply via email to