diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-01-08 07:34:47 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-01-08 07:34:47 +0800 |
commit | fb58694f34960109063dc25161ca10f8aeb55a7a (patch) | |
tree | 8d1e79db9b6c7437ad91acac6330b6b02cd5fce7 | |
parent | 6b8ed86fcc51eb907eb0eb8441d6f1b03dc9fcf4 (diff) | |
download | marcuscom-ports-fb58694f34960109063dc25161ca10f8aeb55a7a.tar marcuscom-ports-fb58694f34960109063dc25161ca10f8aeb55a7a.tar.gz marcuscom-ports-fb58694f34960109063dc25161ca10f8aeb55a7a.tar.bz2 marcuscom-ports-fb58694f34960109063dc25161ca10f8aeb55a7a.tar.lz marcuscom-ports-fb58694f34960109063dc25161ca10f8aeb55a7a.tar.xz marcuscom-ports-fb58694f34960109063dc25161ca10f8aeb55a7a.tar.zst marcuscom-ports-fb58694f34960109063dc25161ca10f8aeb55a7a.zip |
Add en upgrade to version 0.7.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3358 df743ca5-7f9a-e211-a948-0013205c9059
24 files changed, 656 insertions, 0 deletions
diff --git a/audio/polypaudio/Makefile b/audio/polypaudio/Makefile new file mode 100644 index 000000000..a5920004b --- /dev/null +++ b/audio/polypaudio/Makefile @@ -0,0 +1,63 @@ +# New ports collection makefile for: polypaudio +# Date created: 29 October 2004 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= polypaudio +PORTVERSION= 0.7 +CATEGORIES= audio +MASTER_SITES= http://0pointer.de/lennart/projects/polypaudio/ + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Sound server for UNIX + +BUILD_DEPENDS= lynx:${PORTSDIR}/www/lynx +LIB_DEPENDS= samplerate.1:${PORTSDIR}/audio/libsamplerate + +USE_GNOME= gnometarget gnomehack glib20 +WANT_GNOME= yes +USE_XLIB= yes +USE_REINPLACE= yes +INSTALLS_SHLIB= yes +USE_LIBTOOL_VER=15 +USE_LIBLTDL= yes +USE_GMAKE= yes +USE_GETOPT_LONG=yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + LIBS="-lm" + +PLIST_SUB= VERSION=${PORTVERSION} + +.include <bsd.port.pre.mk> + +.if ${HAVE_GNOME:Mglib12}!="" +USE_GNOME+= glib12 +PLIST_SUB+= GLIB12="" +.else +PLIST_SUB+= GLIB12="@comment " +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${WRKSRC}/polyp/default.pa.in + @${REINPLACE_CMD} -e 's|seq|jot|' \ + ${WRKSRC}/polyp/esdcompat.sh.in +# 4.x doesn't have float_t +.if ${OSVERSION} < 500000 + @${REINPLACE_CMD} -e 's|float_t|float|g' \ + ${WRKSRC}/polyp/sample-util.c +.endif + +post-install: +.for ii in default.pa daemon.conf client.conf + ${INSTALL_DATA} ${WRKSRC}/polyp/${ii} \ + ${PREFIX}/etc/polypaudio/${ii}-dist +.endfor +.if !defined(PACKAGE_BUILDING) + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.endif + +.include <bsd.port.post.mk> diff --git a/audio/polypaudio/distinfo b/audio/polypaudio/distinfo new file mode 100644 index 000000000..0441ff5c9 --- /dev/null +++ b/audio/polypaudio/distinfo @@ -0,0 +1,2 @@ +MD5 (polypaudio-0.7.tar.gz) = 1c3693ab9c6904dbed6dfa7656778de4 +SIZE (polypaudio-0.7.tar.gz) = 945775 diff --git a/audio/polypaudio/files/patch-config.h.in b/audio/polypaudio/files/patch-config.h.in new file mode 100644 index 000000000..a656b2e7a --- /dev/null +++ b/audio/polypaudio/files/patch-config.h.in @@ -0,0 +1,15 @@ +--- config.h.in.orig Sat Oct 30 01:24:45 2004 ++++ config.h.in Sat Oct 30 01:25:49 2004 +@@ -68,6 +68,12 @@ + /* Define to 1 if you have the `munmap' function. */ + #undef HAVE_MUNMAP + ++/* Define to 1 if you have the `getgrgid_r' function. */ ++#undef HAVE_GETGRGID_R ++ ++/* Define to 1 if you have the `getpwuid_r' function. */ ++#undef HAVE_GETPWUID_R ++ + /* Define to 1 if you have the <netdb.h> header file. */ + #undef HAVE_NETDB_H + diff --git a/audio/polypaudio/files/patch-configure b/audio/polypaudio/files/patch-configure new file mode 100644 index 000000000..6f68894a9 --- /dev/null +++ b/audio/polypaudio/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Fri Dec 31 14:10:44 2004 ++++ configure Fri Dec 31 14:12:12 2004 +@@ -24488,7 +24488,7 @@ + + + +-for ac_func in gethostname gettimeofday memchr memmove memset mkdir mkfifo munmap rmdir socket strcspn strerror strrchr strspn strstr strtol strtoul strcasecmp putenv strchr strpbrk strdup getgrgid_r getpwuid_r regcomp ftruncate select ++for ac_func in gethostname gettimeofday memchr memmove memset mkdir mkfifo munmap rmdir socket strcspn strerror strrchr strspn strstr strtol strtoul strcasecmp putenv strchr strpbrk strdup regcomp ftruncate select + do + as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` + echo "$as_me:$LINENO: checking for $ac_func" >&5 diff --git a/audio/polypaudio/files/patch-polyp_default.pa.in b/audio/polypaudio/files/patch-polyp_default.pa.in new file mode 100644 index 000000000..efa10271d --- /dev/null +++ b/audio/polypaudio/files/patch-polyp_default.pa.in @@ -0,0 +1,11 @@ +--- polyp/default.pa.in.orig Sun Nov 21 22:27:41 2004 ++++ polyp/default.pa.in Fri Dec 31 14:16:34 2004 +@@ -53,7 +53,7 @@ + .nofail + + # Load something to the sample cache +-load-sample x11-bell /usr/share/sounds/KDE_Notify.wav ++load-sample x11-bell %%LOCALBASE%%/share/sounds/KDE_Notify.wav + load-sample-dir-lazy /usr/share/sounds/*.wav + + # Load X11 bell module diff --git a/audio/polypaudio/files/patch-polyp_module-protocol-stub.c b/audio/polypaudio/files/patch-polyp_module-protocol-stub.c new file mode 100644 index 000000000..cd2f0113e --- /dev/null +++ b/audio/polypaudio/files/patch-polyp_module-protocol-stub.c @@ -0,0 +1,10 @@ +--- polyp/module-protocol-stub.c.orig Fri Dec 31 15:22:48 2004 ++++ polyp/module-protocol-stub.c Fri Dec 31 15:34:51 2004 +@@ -28,6 +28,7 @@ + #include <stdio.h> + #include <assert.h> + #include <arpa/inet.h> ++#include <sys/syslimits.h> + #include <unistd.h> + #include <netinet/in.h> + diff --git a/audio/polypaudio/files/patch-polyp_pid.c b/audio/polypaudio/files/patch-polyp_pid.c new file mode 100644 index 000000000..2dace12b7 --- /dev/null +++ b/audio/polypaudio/files/patch-polyp_pid.c @@ -0,0 +1,10 @@ +--- polyp/pid.c.orig Fri Dec 31 15:36:25 2004 ++++ polyp/pid.c Fri Dec 31 15:36:37 2004 +@@ -32,6 +32,7 @@ + #include <assert.h> + #include <stdlib.h> + #include <limits.h> ++#include <sys/stat.h> + #include <signal.h> + + #include "pid.h" diff --git a/audio/polypaudio/files/patch-polyp_polyplib-context.c b/audio/polypaudio/files/patch-polyp_polyplib-context.c new file mode 100644 index 000000000..931ab71b8 --- /dev/null +++ b/audio/polypaudio/files/patch-polyp_polyplib-context.c @@ -0,0 +1,10 @@ +--- polyp/polyplib-context.c.orig Fri Dec 31 14:39:40 2004 ++++ polyp/polyplib-context.c Fri Dec 31 14:40:00 2004 +@@ -29,6 +29,7 @@ + #include <string.h> + #include <sys/types.h> + #include <sys/socket.h> ++#include <sys/syslimits.h> + #include <netdb.h> + #include <unistd.h> + #include <sys/stat.h> diff --git a/audio/polypaudio/files/patch-polyp_util.c b/audio/polypaudio/files/patch-polyp_util.c new file mode 100644 index 000000000..580c06850 --- /dev/null +++ b/audio/polypaudio/files/patch-polyp_util.c @@ -0,0 +1,24 @@ +--- polyp/util.c.orig Sun Nov 21 16:27:41 2004 ++++ polyp/util.c Tue Jan 4 17:13:51 2005 +@@ -34,6 +34,7 @@ + #include <unistd.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <sys/socket.h> + #include <pwd.h> + #include <signal.h> + #include <pthread.h> +@@ -285,7 +286,13 @@ + if ((e = getenv("HOME"))) + return pa_strlcpy(s, e, l); + ++#ifdef HAVE_GETPWUID_R + if (getpwuid_r(getuid(), &pw, buf, sizeof(buf), &r) != 0 || !r) { ++#else ++ /* XXX Not thead-safe, but needed on OSes (e.g. FreeBSD 4.X) ++ * that do not support getpwuid_r. */ ++ if ((r = getpwuid(getuid())) == NULL) { ++#endif + pa_log(__FILE__": getpwuid_r() failed\n"); + return NULL; + } diff --git a/audio/polypaudio/pkg-descr b/audio/polypaudio/pkg-descr new file mode 100644 index 000000000..66f44239e --- /dev/null +++ b/audio/polypaudio/pkg-descr @@ -0,0 +1,21 @@ +Polypaudio is a sound server for UNIX. It is intended to be an improved +drop-in replacement for the Enlightenment Sounds Daemon (ESOUND). In +addition to the features ESDOUND provides, polypaudio has: + +* Extensible plugin architecture (by loading dynamic modules with dlopen()) +* Support for more than one sink/source +* Better low latency behavior +* Embedable into other software (the core is available as C library) +* Completely asynchronous C API +* Simple command line interface for reconfiguring the daemon while running +* Flexible, implicit sample type conversion and resampling +* "Zero-Copy" architecture +* Module autoloading +* Very accurate latency measurement for playback and recording +* May be used to combine multiple sound cards to one (with sample rate + adjustment) +* Client side latency interpolation + +-- Polypaudio homepage + +WWW: http://0pointer.de/lennart/projects/polypaudio/ diff --git a/audio/polypaudio/pkg-install b/audio/polypaudio/pkg-install new file mode 100644 index 000000000..f4d1fb112 --- /dev/null +++ b/audio/polypaudio/pkg-install @@ -0,0 +1,22 @@ +#!/bin/sh + +case $2 in +POST-INSTALL) + GROUP=realtime + GID=557 + PW=/usr/sbin/pw + + if ${PW} group show "${GROUP}" 2>/dev/null; then + echo "You already have a group \"${GROUP}\", so I will use it." + else + if ${PW} groupadd ${GROUP} -g ${GID}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi + fi + + exit 0 + ;; +esac diff --git a/audio/polypaudio/pkg-plist b/audio/polypaudio/pkg-plist new file mode 100644 index 000000000..7cec99006 --- /dev/null +++ b/audio/polypaudio/pkg-plist @@ -0,0 +1,129 @@ +bin/esdcompat.sh +bin/pacat +bin/pacmd +bin/pactl +bin/paplay +bin/parec +bin/pax11publish +bin/polypaudio +@unexec if cmp -s %D/etc/polypaudio/client.conf %D/etc/polypaudio/client.conf-dist; then rm -f %D/etc/polypaudio/client.conf; fi +etc/polypaudio/client.conf-dist +@unexec if cmp -s %D/etc/polypaudio/daemon.conf %D/etc/polypaudio/daemon.conf-dist; then rm -f %D/etc/polypaudio/daemon.conf; fi +etc/polypaudio/daemon.conf-dist +@unexec if cmp -s %D/etc/polypaudio/default.pa %D/etc/polypaudio/default.pa-dist; then rm -f %D/etc/polypaudio/default.pa; fi +etc/polypaudio/default.pa-dist +include/polyp/cdecl.h +include/polyp/glib-mainloop.h +include/polyp/mainloop-api.h +include/polyp/mainloop-signal.h +include/polyp/mainloop.h +include/polyp/polyplib-context.h +include/polyp/polyplib-def.h +include/polyp/polyplib-error.h +include/polyp/polyplib-introspect.h +include/polyp/polyplib-operation.h +include/polyp/polyplib-scache.h +include/polyp/polyplib-simple.h +include/polyp/polyplib-stream.h +include/polyp/polyplib-subscribe.h +include/polyp/polyplib-version.h +include/polyp/polyplib.h +include/polyp/sample.h +lib/libpolyp-%%VERSION%%.a +lib/libpolyp-%%VERSION%%.so +lib/libpolyp-%%VERSION%%.so.0 +lib/libpolyp-error-%%VERSION%%.a +lib/libpolyp-error-%%VERSION%%.so +lib/libpolyp-error-%%VERSION%%.so.0 +lib/libpolyp-mainloop-%%VERSION%%.a +lib/libpolyp-mainloop-%%VERSION%%.so +lib/libpolyp-mainloop-%%VERSION%%.so.0 +lib/libpolyp-mainloop-glib-%%VERSION%%.a +lib/libpolyp-mainloop-glib-%%VERSION%%.so +lib/libpolyp-mainloop-glib-%%VERSION%%.so.0 +%%GLIB12%%lib/libpolyp-mainloop-glib12-%%VERSION%%.a +%%GLIB12%%lib/libpolyp-mainloop-glib12-%%VERSION%%.so +%%GLIB12%%lib/libpolyp-mainloop-glib12-%%VERSION%%.so.0 +lib/libpolyp-simple-%%VERSION%%.a +lib/libpolyp-simple-%%VERSION%%.so +lib/libpolyp-simple-%%VERSION%%.so.0 +lib/polypaudio-%%VERSION%%/libauthkey-prop.a +lib/polypaudio-%%VERSION%%/libauthkey-prop.so +lib/polypaudio-%%VERSION%%/libauthkey.a +lib/polypaudio-%%VERSION%%/libauthkey.so +lib/polypaudio-%%VERSION%%/libcli.a +lib/polypaudio-%%VERSION%%/libcli.so +lib/polypaudio-%%VERSION%%/libiochannel.a +lib/polypaudio-%%VERSION%%/libiochannel.so +lib/polypaudio-%%VERSION%%/libioline.a +lib/polypaudio-%%VERSION%%/libioline.so +lib/polypaudio-%%VERSION%%/liboss-util.a +lib/polypaudio-%%VERSION%%/liboss-util.so +lib/polypaudio-%%VERSION%%/libpacket.a +lib/polypaudio-%%VERSION%%/libpacket.so +lib/polypaudio-%%VERSION%%/libpdispatch.a +lib/polypaudio-%%VERSION%%/libpdispatch.so +lib/polypaudio-%%VERSION%%/libprotocol-cli.a +lib/polypaudio-%%VERSION%%/libprotocol-cli.so +lib/polypaudio-%%VERSION%%/libprotocol-esound.a +lib/polypaudio-%%VERSION%%/libprotocol-esound.so +lib/polypaudio-%%VERSION%%/libprotocol-native.a +lib/polypaudio-%%VERSION%%/libprotocol-native.so +lib/polypaudio-%%VERSION%%/libprotocol-simple.a +lib/polypaudio-%%VERSION%%/libprotocol-simple.so +lib/polypaudio-%%VERSION%%/libpstream-util.a +lib/polypaudio-%%VERSION%%/libpstream-util.so +lib/polypaudio-%%VERSION%%/libpstream.a +lib/polypaudio-%%VERSION%%/libpstream.so +lib/polypaudio-%%VERSION%%/libsocket-client.a +lib/polypaudio-%%VERSION%%/libsocket-client.so +lib/polypaudio-%%VERSION%%/libsocket-server.a +lib/polypaudio-%%VERSION%%/libsocket-server.so +lib/polypaudio-%%VERSION%%/libsocket-util.a +lib/polypaudio-%%VERSION%%/libsocket-util.so +lib/polypaudio-%%VERSION%%/libstrlist.a +lib/polypaudio-%%VERSION%%/libstrlist.so +lib/polypaudio-%%VERSION%%/libtagstruct.a +lib/polypaudio-%%VERSION%%/libtagstruct.so +lib/polypaudio-%%VERSION%%/libx11prop.a +lib/polypaudio-%%VERSION%%/libx11prop.so +lib/polypaudio-%%VERSION%%/libx11wrap.a +lib/polypaudio-%%VERSION%%/libx11wrap.so +lib/polypaudio-%%VERSION%%/module-cli-protocol-tcp.so +lib/polypaudio-%%VERSION%%/module-cli-protocol-tcp6.so +lib/polypaudio-%%VERSION%%/module-cli-protocol-unix.so +lib/polypaudio-%%VERSION%%/module-cli.so +lib/polypaudio-%%VERSION%%/module-combine.so +lib/polypaudio-%%VERSION%%/module-esound-compat-spawnfd.so +lib/polypaudio-%%VERSION%%/module-esound-compat-spawnpid.so +lib/polypaudio-%%VERSION%%/module-esound-protocol-tcp.so +lib/polypaudio-%%VERSION%%/module-esound-protocol-tcp6.so +lib/polypaudio-%%VERSION%%/module-esound-protocol-unix.so +lib/polypaudio-%%VERSION%%/module-esound-sink.so +lib/polypaudio-%%VERSION%%/module-match.so +lib/polypaudio-%%VERSION%%/module-native-protocol-fd.so +lib/polypaudio-%%VERSION%%/module-native-protocol-tcp.so +lib/polypaudio-%%VERSION%%/module-native-protocol-tcp6.so +lib/polypaudio-%%VERSION%%/module-native-protocol-unix.so +lib/polypaudio-%%VERSION%%/module-null-sink.so +lib/polypaudio-%%VERSION%%/module-oss-mmap.so +lib/polypaudio-%%VERSION%%/module-oss.so +lib/polypaudio-%%VERSION%%/module-pipe-sink.so +lib/polypaudio-%%VERSION%%/module-pipe-source.so +lib/polypaudio-%%VERSION%%/module-simple-protocol-tcp.so +lib/polypaudio-%%VERSION%%/module-simple-protocol-tcp6.so +lib/polypaudio-%%VERSION%%/module-simple-protocol-unix.so +lib/polypaudio-%%VERSION%%/module-sine.so +lib/polypaudio-%%VERSION%%/module-tunnel-sink.so +lib/polypaudio-%%VERSION%%/module-tunnel-source.so +lib/polypaudio-%%VERSION%%/module-x11-bell.so +lib/polypaudio-%%VERSION%%/module-x11-publish.so +libdata/pkgconfig/polyplib-error.pc +libdata/pkgconfig/polyplib-glib-mainloop.pc +%%GLIB12%%libdata/pkgconfig/polyplib-glib12-mainloop.pc +libdata/pkgconfig/polyplib-mainloop.pc +libdata/pkgconfig/polyplib-simple.pc +libdata/pkgconfig/polyplib.pc +@dirrm lib/polypaudio-%%VERSION%% +@dirrm include/polyp +@unexec rmdir %D/etc/polypaudio 2> /dev/null || /usr/bin/true diff --git a/audio/pulseaudio/Makefile b/audio/pulseaudio/Makefile new file mode 100644 index 000000000..a5920004b --- /dev/null +++ b/audio/pulseaudio/Makefile @@ -0,0 +1,63 @@ +# New ports collection makefile for: polypaudio +# Date created: 29 October 2004 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= polypaudio +PORTVERSION= 0.7 +CATEGORIES= audio +MASTER_SITES= http://0pointer.de/lennart/projects/polypaudio/ + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Sound server for UNIX + +BUILD_DEPENDS= lynx:${PORTSDIR}/www/lynx +LIB_DEPENDS= samplerate.1:${PORTSDIR}/audio/libsamplerate + +USE_GNOME= gnometarget gnomehack glib20 +WANT_GNOME= yes +USE_XLIB= yes +USE_REINPLACE= yes +INSTALLS_SHLIB= yes +USE_LIBTOOL_VER=15 +USE_LIBLTDL= yes +USE_GMAKE= yes +USE_GETOPT_LONG=yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + LIBS="-lm" + +PLIST_SUB= VERSION=${PORTVERSION} + +.include <bsd.port.pre.mk> + +.if ${HAVE_GNOME:Mglib12}!="" +USE_GNOME+= glib12 +PLIST_SUB+= GLIB12="" +.else +PLIST_SUB+= GLIB12="@comment " +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${WRKSRC}/polyp/default.pa.in + @${REINPLACE_CMD} -e 's|seq|jot|' \ + ${WRKSRC}/polyp/esdcompat.sh.in +# 4.x doesn't have float_t +.if ${OSVERSION} < 500000 + @${REINPLACE_CMD} -e 's|float_t|float|g' \ + ${WRKSRC}/polyp/sample-util.c +.endif + +post-install: +.for ii in default.pa daemon.conf client.conf + ${INSTALL_DATA} ${WRKSRC}/polyp/${ii} \ + ${PREFIX}/etc/polypaudio/${ii}-dist +.endfor +.if !defined(PACKAGE_BUILDING) + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.endif + +.include <bsd.port.post.mk> diff --git a/audio/pulseaudio/distinfo b/audio/pulseaudio/distinfo new file mode 100644 index 000000000..0441ff5c9 --- /dev/null +++ b/audio/pulseaudio/distinfo @@ -0,0 +1,2 @@ +MD5 (polypaudio-0.7.tar.gz) = 1c3693ab9c6904dbed6dfa7656778de4 +SIZE (polypaudio-0.7.tar.gz) = 945775 diff --git a/audio/pulseaudio/files/patch-config.h.in b/audio/pulseaudio/files/patch-config.h.in new file mode 100644 index 000000000..a656b2e7a --- /dev/null +++ b/audio/pulseaudio/files/patch-config.h.in @@ -0,0 +1,15 @@ +--- config.h.in.orig Sat Oct 30 01:24:45 2004 ++++ config.h.in Sat Oct 30 01:25:49 2004 +@@ -68,6 +68,12 @@ + /* Define to 1 if you have the `munmap' function. */ + #undef HAVE_MUNMAP + ++/* Define to 1 if you have the `getgrgid_r' function. */ ++#undef HAVE_GETGRGID_R ++ ++/* Define to 1 if you have the `getpwuid_r' function. */ ++#undef HAVE_GETPWUID_R ++ + /* Define to 1 if you have the <netdb.h> header file. */ + #undef HAVE_NETDB_H + diff --git a/audio/pulseaudio/files/patch-configure b/audio/pulseaudio/files/patch-configure new file mode 100644 index 000000000..6f68894a9 --- /dev/null +++ b/audio/pulseaudio/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Fri Dec 31 14:10:44 2004 ++++ configure Fri Dec 31 14:12:12 2004 +@@ -24488,7 +24488,7 @@ + + + +-for ac_func in gethostname gettimeofday memchr memmove memset mkdir mkfifo munmap rmdir socket strcspn strerror strrchr strspn strstr strtol strtoul strcasecmp putenv strchr strpbrk strdup getgrgid_r getpwuid_r regcomp ftruncate select ++for ac_func in gethostname gettimeofday memchr memmove memset mkdir mkfifo munmap rmdir socket strcspn strerror strrchr strspn strstr strtol strtoul strcasecmp putenv strchr strpbrk strdup regcomp ftruncate select + do + as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` + echo "$as_me:$LINENO: checking for $ac_func" >&5 diff --git a/audio/pulseaudio/files/patch-polyp_default.pa.in b/audio/pulseaudio/files/patch-polyp_default.pa.in new file mode 100644 index 000000000..efa10271d --- /dev/null +++ b/audio/pulseaudio/files/patch-polyp_default.pa.in @@ -0,0 +1,11 @@ +--- polyp/default.pa.in.orig Sun Nov 21 22:27:41 2004 ++++ polyp/default.pa.in Fri Dec 31 14:16:34 2004 +@@ -53,7 +53,7 @@ + .nofail + + # Load something to the sample cache +-load-sample x11-bell /usr/share/sounds/KDE_Notify.wav ++load-sample x11-bell %%LOCALBASE%%/share/sounds/KDE_Notify.wav + load-sample-dir-lazy /usr/share/sounds/*.wav + + # Load X11 bell module diff --git a/audio/pulseaudio/files/patch-polyp_module-protocol-stub.c b/audio/pulseaudio/files/patch-polyp_module-protocol-stub.c new file mode 100644 index 000000000..cd2f0113e --- /dev/null +++ b/audio/pulseaudio/files/patch-polyp_module-protocol-stub.c @@ -0,0 +1,10 @@ +--- polyp/module-protocol-stub.c.orig Fri Dec 31 15:22:48 2004 ++++ polyp/module-protocol-stub.c Fri Dec 31 15:34:51 2004 +@@ -28,6 +28,7 @@ + #include <stdio.h> + #include <assert.h> + #include <arpa/inet.h> ++#include <sys/syslimits.h> + #include <unistd.h> + #include <netinet/in.h> + diff --git a/audio/pulseaudio/files/patch-polyp_pid.c b/audio/pulseaudio/files/patch-polyp_pid.c new file mode 100644 index 000000000..2dace12b7 --- /dev/null +++ b/audio/pulseaudio/files/patch-polyp_pid.c @@ -0,0 +1,10 @@ +--- polyp/pid.c.orig Fri Dec 31 15:36:25 2004 ++++ polyp/pid.c Fri Dec 31 15:36:37 2004 +@@ -32,6 +32,7 @@ + #include <assert.h> + #include <stdlib.h> + #include <limits.h> ++#include <sys/stat.h> + #include <signal.h> + + #include "pid.h" diff --git a/audio/pulseaudio/files/patch-polyp_polyplib-context.c b/audio/pulseaudio/files/patch-polyp_polyplib-context.c new file mode 100644 index 000000000..931ab71b8 --- /dev/null +++ b/audio/pulseaudio/files/patch-polyp_polyplib-context.c @@ -0,0 +1,10 @@ +--- polyp/polyplib-context.c.orig Fri Dec 31 14:39:40 2004 ++++ polyp/polyplib-context.c Fri Dec 31 14:40:00 2004 +@@ -29,6 +29,7 @@ + #include <string.h> + #include <sys/types.h> + #include <sys/socket.h> ++#include <sys/syslimits.h> + #include <netdb.h> + #include <unistd.h> + #include <sys/stat.h> diff --git a/audio/pulseaudio/files/patch-polyp_util.c b/audio/pulseaudio/files/patch-polyp_util.c new file mode 100644 index 000000000..580c06850 --- /dev/null +++ b/audio/pulseaudio/files/patch-polyp_util.c @@ -0,0 +1,24 @@ +--- polyp/util.c.orig Sun Nov 21 16:27:41 2004 ++++ polyp/util.c Tue Jan 4 17:13:51 2005 +@@ -34,6 +34,7 @@ + #include <unistd.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <sys/socket.h> + #include <pwd.h> + #include <signal.h> + #include <pthread.h> +@@ -285,7 +286,13 @@ + if ((e = getenv("HOME"))) + return pa_strlcpy(s, e, l); + ++#ifdef HAVE_GETPWUID_R + if (getpwuid_r(getuid(), &pw, buf, sizeof(buf), &r) != 0 || !r) { ++#else ++ /* XXX Not thead-safe, but needed on OSes (e.g. FreeBSD 4.X) ++ * that do not support getpwuid_r. */ ++ if ((r = getpwuid(getuid())) == NULL) { ++#endif + pa_log(__FILE__": getpwuid_r() failed\n"); + return NULL; + } diff --git a/audio/pulseaudio/pkg-descr b/audio/pulseaudio/pkg-descr new file mode 100644 index 000000000..66f44239e --- /dev/null +++ b/audio/pulseaudio/pkg-descr @@ -0,0 +1,21 @@ +Polypaudio is a sound server for UNIX. It is intended to be an improved +drop-in replacement for the Enlightenment Sounds Daemon (ESOUND). In +addition to the features ESDOUND provides, polypaudio has: + +* Extensible plugin architecture (by loading dynamic modules with dlopen()) +* Support for more than one sink/source +* Better low latency behavior +* Embedable into other software (the core is available as C library) +* Completely asynchronous C API +* Simple command line interface for reconfiguring the daemon while running +* Flexible, implicit sample type conversion and resampling +* "Zero-Copy" architecture +* Module autoloading +* Very accurate latency measurement for playback and recording +* May be used to combine multiple sound cards to one (with sample rate + adjustment) +* Client side latency interpolation + +-- Polypaudio homepage + +WWW: http://0pointer.de/lennart/projects/polypaudio/ diff --git a/audio/pulseaudio/pkg-install b/audio/pulseaudio/pkg-install new file mode 100644 index 000000000..f4d1fb112 --- /dev/null +++ b/audio/pulseaudio/pkg-install @@ -0,0 +1,22 @@ +#!/bin/sh + +case $2 in +POST-INSTALL) + GROUP=realtime + GID=557 + PW=/usr/sbin/pw + + if ${PW} group show "${GROUP}" 2>/dev/null; then + echo "You already have a group \"${GROUP}\", so I will use it." + else + if ${PW} groupadd ${GROUP} -g ${GID}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi + fi + + exit 0 + ;; +esac diff --git a/audio/pulseaudio/pkg-plist b/audio/pulseaudio/pkg-plist new file mode 100644 index 000000000..7cec99006 --- /dev/null +++ b/audio/pulseaudio/pkg-plist @@ -0,0 +1,129 @@ +bin/esdcompat.sh +bin/pacat +bin/pacmd +bin/pactl +bin/paplay +bin/parec +bin/pax11publish +bin/polypaudio +@unexec if cmp -s %D/etc/polypaudio/client.conf %D/etc/polypaudio/client.conf-dist; then rm -f %D/etc/polypaudio/client.conf; fi +etc/polypaudio/client.conf-dist +@unexec if cmp -s %D/etc/polypaudio/daemon.conf %D/etc/polypaudio/daemon.conf-dist; then rm -f %D/etc/polypaudio/daemon.conf; fi +etc/polypaudio/daemon.conf-dist +@unexec if cmp -s %D/etc/polypaudio/default.pa %D/etc/polypaudio/default.pa-dist; then rm -f %D/etc/polypaudio/default.pa; fi +etc/polypaudio/default.pa-dist +include/polyp/cdecl.h +include/polyp/glib-mainloop.h +include/polyp/mainloop-api.h +include/polyp/mainloop-signal.h +include/polyp/mainloop.h +include/polyp/polyplib-context.h +include/polyp/polyplib-def.h +include/polyp/polyplib-error.h +include/polyp/polyplib-introspect.h +include/polyp/polyplib-operation.h +include/polyp/polyplib-scache.h +include/polyp/polyplib-simple.h +include/polyp/polyplib-stream.h +include/polyp/polyplib-subscribe.h +include/polyp/polyplib-version.h +include/polyp/polyplib.h +include/polyp/sample.h +lib/libpolyp-%%VERSION%%.a +lib/libpolyp-%%VERSION%%.so +lib/libpolyp-%%VERSION%%.so.0 +lib/libpolyp-error-%%VERSION%%.a +lib/libpolyp-error-%%VERSION%%.so +lib/libpolyp-error-%%VERSION%%.so.0 +lib/libpolyp-mainloop-%%VERSION%%.a +lib/libpolyp-mainloop-%%VERSION%%.so +lib/libpolyp-mainloop-%%VERSION%%.so.0 +lib/libpolyp-mainloop-glib-%%VERSION%%.a +lib/libpolyp-mainloop-glib-%%VERSION%%.so +lib/libpolyp-mainloop-glib-%%VERSION%%.so.0 +%%GLIB12%%lib/libpolyp-mainloop-glib12-%%VERSION%%.a +%%GLIB12%%lib/libpolyp-mainloop-glib12-%%VERSION%%.so +%%GLIB12%%lib/libpolyp-mainloop-glib12-%%VERSION%%.so.0 +lib/libpolyp-simple-%%VERSION%%.a +lib/libpolyp-simple-%%VERSION%%.so +lib/libpolyp-simple-%%VERSION%%.so.0 +lib/polypaudio-%%VERSION%%/libauthkey-prop.a +lib/polypaudio-%%VERSION%%/libauthkey-prop.so +lib/polypaudio-%%VERSION%%/libauthkey.a +lib/polypaudio-%%VERSION%%/libauthkey.so +lib/polypaudio-%%VERSION%%/libcli.a +lib/polypaudio-%%VERSION%%/libcli.so +lib/polypaudio-%%VERSION%%/libiochannel.a +lib/polypaudio-%%VERSION%%/libiochannel.so +lib/polypaudio-%%VERSION%%/libioline.a +lib/polypaudio-%%VERSION%%/libioline.so +lib/polypaudio-%%VERSION%%/liboss-util.a +lib/polypaudio-%%VERSION%%/liboss-util.so +lib/polypaudio-%%VERSION%%/libpacket.a +lib/polypaudio-%%VERSION%%/libpacket.so +lib/polypaudio-%%VERSION%%/libpdispatch.a +lib/polypaudio-%%VERSION%%/libpdispatch.so +lib/polypaudio-%%VERSION%%/libprotocol-cli.a +lib/polypaudio-%%VERSION%%/libprotocol-cli.so +lib/polypaudio-%%VERSION%%/libprotocol-esound.a +lib/polypaudio-%%VERSION%%/libprotocol-esound.so +lib/polypaudio-%%VERSION%%/libprotocol-native.a +lib/polypaudio-%%VERSION%%/libprotocol-native.so +lib/polypaudio-%%VERSION%%/libprotocol-simple.a +lib/polypaudio-%%VERSION%%/libprotocol-simple.so +lib/polypaudio-%%VERSION%%/libpstream-util.a +lib/polypaudio-%%VERSION%%/libpstream-util.so +lib/polypaudio-%%VERSION%%/libpstream.a +lib/polypaudio-%%VERSION%%/libpstream.so +lib/polypaudio-%%VERSION%%/libsocket-client.a +lib/polypaudio-%%VERSION%%/libsocket-client.so +lib/polypaudio-%%VERSION%%/libsocket-server.a +lib/polypaudio-%%VERSION%%/libsocket-server.so +lib/polypaudio-%%VERSION%%/libsocket-util.a +lib/polypaudio-%%VERSION%%/libsocket-util.so +lib/polypaudio-%%VERSION%%/libstrlist.a +lib/polypaudio-%%VERSION%%/libstrlist.so +lib/polypaudio-%%VERSION%%/libtagstruct.a +lib/polypaudio-%%VERSION%%/libtagstruct.so +lib/polypaudio-%%VERSION%%/libx11prop.a +lib/polypaudio-%%VERSION%%/libx11prop.so +lib/polypaudio-%%VERSION%%/libx11wrap.a +lib/polypaudio-%%VERSION%%/libx11wrap.so +lib/polypaudio-%%VERSION%%/module-cli-protocol-tcp.so +lib/polypaudio-%%VERSION%%/module-cli-protocol-tcp6.so +lib/polypaudio-%%VERSION%%/module-cli-protocol-unix.so +lib/polypaudio-%%VERSION%%/module-cli.so +lib/polypaudio-%%VERSION%%/module-combine.so +lib/polypaudio-%%VERSION%%/module-esound-compat-spawnfd.so +lib/polypaudio-%%VERSION%%/module-esound-compat-spawnpid.so +lib/polypaudio-%%VERSION%%/module-esound-protocol-tcp.so +lib/polypaudio-%%VERSION%%/module-esound-protocol-tcp6.so +lib/polypaudio-%%VERSION%%/module-esound-protocol-unix.so +lib/polypaudio-%%VERSION%%/module-esound-sink.so +lib/polypaudio-%%VERSION%%/module-match.so +lib/polypaudio-%%VERSION%%/module-native-protocol-fd.so +lib/polypaudio-%%VERSION%%/module-native-protocol-tcp.so +lib/polypaudio-%%VERSION%%/module-native-protocol-tcp6.so +lib/polypaudio-%%VERSION%%/module-native-protocol-unix.so +lib/polypaudio-%%VERSION%%/module-null-sink.so +lib/polypaudio-%%VERSION%%/module-oss-mmap.so +lib/polypaudio-%%VERSION%%/module-oss.so +lib/polypaudio-%%VERSION%%/module-pipe-sink.so +lib/polypaudio-%%VERSION%%/module-pipe-source.so +lib/polypaudio-%%VERSION%%/module-simple-protocol-tcp.so +lib/polypaudio-%%VERSION%%/module-simple-protocol-tcp6.so +lib/polypaudio-%%VERSION%%/module-simple-protocol-unix.so +lib/polypaudio-%%VERSION%%/module-sine.so +lib/polypaudio-%%VERSION%%/module-tunnel-sink.so +lib/polypaudio-%%VERSION%%/module-tunnel-source.so +lib/polypaudio-%%VERSION%%/module-x11-bell.so +lib/polypaudio-%%VERSION%%/module-x11-publish.so +libdata/pkgconfig/polyplib-error.pc +libdata/pkgconfig/polyplib-glib-mainloop.pc +%%GLIB12%%libdata/pkgconfig/polyplib-glib12-mainloop.pc +libdata/pkgconfig/polyplib-mainloop.pc +libdata/pkgconfig/polyplib-simple.pc +libdata/pkgconfig/polyplib.pc +@dirrm lib/polypaudio-%%VERSION%% +@dirrm include/polyp +@unexec rmdir %D/etc/polypaudio 2> /dev/null || /usr/bin/true |