aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2011-04-29 03:55:29 +0800
committernox <nox@FreeBSD.org>2011-04-29 03:55:29 +0800
commitd1cd07880d3f252b52a22d8aacc380c569d59c87 (patch)
treefc21704af259199e62aa8c9577eb819a849d7010 /audio
parent15ce874eb7931367dd87cc98c2f7be4b837933b8 (diff)
downloadfreebsd-ports-gnome-d1cd07880d3f252b52a22d8aacc380c569d59c87.tar.gz
freebsd-ports-gnome-d1cd07880d3f252b52a22d8aacc380c569d59c87.tar.zst
freebsd-ports-gnome-d1cd07880d3f252b52a22d8aacc380c569d59c87.zip
PulseAudio plugin for ALSA
WWW: http://pulseaudio.org/ PR: ports/147549 Submitted by: hashiz
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile1
-rw-r--r--audio/linux-f10-alsa-plugins-oss/Makefile32
-rw-r--r--audio/linux-f10-alsa-plugins-oss/distinfo.i3864
-rw-r--r--audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf14
-rw-r--r--audio/linux-f10-alsa-plugins-oss/pkg-deinstall16
-rw-r--r--audio/linux-f10-alsa-plugins-oss/pkg-descr3
-rw-r--r--audio/linux-f10-alsa-plugins-oss/pkg-install18
-rw-r--r--audio/linux-f10-alsa-plugins-oss/pkg-plist11
8 files changed, 99 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 86d5537194ad..b3c6b4776b29 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -412,6 +412,7 @@
SUBDIR += linux-arts
SUBDIR += linux-esound
SUBDIR += linux-f10-alsa-lib
+ SUBDIR += linux-f10-alsa-plugins-oss
SUBDIR += linux-f10-arts
SUBDIR += linux-f10-esound
SUBDIR += linux-f10-freealut
diff --git a/audio/linux-f10-alsa-plugins-oss/Makefile b/audio/linux-f10-alsa-plugins-oss/Makefile
new file mode 100644
index 000000000000..db5fd12d88b6
--- /dev/null
+++ b/audio/linux-f10-alsa-plugins-oss/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: audio/linux-f10-alsa-plugins-oss
+# Date created: 2010-06-06
+# Whom: hashiz
+#
+# $FreeBSD$
+#
+
+PORTNAME= alsa-plugins-oss
+PORTVERSION= 1.0.21
+PORTREVISION= 1
+CATEGORIES= audio linux
+PKGNAMEPREFIX= linux-f10-
+DISTNAME= ${PORTNAME}-${PORTVERSION}-${RPMVERSION}
+
+MAINTAINER= hashiz@meridiani.jp
+COMMENT= OSS plugin for ALSA (Linux Fedora 10)
+
+ONLY_FOR_ARCHS= i386 amd64
+USE_LINUX_RPM= yes
+USE_LINUX_APPS= alsalib
+LINUX_DIST_VER= 10
+RPMVERSION= 3.fc10
+SRC_DISTFILES= ${PORTNAME:S/-oss//}-${PORTVERSION}-${RPMVERSION}.src.rpm
+USE_LDCONFIG= yes
+
+post-patch:
+ ${RM} ${WRKDIR}/etc/alsa/pcm/pcm-oss.conf.orig
+
+post-install:
+ PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>
diff --git a/audio/linux-f10-alsa-plugins-oss/distinfo.i386 b/audio/linux-f10-alsa-plugins-oss/distinfo.i386
new file mode 100644
index 000000000000..e0a53394cb0b
--- /dev/null
+++ b/audio/linux-f10-alsa-plugins-oss/distinfo.i386
@@ -0,0 +1,4 @@
+SHA256 (rpm/i386/fedora/10/alsa-plugins-oss-1.0.21-3.fc10.i386.rpm) = 60f61d38f02e9463b4f8b98f0fe2320e36207e740f72ee6b7d6b56553729638a
+SIZE (rpm/i386/fedora/10/alsa-plugins-oss-1.0.21-3.fc10.i386.rpm) = 29350
+SHA256 (rpm/i386/fedora/10/alsa-plugins-1.0.21-3.fc10.src.rpm) = 3a6d04b23d326e375f14dba73daf2c0d9e54ba149df8b431238b184dc4607467
+SIZE (rpm/i386/fedora/10/alsa-plugins-1.0.21-3.fc10.src.rpm) = 338350
diff --git a/audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf b/audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf
new file mode 100644
index 000000000000..ca58f1b46e34
--- /dev/null
+++ b/audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf
@@ -0,0 +1,14 @@
+--- etc/alsa/pcm/pcm-oss.conf.orig 2010-03-23 10:56:41.000000000 +0900
++++ etc/alsa/pcm/pcm-oss.conf 2010-03-23 10:57:30.000000000 +0900
+@@ -7,3 +7,11 @@
+ description "Open Sound System"
+ }
+ }
++
++ctl.oss {
++ type oss
++ device /dev/mixer
++ hint {
++ description "Open Sound System"
++ }
++}
diff --git a/audio/linux-f10-alsa-plugins-oss/pkg-deinstall b/audio/linux-f10-alsa-plugins-oss/pkg-deinstall
new file mode 100644
index 000000000000..22b3172b23f6
--- /dev/null
+++ b/audio/linux-f10-alsa-plugins-oss/pkg-deinstall
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+case "$2" in
+ POST-DEINSTALL)
+ conf=${PKG_PREFIX}/etc/asound.conf
+ if [ ! -f "$conf" ]; then
+ exit 1
+ fi
+ grep -v '/etc/alsa/pcm/pcm-oss\.conf' <$conf >/tmp/asound.conf.new
+ ;;
+ *)
+ exit 0
+ ;;
+esac
+
+exit 0
diff --git a/audio/linux-f10-alsa-plugins-oss/pkg-descr b/audio/linux-f10-alsa-plugins-oss/pkg-descr
new file mode 100644
index 000000000000..75a3967e2bdf
--- /dev/null
+++ b/audio/linux-f10-alsa-plugins-oss/pkg-descr
@@ -0,0 +1,3 @@
+PulseAudio plugin for ALSA
+
+WWW: http://pulseaudio.org/
diff --git a/audio/linux-f10-alsa-plugins-oss/pkg-install b/audio/linux-f10-alsa-plugins-oss/pkg-install
new file mode 100644
index 000000000000..b77ca3d001c3
--- /dev/null
+++ b/audio/linux-f10-alsa-plugins-oss/pkg-install
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+case "$2" in
+ POST-INSTALL)
+ conf=${PKG_PREFIX}/etc/asound.conf
+ if [ ! -f "$conf" ]; then
+ exit 1
+ fi
+ awk '{print $0}; /files/ { print "\t\t\t\"/etc/alsa/pcm/pcm-oss.conf\""}' <$conf >/tmp/asound.conf.new
+ mv /tmp/asound.conf.new $conf
+ exit 0
+ ;;
+ *)
+ exit 0
+ ;;
+esac
+
+exit 0
diff --git a/audio/linux-f10-alsa-plugins-oss/pkg-plist b/audio/linux-f10-alsa-plugins-oss/pkg-plist
new file mode 100644
index 000000000000..424dd80d143f
--- /dev/null
+++ b/audio/linux-f10-alsa-plugins-oss/pkg-plist
@@ -0,0 +1,11 @@
+etc/alsa/pcm/pcm-oss.conf
+usr/lib/alsa-lib/libasound_module_ctl_oss.so
+usr/lib/alsa-lib/libasound_module_pcm_oss.so
+usr/share/doc/alsa-plugins-oss-1.0.21/COPYING
+usr/share/doc/alsa-plugins-oss-1.0.21/COPYING.GPL
+usr/share/doc/alsa-plugins-oss-1.0.21/README-pcm-oss
+@dirrm usr/share/doc/alsa-plugins-oss-1.0.21
+@dirrmtry etc/alsa/pcm
+@dirrmtry etc/alsa
+@dirrmtry usr/lib/alsa-lib
+@unexec if [ -f %D/etc/asound.conf ]; then grep -v '/etc/alsa/pcm/pcm-oss\.conf' <%D/etc/asound.conf >/tmp/asound.conf.new; mv /tmp/asound.conf.new %D/etc/asound.conf; fi