Please test.

-- 
best regards
q#
diff -ruN -x CVS audio/esound/Makefile mystuff/audio/esound/Makefile
--- audio/esound/Makefile       Tue Jan 10 11:14:49 2006
+++ mystuff/audio/esound/Makefile       Mon Sep 18 06:26:46 2006
@@ -3,9 +3,8 @@
 
 COMMENT=       "sound library for Enlightenment"
 
-DISTNAME=      esound-0.2.34
-PKGNAME=       ${DISTNAME}p0
-SHARED_LIBS=   esd     2.34
+DISTNAME=      esound-0.2.36
+SHARED_LIBS=   esd     2.36
 CATEGORIES=    audio
 MASTER_SITES=  ${MASTER_SITE_GNOME:=sources/esound/0.2/}
 
@@ -18,11 +17,12 @@
 PERMIT_PACKAGE_FTP=    Yes
 PERMIT_DISTFILES_CDROM=        Yes
 PERMIT_DISTFILES_FTP=  Yes
-WANTLIB=               c m wrap
 
+WANTLIB=               c m wrap ossaudio
+
 USE_LIBTOOL=   Yes
 SEPARATE_BUILD=        concurrent
-AUTOCONF_VERSION=2.13
+AUTOCONF_VERSION=2.58
 CONFIGURE_STYLE= autoconf
 CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
 CONFIGURE_ARGS+= --with-libwrap
@@ -31,5 +31,7 @@
 
 post-extract:
        @cp -f ${FILESDIR}/audio_sun.c ${WRKSRC}
+
+NO_REGRESS=    Yes
 
 .include <bsd.port.mk>
diff -ruN -x CVS audio/esound/distinfo mystuff/audio/esound/distinfo
--- audio/esound/distinfo       Wed Jan  5 15:47:05 2005
+++ mystuff/audio/esound/distinfo       Tue Aug  1 05:34:32 2006
@@ -1,4 +1,4 @@
-MD5 (esound-0.2.34.tar.gz) = 9526d4ffbbbd9462768b38c082c726c7
-RMD160 (esound-0.2.34.tar.gz) = fbfac06a79fb817f9ef61d7808945f7ba87c0110
-SHA1 (esound-0.2.34.tar.gz) = 4fa1fb32121997fe9e7507bf5af296a64bc0a220
-SIZE (esound-0.2.34.tar.gz) = 392336
+MD5 (esound-0.2.36.tar.gz) = f2ba3597ef584f4eed7a8aa0ce875c2d
+RMD160 (esound-0.2.36.tar.gz) = 39a938e393c86d18d57d71ba6ab05615834d15ae
+SHA1 (esound-0.2.36.tar.gz) = 0533ec1c6fe9797a4d3f9b765f246141a1be6a2b
+SIZE (esound-0.2.36.tar.gz) = 485811
diff -ruN -x CVS audio/esound/patches/patch-Makefile.in 
mystuff/audio/esound/patches/patch-Makefile.in
--- audio/esound/patches/patch-Makefile.in      Sat Jun 26 05:38:33 2004
+++ mystuff/audio/esound/patches/patch-Makefile.in      Thu Jan  1 01:00:00 1970
@@ -1,11 +0,0 @@
---- Makefile.in.orig   Tue Mar 16 07:26:18 2004
-+++ Makefile.in        Thu Jun 24 20:07:12 2004
-@@ -180,7 +180,7 @@ esd_LDADD = $(WRAP_LIB) $(LDADD)
- m4datadir = $(datadir)/aclocal
- m4data_DATA = esd.m4
- 
--esdconfdir = $(sysconfdir)
-+esdconfdir = $(datadir)/examples/esound
- esdconf_DATA = esd.conf
- 
- pkgconfigdir = $(libdir)/pkgconfig
diff -ruN -x CVS audio/esound/patches/patch-Makefile_am 
mystuff/audio/esound/patches/patch-Makefile_am
--- audio/esound/patches/patch-Makefile_am      Thu Jan  1 01:00:00 1970
+++ mystuff/audio/esound/patches/patch-Makefile_am      Tue Aug  1 06:30:54 2006
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- Makefile.am.orig   Tue Jun  7 00:34:30 2005
++++ Makefile.am        Tue Aug  1 05:48:09 2006
+@@ -130,7 +130,7 @@ esd_LDADD = $(WRAP_LIB) $(LDADD)
+ m4datadir = $(datadir)/aclocal
+ m4data_DATA = esd.m4
+ 
+-esdconfdir = $(sysconfdir)
++esdconfdir = $(datadir)/examples/esound
+ esdconf_DATA = esd.conf
+ 
+ $(PACKAGE)-$(VERSION).tar.gz: dist
diff -ruN -x CVS audio/esound/patches/patch-Makefile_in 
mystuff/audio/esound/patches/patch-Makefile_in
--- audio/esound/patches/patch-Makefile_in      Thu Jan  1 01:00:00 1970
+++ mystuff/audio/esound/patches/patch-Makefile_in      Tue Aug  1 06:29:51 2006
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- Makefile.in.orig   Tue Jun  7 02:04:14 2005
++++ Makefile.in        Tue Aug  1 05:46:48 2006
+@@ -425,7 +425,7 @@ LDADD = libesd.la $(AUDIOFILE_LIBS)
+ esd_LDADD = $(WRAP_LIB) $(LDADD)
+ m4datadir = $(datadir)/aclocal
+ m4data_DATA = esd.m4
+-esdconfdir = $(sysconfdir)
++esdconfdir = $(datadir)/examples/esound
+ esdconf_DATA = esd.conf
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = esound.pc
diff -ruN -x CVS audio/esound/patches/patch-acconfig_h 
mystuff/audio/esound/patches/patch-acconfig_h
--- audio/esound/patches/patch-acconfig_h       Sat Jun 26 05:38:33 2004
+++ mystuff/audio/esound/patches/patch-acconfig_h       Thu Jan  1 01:00:00 1970
@@ -1,10 +0,0 @@
---- acconfig.h.orig    Thu Jan 15 05:49:09 2004
-+++ acconfig.h Thu Jun 24 20:09:24 2004
-@@ -11,6 +11,7 @@
- #undef DRIVER_ALSA_09_NEW_PCM_API
- #undef DRIVER_DART
- #undef DRIVER_COREAUDIO
-+#undef DRIVER_SUN
- #undef DRIVER_NONE
- #undef HAVE_INET_ATON
- #undef HAVE_INET_PTON
diff -ruN -x CVS audio/esound/patches/patch-audio_c 
mystuff/audio/esound/patches/patch-audio_c
--- audio/esound/patches/patch-audio_c  Fri Jul 26 20:57:23 2002
+++ mystuff/audio/esound/patches/patch-audio_c  Tue Aug  1 06:29:55 2006
@@ -1,9 +1,10 @@
---- audio.c.orig       Tue Jun  4 10:40:44 2002
-+++ audio.c    Fri Jul 19 18:32:52 2002
+$OpenBSD$
+--- audio.c.orig       Mon Jan 17 01:45:14 2005
++++ audio.c    Tue Aug  1 05:51:34 2006
 @@ -25,6 +25,8 @@ static int esd_audio_fd = -1;
+ #  include "audio_alsa09.c"
+ #elif defined(DRIVER_ALSA) || defined(DRIVER_NEWALSA) 
  #  include "audio_alsa.c"
- #elif defined(DRIVER_ALSA_09)
- #include "audio_alsa09.c"
 +#elif defined(DRIVER_SUN)
 +#  include "audio_sun.c"
  #elif defined(DRIVER_OSS)
diff -ruN -x CVS audio/esound/patches/patch-config_h_in 
mystuff/audio/esound/patches/patch-config_h_in
--- audio/esound/patches/patch-config_h_in      Sat Jun 26 05:38:33 2004
+++ mystuff/audio/esound/patches/patch-config_h_in      Tue Aug  1 06:38:03 2006
@@ -1,10 +1,13 @@
---- config.h.in.orig   Tue Mar 16 07:25:33 2004
-+++ config.h.in        Thu Jun 24 20:10:12 2004
-@@ -45,6 +45,7 @@
- #undef DRIVER_ALSA_09_NEW_PCM_API
- #undef DRIVER_DART
- #undef DRIVER_COREAUDIO
+$OpenBSD$
+--- config.h.in.orig   Tue Jun  7 02:04:49 2005
++++ config.h.in        Tue Aug  1 06:34:50 2006
+@@ -50,6 +50,9 @@
+ /* Defined if Solaris backend is enabled */
+ #undef DRIVER_SOLARIS
+ 
++/* Defined if SUN backend is enabled */
 +#undef DRIVER_SUN
- #undef DRIVER_NONE
- #undef HAVE_INET_ATON
- #undef HAVE_INET_PTON
++
+ /* Defined if ipv6 is enabled */
+ #undef ENABLE_IPV6
+ 
diff -ruN -x CVS audio/esound/patches/patch-configure_ac 
mystuff/audio/esound/patches/patch-configure_ac
--- audio/esound/patches/patch-configure_ac     Thu Jan  1 01:00:00 1970
+++ mystuff/audio/esound/patches/patch-configure_ac     Tue Aug  1 06:38:36 2006
@@ -0,0 +1,48 @@
+$OpenBSD$
+--- configure.ac.orig  Tue Jun  7 02:03:55 2005
++++ configure.ac       Tue Aug  1 06:37:48 2006
+@@ -230,6 +230,14 @@ if test "x$enable_local_sound" = "xyes";
+          ;;
+       esac
+    fi
++      if test "${ac_cv_header_sys_audioio_h}" = "yes"; then
++              case ${host_os} in
++              openbsd*)
++                      found_sound=yes
++                      AC_DEFINE(DRIVER_SUN, 1, [Defined if SUN backend is 
enabled])
++                      ;;
++              esac
++      fi
+ 
+    case ${host_os} in
+    os2*)
+@@ -295,7 +303,9 @@ if test "x$enable_local_sound" = "xyes";
+    echo 
"---------------------------------------------------------------------"
+    echo "--- Checking to see which audio libraries are required for linking.";
+    echo "--- Most of these checks should also fail. Do not be alarmed.";
++if test ! "$DRIVER_SUN"; then
+    AC_CHECK_FUNC(_oss_ioctl,,[AC_CHECK_LIB(ossaudio,_oss_ioctl)])
++fi
+    AC_CHECK_FUNC(ALnewconfig,,[AC_CHECK_LIB(audio,ALnewconfig)])
+    if test "x$enable_alsa" = "xyes"; then
+       AC_CHECK_FUNC(snd_cards,,[AC_CHECK_LIB(sound,snd_cards)])
+@@ -401,7 +411,8 @@ if test "x$with_libwrap" = "xyes"; then
+ 
+    wrap_ok=no
+    AC_TRY_LINK(
+-[#include <tcpd.h>
++[#include <sys/types.h>
++#include <tcpd.h>
+ #include <syslog.h>
+ int allow_severity = LOG_INFO;
+ int deny_severity = LOG_WARNING;],
+@@ -411,7 +422,8 @@ int deny_severity = LOG_WARNING;],
+        wrap_ok=yes],
+       [LIBS="$LIBS -lnsl"
+        AC_TRY_LINK(
+-[#include <tcpd.h>
++[#include <sys/types.h>
++#include <tcpd.h>
+ #include <syslog.h>
+ int allow_severity = LOG_INFO;
+ int deny_severity = LOG_WARNING;],
diff -ruN -x CVS audio/esound/patches/patch-configure_in 
mystuff/audio/esound/patches/patch-configure_in
--- audio/esound/patches/patch-configure_in     Sat Jun 26 05:38:33 2004
+++ mystuff/audio/esound/patches/patch-configure_in     Thu Jan  1 01:00:00 1970
@@ -1,50 +0,0 @@
---- configure.in.orig  Tue Mar 16 07:20:39 2004
-+++ configure.in       Thu Jun 24 20:07:12 2004
-@@ -205,6 +205,16 @@ if test "x$enable_local_sound" = "xyes";
-       esac
-    fi
- 
-+   if test "${ac_cv_header_sys_audioio_h}" = "yes"; then
-+      case ${host_os} in
-+      openbsd* | netbsd*)
-+         found_sound=yes
-+         DRIVER_SUN=1
-+         AC_DEFINE(DRIVER_SUN)
-+         ;;
-+      esac
-+   fi
-+
-    case ${host_os} in
-    os2*)
-       found_sound=yes
-@@ -263,7 +273,9 @@ if test "x$enable_local_sound" = "xyes";
-    echo 
"---------------------------------------------------------------------"
-    echo "--- Checking to see which audio libraries are required for linking.";
-    echo "--- Most of these checks should also fail. Do not be alarmed.";
--   AC_CHECK_FUNC(_oss_ioctl,,[AC_CHECK_LIB(ossaudio,_oss_ioctl)])
-+   if test ! "$DRIVER_SUN"; then
-+     AC_CHECK_FUNC(_oss_ioctl,,[AC_CHECK_LIB(ossaudio,_oss_ioctl)])
-+   fi
-    AC_CHECK_FUNC(ALnewconfig,,[AC_CHECK_LIB(audio,ALnewconfig)])
-    if test "x$enable_alsa" = "xyes"; then
-       AC_CHECK_FUNC(snd_cards,,[AC_CHECK_LIB(sound,snd_cards)])
-@@ -382,7 +394,8 @@ if test "x$with_libwrap" = "xyes"; then
- 
-    wrap_ok=no
-    AC_TRY_LINK(
--[#include <tcpd.h>
-+[#include <stdio.h>
-+#include <tcpd.h>
- #include <syslog.h>
- int allow_severity = LOG_INFO;
- int deny_severity = LOG_WARNING;],
-@@ -392,7 +405,8 @@ int deny_severity = LOG_WARNING;],
-        wrap_ok=yes],
-       [LIBS="$LIBS -lnsl"
-        AC_TRY_LINK(
--[#include <tcpd.h>
-+[#include <stdio.h>
-+#include <tcpd.h>
- #include <syslog.h>
- int allow_severity = LOG_INFO;
- int deny_severity = LOG_WARNING;],
diff -ruN -x CVS audio/esound/patches/patch-esd.c 
mystuff/audio/esound/patches/patch-esd.c
--- audio/esound/patches/patch-esd.c    Sat Jun 26 05:38:33 2004
+++ mystuff/audio/esound/patches/patch-esd.c    Tue Aug  1 06:30:47 2006
@@ -1,6 +1,6 @@
---- esd.c.orig Wed Jan 14 07:00:46 2004
-+++ esd.c      Thu Jun 24 20:07:12 2004
-@@ -236,12 +236,12 @@ struct stat dir_stats;
+--- esd.c.orig Thu May 26 02:02:52 2005
++++ esd.c      Tue Aug  1 05:37:43 2006
+@@ -269,12 +269,12 @@ struct stat dir_stats;
  
  #if defined(S_ISVTX)
  #define ESD_UNIX_SOCKET_DIR_MODE (S_IRUSR|S_IWUSR|S_IXUSR|\
diff -ruN -x CVS audio/esound/patches/patch-util_c 
mystuff/audio/esound/patches/patch-util_c
--- audio/esound/patches/patch-util_c   Sat Jun 26 05:38:33 2004
+++ mystuff/audio/esound/patches/patch-util_c   Tue Aug  1 06:30:52 2006
@@ -1,6 +1,6 @@
-$OpenBSD: patch-util_c,v 1.2 2004/06/26 04:38:33 brad Exp $
---- util.c.orig        Mon Mar  1 12:06:58 2004
-+++ util.c     Thu Jun 24 20:15:35 2004
+$OpenBSD$
+--- util.c.orig        Thu May 26 02:02:52 2005
++++ util.c     Tue Aug  1 06:09:44 2006
 @@ -1,5 +1,8 @@
  #include "config.h"
  #include "esd.h"
@@ -10,15 +10,13 @@
  #include <sys/types.h>
  #include <sys/socket.h>
  #include <stdlib.h>
-@@ -23,38 +26,31 @@ have_ipv6() {
+@@ -23,38 +26,31 @@ have_ipv6(void) {
  const char*
  esd_get_socket_dirname (void) 
  {
--      char *audiodev;
+-      const char *audiodev;
 -      static char *dirname = NULL;
-+      static char *sockdir = NULL, sockdirbuf[PATH_MAX];
-+      struct passwd *pw;
- 
+-
 -      if (dirname == NULL) {
 -              if (!(audiodev = getenv("AUDIODEV"))) {
 -                      audiodev = "";
@@ -31,28 +29,32 @@
 -              dirname = malloc(strlen(audiodev) + sizeof("/tmp/.esd"));
 -              strcpy(dirname, "/tmp/.esd");
 -              strcat(dirname, audiodev);
+-      }
+-
+-      return dirname;
++      static char *sockdir = NULL, sockdirbuf[PATH_MAX];
++      struct passwd *pw;
++ 
 +      if (sockdir != NULL)
 +              return (sockdir);
 +      pw = getpwuid(getuid());
 +      if (pw == NULL || pw->pw_dir == NULL) {
 +              fprintf(stderr, "esd: could not find home directory\n");
 +              exit(1);
-       }
--
--      return dirname;
++      }
 +      snprintf(sockdirbuf, sizeof(sockdirbuf), "%s/.esd", pw->pw_dir);
 +      endpwent();
 +      sockdir = sockdirbuf;
 +      return (sockdir);
  }
- 
+-
++ 
  const char*
  esd_get_socket_name (void) 
  {
 -      const char *dirname;
 -      static char *name = NULL;
-+      static char *sockname = NULL, socknamebuf[PATH_MAX];
- 
+-
 -      if (name == NULL) {
 -              dirname = esd_get_socket_dirname();
 -              name = malloc(strlen(dirname) + sizeof("/socket"));
@@ -61,6 +63,8 @@
 -      }
 -
 -      return name;
++      static char *sockname = NULL, socknamebuf[PATH_MAX];
++ 
 +      if (sockname != NULL)
 +              return (sockname);
 +      snprintf(socknamebuf, sizeof(socknamebuf), "%s/socket",

Reply via email to