Files
haikuports/media-sound/opensound/opensound-4.2~git.recipe
2018-08-09 09:05:12 +02:00

64 lines
1.6 KiB
Bash

SUMMARY="The audio architecture Open Sound System (OSS)"
DESCRIPTION="Open Sound System (OSS) is the first attempt in unifying the \
digital audio architecture for UNIX. OSS is a set of device drivers that \
provide a uniform API across all the major UNIX architectures."
HOMEPAGE="http://developer.opensound.com/"
COPYRIGHT="1996-2008 Hannu Savolainen and Dev Mazumdar"
LICENSE="BSD (2-clause)"
REVISION="2"
srcGitRev="cd2ae052d390c4811acd10553b327bb94fa2abb0"
SOURCE_URI="https://sourceforge.net/code-snapshots/git/o/op/opensound/git.git/opensound-git-$srcGitRev.zip"
CHECKSUM_SHA256="6c4852c4c835f54bc807c91a657ecdc398560e6c0b6fc165464265bc30ea407f"
SOURCE_DIR="opensound-git-$srcGitRev"
PATCHES="opensound-4.2_git.patchset"
ARCHITECTURES="?x86_gcc2 ?x86_64"
GLOBAL_WRITABLE_FILES="
settings/kernel/drivers directory keep-old
"
PROVIDES="
opensound$secondaryArchSuffix = $portVersion
cmd:ossinfo$secondaryArchSuffix
cmd:ossmix$secondaryArchSuffix
cmd:ossphone$secondaryArchSuffix
cmd:ossplay$secondaryArchSuffix
cmd:ossrecord$secondaryArchSuffix
cmd:osstest$secondaryArchSuffix
cmd:savemixer$secondaryArchSuffix
cmd:vmixctl$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
export BEOS_SYSTEM=$prefix
mkdir -p build
cd build
sh ../configure --config-midi=NO --config-vmix=NO
make
}
INSTALL()
{
export BEOS_SYSTEM=$prefix
cd build
make install
# they really belong to home/config/settings but well...
copyattr -d -r prototype/boot/home/config/settings/* $settingsDir/
}