diff options
author | Yanes Checcacci Balod <yanes@pobox.com> | 2014-04-24 17:20:34 +0700 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2014-04-27 12:18:16 -0500 |
commit | 439167b13392d202238e25c87cd0ea9e31ca4feb (patch) | |
tree | e436b31b56d420de79e378b39b45fb23d33edb80 /audio | |
parent | 3bd30f3ac541a5d97a97ca6e3296afc77db0a568 (diff) | |
download | slackbuilds-439167b13392d202238e25c87cd0ea9e31ca4feb.tar.gz |
audio/volume.app: Added (windowmaker volume control dockapp).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/volume.app/README | 29 | ||||
-rw-r--r-- | audio/volume.app/config.h.in | 27 | ||||
-rw-r--r-- | audio/volume.app/slack-desc | 19 | ||||
-rw-r--r-- | audio/volume.app/volume.app.SlackBuild | 92 | ||||
-rw-r--r-- | audio/volume.app/volume.app.info | 10 |
5 files changed, 177 insertions, 0 deletions
diff --git a/audio/volume.app/README b/audio/volume.app/README new file mode 100644 index 0000000000..56a635125d --- /dev/null +++ b/audio/volume.app/README @@ -0,0 +1,29 @@ +========================================================================== +Volume.app -- a simple windowmaker volume control dockapp +========================================================================== + +This is a simple volume control for the AfterStep / BlackBox / Window +Maker dock. Volume.app is intended to be an extremely simple, efficient, and +attractive interface to a system's sound mixer. + +Currently, only OSS mixer interface is supported. ALSA mixer can be used through +ALSA's OSS emulation. + + + +========================================================================== +NOTE1: look into "config.h.in" to set some options as needed; + +NOTE2: If the system is on "ALSA's OSS emulation" and the app didn't run OK, + remove the package and re-create it with those procedures: + + 'cat /proc/asound/oss/sndstat' and search the "Mixers" section. + locate the desired 'mixer number' and then modify file "config.h.in", + at "DEFAULT_MIXER_DEVICE" parameter. Then, re-create the package. + + Eg: if desired mixer is "2", modify "config.h.in" as below: + + DEFAULT_MIXER_DEVICE "/dev/mixer" + ( to ) + DEFAULT_MIXER_DEVICE "/dev/mixer2" +========================================================================== diff --git a/audio/volume.app/config.h.in b/audio/volume.app/config.h.in new file mode 100644 index 0000000000..7bba141e6c --- /dev/null +++ b/audio/volume.app/config.h.in @@ -0,0 +1,27 @@ +/* config.h */ + +#define _GNU_SOURCE +#define VERSION "@VERSION@" + +#ifndef DEBUG +#define NDEBUG +#endif + +/* All these settings should eventually be configurable via libPropList */ + +/* Note that within the program, the first source is 0 and not 1 + */ +#define DEFAULT_SOURCE 0 + +#define DEFAULT_MIXER_DEVICE "/dev/mixer" + +/* units: seconds + */ +#define MAX_DOUBLE_CLICK_TIME 0.5 + +/* X11 wheel button codes (for wheel mice) + */ +#define BUTTON_WHEEL_UP 4 +#define BUTTON_WHEEL_DOWN 5 + +/* end config.h */ diff --git a/audio/volume.app/slack-desc b/audio/volume.app/slack-desc new file mode 100644 index 0000000000..881b59f4d7 --- /dev/null +++ b/audio/volume.app/slack-desc @@ -0,0 +1,19 @@ +# 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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +volume.app: volume.app (a simple windowmaker volume control dockapp) +volume.app: +volume.app: This is a simple volume control for the AfterStep / BlackBox / +volume.app: Window Maker dock. Volume.app is intended to be an extremely +volume.app: simple, efficient, and attractive interface to a system's +volume.app: sound mixer. +volume.app: +volume.app: Currently, only OSS mixer interface is supported. But... +volume.app: ALSA mixer can be used through ALSA's OSS emulation. +volume.app: +volume.app: diff --git a/audio/volume.app/volume.app.SlackBuild b/audio/volume.app/volume.app.SlackBuild new file mode 100644 index 0000000000..74a2a2bb3b --- /dev/null +++ b/audio/volume.app/volume.app.SlackBuild @@ -0,0 +1,92 @@ +#!/bin/sh + +# Slackware build script for Volume.app + +# Copyright (c) 2014, Yanes Checcacci Balod <yanes@pobox.com>, Brazil +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=volume.app +VERSION=${VERSION:-1.1a} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/volume-app-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +sed -i "s|/usr/local|/usr/|" Makefile + +# by default, this is the same file as in source +# if you are using ALSA, you need to edit this file as stated in README +# before proceeding +cp $CWD/config.h.in . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +make +make install PREFIX=$PKG/usr + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog INSTALL README TODO $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/audio/volume.app/volume.app.info b/audio/volume.app/volume.app.info new file mode 100644 index 0000000000..686682f4a8 --- /dev/null +++ b/audio/volume.app/volume.app.info @@ -0,0 +1,10 @@ +PRGNAM="volume.app" +VERSION="1.1a" +HOMEPAGE="http://volume-app.sourceforge.net/" +DOWNLOAD="http://sourceforge.net/projects/volume-app/files/volume-app/1.1a/volume-app-1.1a.tar.gz" +MD5SUM="4c1b180fa54e90e113fa8a1c02e660f2" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Yanes Checcacci Balod" +EMAIL="yanes@pobox.com" |