diff options
Diffstat (limited to 'base/sound')
-rw-r--r-- | base/sound/alsa-utils-1.0.27-alsactlbufferoverflow.patch.xz | bin | 0 -> 540 bytes | |||
-rw-r--r-- | base/sound/alsa-utils-1.0.27-arecord.patch.xz | bin | 0 -> 524 bytes | |||
-rw-r--r-- | base/sound/alsa-utils-1.0.27-desktopfile.patch.xz | bin | 0 -> 584 bytes | |||
-rw-r--r-- | base/sound/alsa-utils-1.0.27-manfix.patch.xz | bin | 0 -> 536 bytes | |||
-rw-r--r-- | base/sound/alsa-utils-1.0.27-pcsp.patch.xz | bin | 0 -> 220 bytes | |||
-rw-r--r-- | base/sound/alsa-utils-1.0.27-servicetypo.patch.xz | bin | 0 -> 276 bytes | |||
-rw-r--r-- | base/sound/alsa-utils-1.0.27-sysvinit.patch.xz | bin | 0 -> 508 bytes | |||
-rw-r--r-- | base/sound/alsa-utils-1.0.27-tmpfilesd.patch.xz | bin | 0 -> 252 bytes | |||
-rwxr-xr-x | base/sound/sound.build | 132 |
9 files changed, 132 insertions, 0 deletions
diff --git a/base/sound/alsa-utils-1.0.27-alsactlbufferoverflow.patch.xz b/base/sound/alsa-utils-1.0.27-alsactlbufferoverflow.patch.xz Binary files differnew file mode 100644 index 0000000..e9c2ed9 --- /dev/null +++ b/base/sound/alsa-utils-1.0.27-alsactlbufferoverflow.patch.xz diff --git a/base/sound/alsa-utils-1.0.27-arecord.patch.xz b/base/sound/alsa-utils-1.0.27-arecord.patch.xz Binary files differnew file mode 100644 index 0000000..64915ae --- /dev/null +++ b/base/sound/alsa-utils-1.0.27-arecord.patch.xz diff --git a/base/sound/alsa-utils-1.0.27-desktopfile.patch.xz b/base/sound/alsa-utils-1.0.27-desktopfile.patch.xz Binary files differnew file mode 100644 index 0000000..7b2dc7e --- /dev/null +++ b/base/sound/alsa-utils-1.0.27-desktopfile.patch.xz diff --git a/base/sound/alsa-utils-1.0.27-manfix.patch.xz b/base/sound/alsa-utils-1.0.27-manfix.patch.xz Binary files differnew file mode 100644 index 0000000..46cb33a --- /dev/null +++ b/base/sound/alsa-utils-1.0.27-manfix.patch.xz diff --git a/base/sound/alsa-utils-1.0.27-pcsp.patch.xz b/base/sound/alsa-utils-1.0.27-pcsp.patch.xz Binary files differnew file mode 100644 index 0000000..7d5a129 --- /dev/null +++ b/base/sound/alsa-utils-1.0.27-pcsp.patch.xz diff --git a/base/sound/alsa-utils-1.0.27-servicetypo.patch.xz b/base/sound/alsa-utils-1.0.27-servicetypo.patch.xz Binary files differnew file mode 100644 index 0000000..5e689ff --- /dev/null +++ b/base/sound/alsa-utils-1.0.27-servicetypo.patch.xz diff --git a/base/sound/alsa-utils-1.0.27-sysvinit.patch.xz b/base/sound/alsa-utils-1.0.27-sysvinit.patch.xz Binary files differnew file mode 100644 index 0000000..c602034 --- /dev/null +++ b/base/sound/alsa-utils-1.0.27-sysvinit.patch.xz diff --git a/base/sound/alsa-utils-1.0.27-tmpfilesd.patch.xz b/base/sound/alsa-utils-1.0.27-tmpfilesd.patch.xz Binary files differnew file mode 100644 index 0000000..b2d7785 --- /dev/null +++ b/base/sound/alsa-utils-1.0.27-tmpfilesd.patch.xz diff --git a/base/sound/sound.build b/base/sound/sound.build new file mode 100755 index 0000000..7125abc --- /dev/null +++ b/base/sound/sound.build @@ -0,0 +1,132 @@ +#!/bin/bash +# +# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd> + +source /usr/src/ports/Build/build.sh + +NAME=sound +VERSION=1.0.27 +BUILD=1 + +# Description + +cat > ${PKG}/install/slack-desc <<EOF +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + +$(padd)|-----handy-ruler------------------------------------------------------| +${NAME}: sound (Advanced Linux Sound Architecture) +${NAME}: +${NAME}: The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI +${NAME}: functionality to the Linux operating system. +${NAME}: +${NAME}: This package provides the ALSA libraries and utilities. +${NAME}: +${NAME}: Homepage: http://alsa-project.org +${NAME}: +${NAME}: +${NAME}: +EOF + +cat >> ${PKG}/install/doinst.sh <<EOF +#!/bin/sh + +config() { + NEW="\$1" + OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r \$OLD ]; then + mv \$NEW \$OLD + elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then + # toss the redundant copy + rm \$NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/modprobe.d/snd-pcsp.conf.new +config etc/rc.d/rc.alsa.new + +if [ ! -d run/alsactl ]; then + install -d -m 0755 run/alsactl +fi +EOF + +# Sources + +ALSAREPO="ftp://ftp.alsa-project.org/pub/lib" + +SRCNAME[0]=alsa-lib +SRCVERS[0]=${VERSION} +SRCPACK[0]=${ALSAREPO}/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2 +SRCCOPY[0]="LGPL21" + +build0() +{ +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --disable-dependency-tracking \ + --disable-silent-rules \ + --enable-static=no \ + --enable-shared=yes \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --sysconfdir="${SYS_DIR[etc]}/alsa" \ + --libdir="${SYS_DIR[lib]}" \ + --localstatedir="${SYS_DIR[var]}" \ + --disable-python \ + --with-configdir="${SYS_DIR[share]}/alsa" \ + --with-plugindir="${SYS_DIR[lib]}/plugins/alsa-1" \ + --with-pkgconfdir="${SYS_DIR[share]}/pkgconfig" +make ${JOBS} V=1 +make install DESTDIR="${PKG}" +install.dir ${PKG}${SYS_DIR[etc]}/alsa +install.dat doc/asoundrc.txt ${PKG}${SYS_DIR[etc]}/alsa/asoundrc.sample +} + +SRCNAME[1]=alsa-utils +SRCVERS[1]=${VERSION} +SRCPACK[1]=${ALSAREPO}/${SRCNAME[1]}-${SRCVERS[1]}.tar.bz2 +SRCCOPY[1]="GPL2" + +build1() +{ +CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ +./configure \ + --build="${ARCH}-slackware-linux" \ + --disable-dependency-tracking \ + --disable-silent-rules \ + --disable-rpath \ + --prefix="${SYS_DIR[usr]}" \ + --mandir="${SYS_DIR[man]}" \ + --sysconfdir="${SYS_DIR[etc]}/alsa" \ + --libdir="${SYS_DIR[lib]}" \ + --localstatedir="${SYS_DIR[var]}" \ + --disable-xmlto \ + --disable-alsaconf \ + --with-alsa-prefix="${PKG}${SYS_DIR[lib]}" \ + --with-alsa-inc-prefix="${PKG}${SYS_DIR[include]}" \ + --with-udev-rules-dir="${SYS_DIR[udevrules]}" \ + --with-systemdsystemunitdir="${SYS_DIR[systemdsystemunitdir]}" \ + --with-asound-state-dir="${SYS_DIR[var]}/lib/alsa" \ + --with-alsactl-pidfile-dir="${SYS_DIR[run]}/alsactl" +make ${JOBS} V=1 +make install DESTDIR="${PKG}" +install.dir ${PKG}${SYS_DIR[etc]}/{rc,modprobe,tmpfiles}.d +install.cfg alsactl.conf.tmpfiles ${PKG}${SYS_DIR[etc]}/tmpfiles.d/alsactl.conf +install.bin rc.alsa ${PKG}${SYS_DIR[etc]}/rc.d/rc.alsa.new +install.cfg snd-pcsp.conf.modprobe ${PKG}${SYS_DIR[etc]}/modprobe.d/snd-pcsp.conf.new +install.dir ${PKG}${SYS_DIR[share]}/applications +install.dat alsamixer.desktop ${PKG}${SYS_DIR[share]}/applications +mv \ + ${PKG}${SYS_DIR[man]}/man7 \ + ${PKG}${SYS_DIR[man]}/man8 +mv \ + ${PKG}${SYS_DIR[man]}/man1/alsactl.1 \ + ${PKG}${SYS_DIR[man]}/man8/alsactl.8 +} |