media_helpers: add recipe

This commit is contained in:
Gerasim Troeglazov
2025-03-30 23:44:28 +10:00
parent 9837346128
commit 39c5d761f9

View File

@@ -0,0 +1,60 @@
SUMMARY="A lightweight C++ library that simplifies working with the MediaKit API"
DESCRIPTION="Media Helpers provides intuitive classes for audio and video capture \
with minimal setup required.
Features:
* Easy audio capture with automatic format conversion and sample rate conversion
* Simple video frame capture with callback-based processing"
HOMEPAGE="https://github.com/threedeyes/media_helpers/"
COPYRIGHT="2025 Gerasim Troeglazov"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/threedeyes/media_helpers/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="bd46b82dc6fdb906fea00aae5909d6458dc2b50a9baf946064286a9c7d7590c4"
SOURCE_DIR="media_helpers-$portVersion"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
media_helpers$secondaryArchSuffix = $portVersion
lib:libmediahelpers$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
media_helpers${secondaryArchSuffix}_devel
devel:libmediahelpers$secondaryArchSuffix
"
REQUIRES_devel="
media_helpers${secondaryArchSuffix} == $portVersion base
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
makefile_engine
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
cd src
make BUILDHOME=/system/develop $jobArgs
}
INSTALL()
{
mkdir -p $includeDir $libDir
cd src
make BUILDHOME=/system/develop INSTALL_DIR=$libDir $jobArgs install
cp *.h $includeDir
prepareInstalledDevelLib libmediahelpers
packageEntries devel \
$developDir
}