diff options
author | Michales Michaloudes <korgie@gmail.com> | 2011-10-17 10:17:58 -0200 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-10-17 10:17:58 -0200 |
commit | 7921d3352c207c1bf96da7068f0d69b64dd4b53a (patch) | |
tree | ea91483773409b158525bf3a1804df4b34f88a74 /audio/vmpk | |
parent | f651982f07f4382992bceb73c305d3b5354ae064 (diff) |
audio/vmpk: Updated for version 0.4.0 (+moved from multimedia)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'audio/vmpk')
-rw-r--r-- | audio/vmpk/README | 7 | ||||
-rw-r--r-- | audio/vmpk/doinst.sh | 10 | ||||
-rw-r--r-- | audio/vmpk/slack-desc | 19 | ||||
-rw-r--r-- | audio/vmpk/vmpk.SlackBuild | 82 | ||||
-rw-r--r-- | audio/vmpk/vmpk.info | 10 |
5 files changed, 128 insertions, 0 deletions
diff --git a/audio/vmpk/README b/audio/vmpk/README new file mode 100644 index 000000000000..82fa797d26ba --- /dev/null +++ b/audio/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/audio/vmpk/doinst.sh b/audio/vmpk/doinst.sh new file mode 100644 index 000000000000..1f8ff67dedb2 --- /dev/null +++ b/audio/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/audio/vmpk/slack-desc b/audio/vmpk/slack-desc new file mode 100644 index 000000000000..ab1ff62ff4e0 --- /dev/null +++ b/audio/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/audio/vmpk/vmpk.SlackBuild b/audio/vmpk/vmpk.SlackBuild new file mode 100644 index 000000000000..f210b093a872 --- /dev/null +++ b/audio/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.4.0} +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/audio/vmpk/vmpk.info b/audio/vmpk/vmpk.info new file mode 100644 index 000000000000..da3cd846ee11 --- /dev/null +++ b/audio/vmpk/vmpk.info @@ -0,0 +1,10 @@ +PRGNAM="vmpk" +VERSION="0.4.0" +HOMEPAGE="http://vmpk.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/project/vmpk/vmpk/0.4.0/vmpk-0.4.0.tar.bz2" +MD5SUM="bc54ac39fe02ce3cbed4b2b7f82cd70f" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Michales Michaloudes" +EMAIL="korgie@gmail.com" +APPROVED="Niels Horn" |