mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
181 lines
5.3 KiB
Bash
181 lines
5.3 KiB
Bash
SUMMARY="GStreamer Good Plug-ins"
|
|
DESCRIPTION="GStreamer Good Plug-ins is a set of plug-ins that we consider to have good quality code, \
|
|
correct functionality, our preferred license (LGPL for the plug-in code, LGPL or LGPL-compatible \
|
|
for the supporting library)."
|
|
HOMEPAGE="https://gstreamer.freedesktop.org/"
|
|
COPYRIGHT="Erik Walthinsen"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="582e617271e7f314d1a2211e3e3856ae2e4303c8c0d6114e9c4a5ea5719294b0"
|
|
SOURCE_DIR="gst-plugins-good-$portVersion"
|
|
sinkGitRevision="da40b9fa079fd0a4691e4b8bc2d9260abacc55d4"
|
|
SOURCE_URI_2="https://github.com/threedeyes/gsthaikuaudiosink/archive/$sinkGitRevision.tar.gz"
|
|
CHECKSUM_SHA256_2="20a511bc0af13378049280580948c52824a03402dad14056cf16c2c7d24646e8"
|
|
SOURCE_FILENAME_2="gsthaikuaudiosink-$sinkGitRevision.tar.gz"
|
|
SOURCE_DIR_2="gsthaikuaudiosink-$sinkGitRevision"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="0.2200.0"
|
|
|
|
PROVIDES="
|
|
gst_plugins_good$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libbrotlidec$secondaryArchSuffix
|
|
lib:libbz2$secondaryArchSuffix
|
|
lib:libcairo$secondaryArchSuffix
|
|
lib:libcairo_gobject$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libflac$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libgdk_pixbuf_2.0$secondaryArchSuffix
|
|
lib:libgirepository_1.0$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgobject_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:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:libmp3lame$secondaryArchSuffix
|
|
lib:libmpg123$secondaryArchSuffix
|
|
lib:libnettle$secondaryArchSuffix
|
|
lib:libnghttp2$secondaryArchSuffix
|
|
lib:libogg$secondaryArchSuffix
|
|
lib:liborc_0.4$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libsoup_3.0$secondaryArchSuffix
|
|
lib:libspeex$secondaryArchSuffix
|
|
lib:libsqlite3$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
lib:libtag$secondaryArchSuffix
|
|
lib:libtwolame$secondaryArchSuffix
|
|
lib:libvorbis$secondaryArchSuffix
|
|
lib:libvpx$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
SUPPLEMENTS="
|
|
gstreamer$secondaryArchSuffix
|
|
"
|
|
|
|
# GTK
|
|
SUMMARY_gtk="GStreamer GTK+ 3 Plug-in"
|
|
DESCRIPTION_gtk="A plugin to render video to a GTK widget using OpenGL."
|
|
|
|
PROVIDES_gtk="
|
|
gst_plugins_good${secondaryArchSuffix}_gtk = $portVersion
|
|
"
|
|
REQUIRES_gtk="
|
|
gst_plugins_good$secondaryArchSuffix
|
|
lib:libcairo$secondaryArchSuffix
|
|
lib:libgdk_3$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgobject_2.0$secondaryArchSuffix
|
|
lib:libgstreamer_1.0$secondaryArchSuffix
|
|
lib:libgstvideo_1.0$secondaryArchSuffix
|
|
lib:libgtk_3$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libbrotlidec$secondaryArchSuffix
|
|
devel:libbz2$secondaryArchSuffix
|
|
devel:libcairo$secondaryArchSuffix
|
|
devel:libcairo_gobject$secondaryArchSuffix
|
|
devel:libcrypto$secondaryArchSuffix
|
|
devel:libflac$secondaryArchSuffix
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libgdk_pixbuf_2.0$secondaryArchSuffix
|
|
devel:libgirepository_1.0$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libgobject_2.0$secondaryArchSuffix
|
|
devel:libgstapp_1.0$secondaryArchSuffix >= $libVersion
|
|
devel:libgstaudio_1.0$secondaryArchSuffix >= $libVersion
|
|
devel:libgstbase_1.0$secondaryArchSuffix >= $libVersion
|
|
devel:libgstreamer_1.0$secondaryArchSuffix >= $libVersion
|
|
devel:libgstvideo_1.0$secondaryArchSuffix >= $libVersion
|
|
devel:libgdk_3$secondaryArchSuffix
|
|
devel:libgtk_3$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:libmp3lame$secondaryArchSuffix
|
|
devel:libmpg123$secondaryArchSuffix
|
|
devel:libnettle$secondaryArchSuffix
|
|
devel:libnghttp2$secondaryArchSuffix
|
|
devel:libogg$secondaryArchSuffix
|
|
devel:liborc_0.4$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libpsl$secondaryArchSuffix
|
|
devel:libsoup_3.0$secondaryArchSuffix
|
|
devel:libspeex$secondaryArchSuffix
|
|
devel:libsqlite3$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix
|
|
devel:libtwolame$secondaryArchSuffix
|
|
devel:libtag$secondaryArchSuffix
|
|
devel:libvorbis$secondaryArchSuffix
|
|
devel:libvpx$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:python
|
|
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 examples=disabled \
|
|
-D nls=disabled \
|
|
-D orc=enabled
|
|
|
|
ninja -C build $jobArgs
|
|
|
|
cd $sourceDir2
|
|
cmake . -DCMAKE_BUILD_TYPE=Release
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
|
|
cd $sourceDir2
|
|
cp -f libgsthaikuaudiosink.so $libDir/gstreamer-1.0
|
|
|
|
packageEntries "gtk" \
|
|
$libDir/gstreamer-1.0/libgstgtk.so
|
|
}
|