diff options
author | Arcady Genkin <agenkin@gentoo.org> | 2002-12-21 05:17:05 +0000 |
---|---|---|
committer | Arcady Genkin <agenkin@gentoo.org> | 2002-12-21 05:17:05 +0000 |
commit | 0f3dffa6fe48d524e11257ea6dcfd5ac203cd2cd (patch) | |
tree | 674e8547a1dde42590f462bf66f6d98594a323a1 /media-sound/vkeybd | |
parent | Initial version. Closes #12198. (diff) | |
download | gentoo-2-0f3dffa6fe48d524e11257ea6dcfd5ac203cd2cd.tar.gz gentoo-2-0f3dffa6fe48d524e11257ea6dcfd5ac203cd2cd.tar.bz2 gentoo-2-0f3dffa6fe48d524e11257ea6dcfd5ac203cd2cd.zip |
Initial version. Closes #12217.
Diffstat (limited to 'media-sound/vkeybd')
-rw-r--r-- | media-sound/vkeybd/ChangeLog | 8 | ||||
-rw-r--r-- | media-sound/vkeybd/files/digest-vkeybd-0.1.12 | 1 | ||||
-rw-r--r-- | media-sound/vkeybd/files/vkeybd-0.1.12-Makefile.destdir.patch | 29 | ||||
-rw-r--r-- | media-sound/vkeybd/files/vkeybd-0.1.12-Makefile.passvariables.patch | 28 | ||||
-rw-r--r-- | media-sound/vkeybd/vkeybd-0.1.12.ebuild | 49 |
5 files changed, 115 insertions, 0 deletions
diff --git a/media-sound/vkeybd/ChangeLog b/media-sound/vkeybd/ChangeLog new file mode 100644 index 000000000000..afa1362a8d39 --- /dev/null +++ b/media-sound/vkeybd/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for media-sound/vkeybd +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/vkeybd/ChangeLog,v 1.1 2002/12/21 05:17:05 agenkin Exp $ + +*vkeybd-0.1.12 (20 Dec 2002) + + 20 Dec 2002; Arcady Genkin <agenkin@gentoo.org> : + Initial version by Rene Wagner <reenoo@gmx.de>. Closes #12198. diff --git a/media-sound/vkeybd/files/digest-vkeybd-0.1.12 b/media-sound/vkeybd/files/digest-vkeybd-0.1.12 new file mode 100644 index 000000000000..9415b600ffad --- /dev/null +++ b/media-sound/vkeybd/files/digest-vkeybd-0.1.12 @@ -0,0 +1 @@ +MD5 1c8fba4e4110266d974a045e839a3507 vkeybd-0.1.12.tar.bz2 23191 diff --git a/media-sound/vkeybd/files/vkeybd-0.1.12-Makefile.destdir.patch b/media-sound/vkeybd/files/vkeybd-0.1.12-Makefile.destdir.patch new file mode 100644 index 000000000000..9de8ccc0273d --- /dev/null +++ b/media-sound/vkeybd/files/vkeybd-0.1.12-Makefile.destdir.patch @@ -0,0 +1,29 @@ +--- ../vkeybd.orig/Makefile 2002-12-16 07:15:57.000000000 +0100 ++++ Makefile 2002-12-16 07:22:42.000000000 +0100 +@@ -93,17 +93,17 @@ + $(CC) -o $@ $^ -lm + + install: $(TARGETS) vkeybd.tcl vkeybd.list +- mkdir -p $(INSTALL_DIR) +- install -c -s vkeybd $(INSTALL_DIR) +- install -c -s sftovkb $(INSTALL_DIR) +- rm -f $(INSTALL_DIR)/vkeybd.tcl +- mkdir -p $(VKBLIB_DIR) +- install -c -m 444 vkeybd.tcl $(VKBLIB_DIR) +- install -c -m 444 vkeybd.list $(VKBLIB_DIR) ++ mkdir -p ${DESTDIR}$(INSTALL_DIR) ++ install -c -s vkeybd ${DESTDIR}$(INSTALL_DIR) ++ install -c -s sftovkb ${DESTDIR}$(INSTALL_DIR) ++ rm -f ${DESTDIR}$(INSTALL_DIR)/vkeybd.tcl ++ mkdir -p ${DESTDIR}$(VKBLIB_DIR) ++ install -c -m 444 vkeybd.tcl ${DESTDIR}$(VKBLIB_DIR) ++ install -c -m 444 vkeybd.list ${DESTDIR}$(VKBLIB_DIR) + + install-man: +- mkdir -p $(MAN_DIR) +- install -c -m 444 vkeybd.man $(MAN_DIR)/vkeybd.$(MAN_SUFFIX) ++ mkdir -p ${DESTDIR}$(MAN_DIR) ++ install -c -m 444 vkeybd.man ${DESTDIR}$(MAN_DIR)/vkeybd.$(MAN_SUFFIX) + + install-all: install install-man + diff --git a/media-sound/vkeybd/files/vkeybd-0.1.12-Makefile.passvariables.patch b/media-sound/vkeybd/files/vkeybd-0.1.12-Makefile.passvariables.patch new file mode 100644 index 000000000000..5565ed2b4797 --- /dev/null +++ b/media-sound/vkeybd/files/vkeybd-0.1.12-Makefile.passvariables.patch @@ -0,0 +1,28 @@ +--- ../vkeybd.orig/Makefile 2001-05-25 16:57:22.000000000 +0200 ++++ Makefile 2002-12-16 03:36:46.000000000 +0100 +@@ -8,7 +8,9 @@ + # + # installation directory + # ++ifndef $(PREFIX) + PREFIX = /usr/local ++endif + # binary and Tcl script are put there + INSTALL_DIR = $(PREFIX)/bin + # man page +@@ -24,9 +26,15 @@ + # device selections -- multiple avaialble + # to disable the device, set value 0 (do not comment out!) + # ++ifndef $(USE_AWE) + USE_AWE = 1 ++endif ++ifndef $(USE_MIDI) + USE_MIDI = 1 ++endif ++ifndef $(USE_ALSA) + USE_ALSA = 1 ++endif + + # + # Tcl/Tk library -- depends on your distribution diff --git a/media-sound/vkeybd/vkeybd-0.1.12.ebuild b/media-sound/vkeybd/vkeybd-0.1.12.ebuild new file mode 100644 index 000000000000..216b1dc55fee --- /dev/null +++ b/media-sound/vkeybd/vkeybd-0.1.12.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/vkeybd/vkeybd-0.1.12.ebuild,v 1.1 2002/12/21 05:17:05 agenkin Exp $ + +DESCRIPTION="A virtual MIDI keyboard for X." +HOMEPAGE="http://www.alsa-project.org/~iwai/alsa.html" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +DEPEND="alsa? ( >=media-libs/alsa-lib-0.5.0 ) + =dev-lang/tk-8.3* + =dev-lang/tcl-8.3* + virtual/x11" + +SRC_URI="http://www.alsa-project.org/~iwai/${P}.tar.bz2" +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} || die + cd ${S} + patch -p0 < ${FILESDIR}/${P}-Makefile.passvariables.patch || die \ + "Patch #1 failed" + patch -p0 < ${FILESDIR}/${P}-Makefile.destdir.patch || die \ + "Patch #2 failed" +} + +src_compile() { + local myconf="PREFIX=/usr" + + #vkeybd requires at least one of its USE_ variable to be set + if [ "`use alsa`" ]; then + myconf="${myconf} USE_ALSA=1" + use oss || myconf="${myconf} USE_AWE=0 USE_MIDI=0" + else + myconf="${myconf} USE_ALSA=0 USE_AWE=1 USE_MIDI=1" + fi + + make ${myconf} || die +} + +src_install() { + make ${myconf} DESTDIR=${D} PREFIX=/usr install || die "Installation Failed" + make ${myconf} DESTDIR=${D} PREFIX=/usr install-man || die \ + "Man-Page Installation Failed" + + dodoc README +} |