mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 17:50:06 +02:00
111 lines
3.2 KiB
Bash
111 lines
3.2 KiB
Bash
SUMMARY="Video editing library used by OpenShot"
|
|
DESCRIPTION="libopenshot is an open-source, cross-platform C++ library dedicated to \
|
|
delivering high quality video editing, animation, and playback solutions to \
|
|
the world. This is the same library which powers OpenShot Video Editor \
|
|
(version 2.0+). C++, Python are fully supported."
|
|
HOMEPAGE="http://www.openshot.org"
|
|
COPYRIGHT="2008-2017 OpenShot Studios, LLC"
|
|
LICENSE="GNU LGPL v3"
|
|
SOURCE_URI="https://github.com/OpenShot/libopenshot/archive/v$portVersion.tar.gz"
|
|
SOURCE_FILENAME="libopenshot-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="a9b0706433c5c0e6edc9b1cc3c0ff1af4c8b7e8e31b5e071445a113fbb365d45"
|
|
REVISION="1"
|
|
PATCHES="libopenshot-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libopenshot$secondaryArchSuffix = $portVersion
|
|
lib:libopenshot$secondaryArchSuffix = 13 compat >= 13
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libavcodec$secondaryArchSuffix
|
|
lib:libgomp$secondaryArchSuffix
|
|
lib:libopenshot_audio$secondaryArchSuffix
|
|
lib:libpython3.6m$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5MultimediaWidgets$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libMagick++_6.Q16$secondaryArchSuffix
|
|
lib:libzmq$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libopenshot${secondaryArchSuffix}_devel = $portVersion compat >= 0
|
|
devel:libopenshot${secondaryArchSuffix} = 13 compat >= 13
|
|
"
|
|
REQUIRES_devel="
|
|
libopenshot$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libavcodec$secondaryArchSuffix
|
|
devel:libexecinfo$secondaryArchSuffix
|
|
devel:libopenshot_audio$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5MultimediaWidgets$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libMagick++_6.Q16$secondaryArchSuffix
|
|
devel:libzmq$secondaryArchSuffix
|
|
unittest++${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:python3
|
|
cmd:swig
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
local UNITTEST_SUBDIR=
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
UNITTEST_SUBDIR="$secondaryArchSuffix/"
|
|
fi
|
|
export UNITTEST_INCLUDE_DIR=$portPackageLinksDir/unittest++${secondaryArchSuffix}_devel/develop/headers$UNITTEST_SUBDIR/UnitTest++
|
|
export UNITTEST_LIB_DIR=$portPackageLinksDir/unittest++${secondaryArchSuffix}_devel/develop/lib$UNITTEST_SUBDIR
|
|
|
|
cmake . -DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DENABLE_RUBY=OFF
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libopenshot
|
|
fixPkgconfig
|
|
|
|
mkdir -p $includeDir
|
|
mv $prefix/include/libopenshot $includeDir
|
|
rmdir $prefix/include
|
|
|
|
python=$portPackageLinksDir/cmd~python3/bin/python3
|
|
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
|
|
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
|
|
|
|
mkdir -p $installLocation
|
|
# TODO fix install location
|
|
mv /python3-*/.self/non-packaged/lib/python3*/site-packages/* $installLocation/
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make $jobArgs test
|
|
}
|
|
|