Added PhantomLimb, recipe by GCI2013 student Adrian Jelen

This commit is contained in:
Scott McCreary
2013-11-24 17:10:30 +00:00
parent f3e1a8304a
commit ddbfe57b2d

View File

@@ -0,0 +1,48 @@
DESCRIPTION="PhantomLimb is a little program to generate tones, and test your discrimination of frequency deltas. I wrote it for a friend of mine who is suffering from tinnitus ('ringing in the ears') due to an ear infection. (the infection destroyed some nerve cells in his inner ear, and the lack of signals from the destroyed nerve cells is what causes the ringing--similar to the 'phantom limb' sensations experienced by amputees. Hence the name of this program) By practicing discriminating between the sound of the tinnitus and 'nearby' sounds, he hopes to be able to train his brain to discriminate between the 'phantom' sound and other, real sounds."
SUMMARY="PhantomLimb is a little program to generate tones, and test your discrimination of frequency deltas."
HOMEPAGE="https://github.com/HaikuArchives/PhantomLimb"
SRC_URI="git+git://github.com/HaikuArchives/PhantomLimb.git"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
PROVIDES="
phantomlimb = $portVersion
app:phantomlimb = $portVersion"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
cmd:g++
cmd:xres"
REQUIRES="
haiku >= $haikuVersion"
COPYRIGHT="
2001 Ben Loftis
2013 Jeremy Friesner"
LICENSE="Public Domain"
BUILD()
{
cd source
gcc -c -o PhantomApp.o PhantomApp.cpp
gcc -c -o PhantomWindow.o PhantomWindow.cpp
gcc -c -o PhantomPlayer.o PhantomPlayer.cpp -D PI=3.141592
gcc -c -o PhantomView.o PhantomView.cpp
gcc -c -o LRUEntry.o LRUEntry.cpp
gcc -o PhantomLimb PhantomApp.o PhantomWindow.o PhantomPlayer.o PhantomView.o LRUEntry.o -lbe -lmedia
xres -o PhantomLimb Phantom.rsrc
cd ..
}
INSTALL()
{
cd source
mkdir -p $appsDir
cp PhantomLimb $appsDir
addAppDeskbarSymlink $appsDir/PhantomLimb
cd ..
}