Files
haikuports/media-libs/gst_plugins_ugly/gst_plugins_ugly-1.26.3.recipe
2025-07-05 15:44:43 +00:00

115 lines
3.1 KiB
Bash

SUMMARY="GStreamer Ugly Plug-ins"
DESCRIPTION="GStreamer Ugly Plug-ins is a set of plug-ins that have good quality and \
correct functionality, but distributing them might pose problems. The license on \
either the plug-ins or the supporting libraries might not be how we'd like. The \
code might be widely known to present patent problems."
HOMEPAGE="https://gstreamer.freedesktop.org/"
COPYRIGHT="Erik Walthinsen"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-$portVersion.tar.xz"
CHECKSUM_SHA256="417f5ee895f734ac0341b3719c175fff16b4c8eae8806e29e170b3bcb3d9dba5"
SOURCE_DIR="gst-plugins-ugly-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.2603.0"
PROVIDES="
gst_plugins_ugly$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:liba52$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libgirepository_1.0$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libgstapp_1.0$secondaryArchSuffix
lib:libgstaudio_1.0$secondaryArchSuffix
lib:libgstreamer_1.0$secondaryArchSuffix
lib:libgstvideo_1.0$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libmp3lame$secondaryArchSuffix
lib:libmpeg2$secondaryArchSuffix
lib:libmpg123$secondaryArchSuffix
lib:liborc_0.4$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libtwolame$secondaryArchSuffix
lib:libx264$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
SUPPLEMENTS="
gstreamer$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:liba52$secondaryArchSuffix
devel:libcurl$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libgirepository_1.0$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
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:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libmp3lame$secondaryArchSuffix
devel:libmpeg2$secondaryArchSuffix
devel:libmpg123$secondaryArchSuffix
devel:liborc_0.4$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libtwolame$secondaryArchSuffix
devel:libx264$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:bison
cmd:cmake
cmd:flex
cmd:gcc$secondaryArchSuffix
cmd:grep
cmd:ld$secondaryArchSuffix
cmd:make
cmd:meson
cmd:ninja
cmd:orcc$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:python3
cmd:which
"
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 \
-D gpl=enabled \
-D nls=disabled \
-D orc=enabled
ninja -C build $jobArgs
}
INSTALL()
{
ninja -C build install
}