Files
haikuports/media-video/openshot/openshot-2.4.2.recipe
2018-09-05 20:14:02 +07:00

61 lines
1.6 KiB
Bash

SUMMARY="Free open-source video editor"
DESCRIPTION="Openshot can take your videos, photos, and music files and help \
you create the film you always dreamed of. Easily add sub-titles, transitions,\
and effects, then export your film to DVD, YouTube, Vimeo, Xbox 360, and many\
other common formats."
HOMEPAGE="https://www.openshot.org"
COPYRIGHT="2008-2017 OpenShot Studios, LLC"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/OpenShot/openshot-qt/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="957792cb5c07ec7c593b9af7d234f75110ac8df0aa179e284ed84f48f552d9bd"
SOURCE_FILENAME="openshot-$portVersion.tar.gz"
SOURCE_DIR="openshot-qt-$portVersion"
PATCHES="openshot-$portVersion.patchset"
PYTHON_VERSION="3.6"
ARCHITECTURES="any"
PROVIDES="
openshot$secondaryArchSuffix = $portVersion
cmd:openshot_qt
"
REQUIRES="
haiku$secondaryArchSuffix
httplib2_python3
libopenshot_python3
pyqt_python3 >= 5
pyzmq_python3
requests_python3
setuptools_python3
cmd:python$PYTHON_VERSION
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
libopenshot_python3
pyqt_python3 >= 5
setuptools_python3
"
BUILD_PREREQUIRES="
cmd:python$PYTHON_VERSION
"
BUILD()
{
true
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$python setup.py install \
--prefix=$prefix
}