Files
haikuports/haiku-apps/medo/medo-1.0.0~beta1.3.recipe
2021-05-18 17:50:03 +02:00

123 lines
3.0 KiB
Bash

SUMMARY="A media editor exclusively built for Haiku"
DESCRIPTION="Medo is a modern video editor with customisable OpenGL GLSL \
plugin based effects.
** Medo is still in early beta phase. While already usable, be prepared for
some rough edges... **
There are many bundled media effects, including:
- Colour grading effects (saturation, exposure, temperature etc.)
- Colour correction curves and white balance
- Support for Adobe LUT (Look Up Tables)
- Create masks and keyframes
- Several transitions
- Several special effects (blur, night vision, Chroma Key etc.)
- Spatial tools to transform media (scale, rotate, position, crop)
- Multiple text effects, including 3D extruded fonts
- Audio effects (20 band equaliser, fade)
Medo can edit UHD 4K videos, export to any Haiku supported codec, is optimised \
for many CPU-core systems, and has low system resource requirements.
An SDK allows 3rd party developers to create addons and plugins."
HOMEPAGE="https://github.com/smallstepforman/Medo"
COPYRIGHT="2019-2021 Zen Yes Pty Ltd"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/smallstepforman/Medo/archive/R1.0.0-Beta1-3.tar.gz"
CHECKSUM_SHA256="68c22862ec273b2d22a27be921fe770d7d3aa18f7a455d977ec0598c3104233e"
SOURCE_DIR="Medo-R1.0.0-Beta1-3"
PATCHES="medo-1.0.0~beta1.2.patchset"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
medo$secondaryArchSuffix = $portVersion
app:Medo
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libavcodec$secondaryArchSuffix
lib:libavformat$secondaryArchSuffix
lib:libavutil$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libswresample$secondaryArchSuffix
lib:libswscale$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libavformat$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libsoxr$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:jam
"
BUILD()
{
cd AddOns
for d in */; do
cd "$d"
chmod +x clean_all
cd ..
done
cd ..
release=true jam -q $jobArgs
sh build_addons
sh setup_attributes
}
INSTALL()
{
mkdir -p $appsDir/Medo
cp Medo $appsDir/Medo
mkdir $appsDir/Medo/AddOns
pushd AddOns
for d in */; do
pushd ${d%/}
mkdir $appsDir/Medo/AddOns/${d%/}
cp *".so" "$appsDir/Medo/AddOns/$d"
cp *".png" "$appsDir/Medo/AddOns/$d"
cp *".json" "$appsDir/Medo/AddOns/$d"
popd
done
popd
#Plugins
mkdir $appsDir/Medo/Plugins
pushd Plugins
for f in */; do
pushd ${f%/}
mkdir $appsDir/Medo/Plugins/${f%/}
cp *.* "$appsDir/Medo/Plugins/$f"
popd
done
popd
#Languages
mkdir $appsDir/Medo/Languages
pushd Languages
cp *.lang "$appsDir/Medo/Languages/"
popd
#Resources
mkdir $appsDir/Medo/Resources
mkdir $appsDir/Medo/Resources/Icon
pushd Resources
cp *".png" "$appsDir/Medo/Resources/"
cp "Icon/Medo_Logo.png" "$appsDir/Medo/Resources/Icon"
popd
addResourcesToBinaries Resources/Icon/Medo_icon.rdef \
$appsDir/Medo/Medo
addAppDeskbarSymlink $appsDir/Medo/Medo
}