mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
107 lines
2.4 KiB
Bash
107 lines
2.4 KiB
Bash
SUMMARY="Video editing library used by OpenShot"
|
|
DESCRIPTION="OpenShot Audio Library (libopenshot-audio) is a program that \
|
|
allows the high-quality editing and playback of audio, and is based on the \
|
|
amazing JUCE library."
|
|
HOMEPAGE="http://www.openshot.org"
|
|
COPYRIGHT="2015 ROLI Ltd.
|
|
2008-2016 OpenShot Studios, LLC"
|
|
LICENSE="GNU GPL v3
|
|
GNU GPL v2
|
|
GNU AGPL v3
|
|
ISC"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/OpenShot/libopenshot-audio/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="090ed62a59f35642081f6da58677e5f8f316ed2062cb47cf0617a71678b890c3"
|
|
SOURCE_FILENAME="libopenshot-audio-$portVersion.tar.gz"
|
|
SOURCE_DIR="libopenshot-audio-$portVersion"
|
|
PATCHES="libopenshot_audio-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="6"
|
|
|
|
PROVIDES="
|
|
libopenshot_audio$secondaryArchSuffix = $portVersion
|
|
lib:libopenshot_audio$secondaryArchSuffix = $libVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libopenshot_audio${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libopenshot_audio$secondaryArchSuffix = $libVersion
|
|
"
|
|
REQUIRES_devel="
|
|
haiku$secondaryArchSuffix
|
|
libopenshot_audio$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
ARCHITECTURES_doc="any"
|
|
|
|
PROVIDES_doc="
|
|
libopenshot_audio_doc = $portVersion
|
|
"
|
|
|
|
BUILD_PREREQUIRES+="
|
|
cmd:dot
|
|
cmd:doxygen
|
|
"
|
|
fi
|
|
|
|
defineDebugInfoPackage libopenshot_audio$secondaryArchSuffix \
|
|
"$libDir/libopenshot-audio.so.$portVersion"
|
|
|
|
BUILD()
|
|
{
|
|
export LDFLAGS="-Wl,--as-needed" # Trim unneeded links
|
|
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo $cmakeDirArgs
|
|
make $jobArgs
|
|
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
make $jobArgs doc
|
|
fi
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libopenshot-audio
|
|
|
|
rm -rf $binDir $manDir
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
install -d -m 755 $developDocDir
|
|
mv -T $docDir/libopenshot-audio $developDocDir
|
|
packageEntries doc \
|
|
$developDir
|
|
fi
|
|
|
|
find $prefix -type d -empty -delete
|
|
}
|