mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
61 lines
1.4 KiB
Bash
61 lines
1.4 KiB
Bash
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
|
|
}
|