mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
90 lines
2.3 KiB
Bash
90 lines
2.3 KiB
Bash
SUMMARY="GStreamer FFmpeg plugin for libav"
|
|
DESCRIPTION="This GStreamer FFmpeg libav plugin supports a large number of audio \
|
|
and video compression formats through the use of the FFmpeg library. "
|
|
HOMEPAGE="https://gstreamer.freedesktop.org/"
|
|
COPYRIGHT="Ronald Bultje"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="3ada7e50a3b9b8ba3e405b14c4021e25fbb10379f77d2ce490aa16523ed2724d"
|
|
SOURCE_DIR="gst-libav-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="0.2603.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
gst_plugins_libav$secondaryArchSuffix = $portVersion
|
|
lib:libgstlibav$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libavcodec$secondaryArchSuffix
|
|
lib:libavfilter$secondaryArchSuffix
|
|
lib:libgirepository_1.0$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgstapp_1.0$secondaryArchSuffix
|
|
lib:libgstaudio_1.0$secondaryArchSuffix
|
|
lib:libgstbase_1.0$secondaryArchSuffix
|
|
lib:libgstreamer_1.0$secondaryArchSuffix
|
|
lib:libgstvideo_1.0$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
SUPPLEMENTS="
|
|
gstreamer$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libavcodec$secondaryArchSuffix >= 60
|
|
devel:libavfilter$secondaryArchSuffix >= 9
|
|
devel:libavformat$secondaryArchSuffix >= 60
|
|
devel:libavutil$secondaryArchSuffix >= 58
|
|
# devel:libgirepository_1.0$secondaryArchSuffix >= 1.0.0
|
|
# devel:libglib_2.0$secondaryArchSuffix >= 0.7800.0
|
|
# devel:libgstapp_1.0$secondaryArchSuffix >= $libVersion
|
|
# devel:libgstaudio_1.0$secondaryArchSuffix >= $libVersion
|
|
devel:libgstreamer_1.0$secondaryArchSuffix >= $libVersion
|
|
devel:libgstvideo_1.0$secondaryArchSuffix >= $libVersion
|
|
# devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
# cmd:ld$secondaryArchSuffix
|
|
cmd:meson
|
|
cmd:ninja
|
|
# cmd:orcc$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export CFLAGS="-lnetwork"
|
|
|
|
meson build \
|
|
--buildtype=release \
|
|
--prefix=$prefix \
|
|
--bindir=$binDir \
|
|
--libdir=$libDir \
|
|
--libexecdir=$libDir \
|
|
--datadir=$dataDir \
|
|
--mandir=$manDir \
|
|
--includedir=$includeDir \
|
|
-D doc=disabled
|
|
|
|
ninja -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
meson test
|
|
}
|