mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
media_helpers: add recipe
This commit is contained in:
60
haiku-libs/media_helpers/media_helpers-0.1.recipe
Normal file
60
haiku-libs/media_helpers/media_helpers-0.1.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user