mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
SUMMARY="A program to generate tones, and test your discrimination of frequency deltas"
|
|
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.
|
|
"
|
|
COPYRIGHT="
|
|
2001 Ben Loftis
|
|
2013 Jeremy Friesner"
|
|
LICENSE="Public Domain"
|
|
HOMEPAGE="https://github.com/HaikuArchives/PhantomLimb"
|
|
SRC_URI="git+git://github.com/HaikuArchives/PhantomLimb.git#5444867ac9"
|
|
REVISION="2"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
|
|
|
|
PROVIDES="
|
|
phantomlimb = $portVersion
|
|
app:phantomlimb = $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel >= $haikuVersion
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:g++
|
|
cmd:xres
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku >= $haikuVersion
|
|
"
|
|
|
|
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
|
|
g++ -o PhantomLimb PhantomApp.o PhantomWindow.o PhantomPlayer.o PhantomView.o LRUEntry.o -lbe -lmedia
|
|
xres -o PhantomLimb Phantom.rsrc
|
|
mimeset -f PhantomLimb
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir
|
|
cp source/PhantomLimb $appsDir
|
|
addAppDeskbarSymlink $appsDir/PhantomLimb
|
|
}
|