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-2016 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="735322c73f6e8ea7bac059970f247c906b4c35f83fad5e5efd9a77adead20d0c" REVISION="5" PATCHES="libopenshot-$portVersion.patchset" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="!x86_gcc2 x86" PROVIDES=" libopenshot$secondaryArchSuffix = $portVersion compat >= 0 lib:libopenshot$secondaryArchSuffix = $portVersion compat >= 0 " REQUIRES=" haiku$secondaryArchSuffix lib:libavcodec$secondaryArchSuffix lib:libgomp$secondaryArchSuffix lib:libopenshot_audio$secondaryArchSuffix lib:libQt5Core$secondaryArchSuffix lib:libQt5Gui$secondaryArchSuffix lib:libQt5MultimediaWidgets$secondaryArchSuffix lib:libQt5Network$secondaryArchSuffix lib:libQt5Widgets$secondaryArchSuffix lib:libMagick++_6.Q16$secondaryArchSuffix " PROVIDES_devel=" libopenshot${secondaryArchSuffix}_devel = $portVersion compat >= 0 devel:libopenshot${secondaryArchSuffix} = $portVersion compat >= 0 " REQUIRES_devel=" libopenshot$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libavcodec$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 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 }