ports/72716: [PATCH] audio/libsndfile: Enables sndfile-play to work in freebsd
Michael Johnson
ahze at ahze.net
Thu Oct 14 22:20:24 UTC 2004
>Number: 72716
>Category: ports
>Synopsis: [PATCH] audio/libsndfile: Enables sndfile-play to work in freebsd
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 14 22:20:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Michael Johnson
>Release: FreeBSD 5.3-BETA6 i386
>Organization:
>Environment:
System: FreeBSD blueheron.ahze.net 5.3-BETA6 FreeBSD 5.3-BETA6 #67: Fri Oct 1 15:03:41 EDT
>Description:
- Enables sndfile-play to work in FreeBSD
Added file(s):
- files/patch-examples_sndfile-play.c
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:
--- libsndfile-1.0.10.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/audio/libsndfile.orig/files/patch-examples_sndfile-play.c /usr/ports/audio/libsndfile/files/patch-examples_sndfile-play.c
--- /usr/ports/audio/libsndfile.orig/files/patch-examples_sndfile-play.c Wed Dec 31 19:00:00 1969
+++ /usr/ports/audio/libsndfile/files/patch-examples_sndfile-play.c Thu Oct 14 18:12:25 2004
@@ -0,0 +1,29 @@
+--- examples/sndfile-play.c.orig Thu Oct 14 18:07:25 2004
++++ examples/sndfile-play.c Thu Oct 14 18:11:13 2004
+@@ -34,7 +34,7 @@
+ #include <sys/time.h>
+ #endif
+
+-#if defined (__linux__)
++#if defined (__linux__) || defined (__FreeBSD__)
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+ #include <sys/soundcard.h>
+@@ -326,7 +326,7 @@
+ ** Linux/OSS functions for playing a sound.
+ */
+
+-#if defined (__linux__)
++#if defined (__linux__) || defined (__FreeBSD__)
+
+ static int linux_open_dsp_device (int channels, int srate) ;
+
+@@ -869,7 +869,7 @@
+ return 1 ;
+ } ;
+
+-#if defined (__linux__)
++#if defined (__linux__) || defined(__FreeBSD__)
+ #if HAVE_ALSA_ASOUNDLIB_H
+ if (access ("/proc/asound/cards", R_OK) == 0)
+ alsa_play (argc, argv) ;
--- libsndfile-1.0.10.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list