diff options
author | Michales Michaloudes <korgie@gmail.com> | 2011-07-09 22:14:37 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-07-14 19:50:59 -0300 |
commit | 517e4c6e1530d6e64e234c69bf4faa54ab3eaf61 (patch) | |
tree | c8e2b58103038ea9d0b35aeec06ca9f8ba3b5292 | |
parent | 493cc1ff38009e49bacf02897fe318ae8fcb6c23 (diff) | |
download | slackbuilds-517e4c6e1530d6e64e234c69bf4faa54ab3eaf61.tar.gz |
multimedia/vmpk: Added (Virtual Midi Piano Keyboard)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
-rw-r--r-- | multimedia/vmpk/README | 7 | ||||
-rw-r--r-- | multimedia/vmpk/doinst.sh | 10 | ||||
-rw-r--r-- | multimedia/vmpk/slack-desc | 19 | ||||
-rw-r--r-- | multimedia/vmpk/vmpk.SlackBuild | 82 | ||||
-rw-r--r-- | multimedia/vmpk/vmpk.info | 10 |
5 files changed, 128 insertions, 0 deletions
diff --git a/multimedia/vmpk/README b/multimedia/vmpk/README new file mode 100644 index 0000000000..82fa797d26 --- /dev/null +++ b/multimedia/vmpk/README @@ -0,0 +1,7 @@ +Virtual MIDI Piano Keyboard is a MIDI events generator and receiver. It +doesn't produce any sound by itself, but can be used to drive a MIDI +synthesizer (either hardware or software, internal or external). You can +use the computer's keyboard to play MIDI notes, and also the mouse. You +can use the Virtual MIDI Piano Keyboard to display the played MIDI notes +from another instrument or MIDI file player. To do so, connect the other +MIDI port to the input port of VMPK. diff --git a/multimedia/vmpk/doinst.sh b/multimedia/vmpk/doinst.sh new file mode 100644 index 0000000000..1f8ff67ded --- /dev/null +++ b/multimedia/vmpk/doinst.sh @@ -0,0 +1,10 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + diff --git a/multimedia/vmpk/slack-desc b/multimedia/vmpk/slack-desc new file mode 100644 index 0000000000..ab1ff62ff4 --- /dev/null +++ b/multimedia/vmpk/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 ':'. + + |-----handy-ruler------------------------------------------------------| +vmpk: vmpk (Virtual Midi Piano Keyboard) +vmpk: +vmpk: Virtual MIDI Piano Keyboard is a MIDI events generator and receiver. +vmpk: it doesn't produce any sound by itself, but can be used to drive a +vmpk: MIDI synthesizer (either hardware or software, internal or external). +vmpk: You can use the computer's keyboard to play MIDI notes, and also the +vmpk: mouse. +vmpk: +vmpk: You can use the Virtual MIDI Piano Keyboard to display +vmpk: the played MIDI notes from another instrument or MIDI file player. To +vmpk: do so, connect the other MIDI port to the input port of VMPK. diff --git a/multimedia/vmpk/vmpk.SlackBuild b/multimedia/vmpk/vmpk.SlackBuild new file mode 100644 index 0000000000..f204c2596b --- /dev/null +++ b/multimedia/vmpk/vmpk.SlackBuild @@ -0,0 +1,82 @@ +#!/bin/sh +# Slackware build script for <vmpk> +# Written by Michales Michaloudes korgie@gmail.com + +PRGNAM=vmpk +VERSION=${VERSION:-0.3.3} +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 -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +cmake . \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ + -DBUILD_SHARED_LIBS:BOOL=ON + +make +make install DESTDIR=$PKG + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +# fix location of man page +mv $PKG/usr/share/man $PKG/usr/ +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog README TODO NEWS gpl.rtf \ + $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 +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/multimedia/vmpk/vmpk.info b/multimedia/vmpk/vmpk.info new file mode 100644 index 0000000000..3ce05583aa --- /dev/null +++ b/multimedia/vmpk/vmpk.info @@ -0,0 +1,10 @@ +PRGNAM="vmpk" +VERSION="0.3.3" +HOMEPAGE="http://vmpk.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/project/vmpk/vmpk/0.3.3/vmpk-0.3.3.tar.bz2" +MD5SUM="f3d4e86975c948afe94702964ce73a86" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Michales Michaloudes" +EMAIL="korgie@gmail.com" +APPROVED="Niels Horn" |