mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
libopenshot-audio: bump version
This commit is contained in:
106
media-libs/libopenshot-audio/libopenshot_audio-0.1.8.recipe
Normal file
106
media-libs/libopenshot-audio/libopenshot_audio-0.1.8.recipe
Normal file
@@ -0,0 +1,106 @@
|
||||
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="https://www.openshot.org/"
|
||||
COPYRIGHT="2015 ROLI Ltd.
|
||||
2008-2019 OpenShot Studios, LLC"
|
||||
LICENSE="GNU GPL v3
|
||||
GNU GPL v2
|
||||
GNU AGPL v3
|
||||
ISC"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/OpenShot/libopenshot-audio/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="384d0ef39c78f16d77048de3c96152321724084f978dc622675dd6bb16e15e19"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user