mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
PulseAudio plugin for ALSA
WWW: http://pulseaudio.org/ PR: ports/147549 Submitted by: hashiz
This commit is contained in:
parent
4c1882bbe4
commit
a6a5e1ef70
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=273302
@ -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
|
||||
|
32
audio/linux-f10-alsa-plugins-oss/Makefile
Normal file
32
audio/linux-f10-alsa-plugins-oss/Makefile
Normal file
@ -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>
|
4
audio/linux-f10-alsa-plugins-oss/distinfo.i386
Normal file
4
audio/linux-f10-alsa-plugins-oss/distinfo.i386
Normal file
@ -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
|
14
audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf
Normal file
14
audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf
Normal file
@ -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"
|
||||
+ }
|
||||
+}
|
16
audio/linux-f10-alsa-plugins-oss/pkg-deinstall
Normal file
16
audio/linux-f10-alsa-plugins-oss/pkg-deinstall
Normal file
@ -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
|
3
audio/linux-f10-alsa-plugins-oss/pkg-descr
Normal file
3
audio/linux-f10-alsa-plugins-oss/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
PulseAudio plugin for ALSA
|
||||
|
||||
WWW: http://pulseaudio.org/
|
18
audio/linux-f10-alsa-plugins-oss/pkg-install
Normal file
18
audio/linux-f10-alsa-plugins-oss/pkg-install
Normal file
@ -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
|
11
audio/linux-f10-alsa-plugins-oss/pkg-plist
Normal file
11
audio/linux-f10-alsa-plugins-oss/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user