diff --git a/media-libs/gstreamer/gstreamer-1.16.2.recipe b/media-libs/gstreamer/gstreamer-1.18.0.recipe similarity index 60% rename from media-libs/gstreamer/gstreamer-1.16.2.recipe rename to media-libs/gstreamer/gstreamer-1.18.0.recipe index 6f6d4a1c6..e43f68b47 100644 --- a/media-libs/gstreamer/gstreamer-1.16.2.recipe +++ b/media-libs/gstreamer/gstreamer-1.18.0.recipe @@ -7,7 +7,7 @@ COPYRIGHT="Erik Walthinsen" LICENSE="GNU LGPL v2" REVISION="1" SOURCE_URI="https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$portVersion.tar.xz" -CHECKSUM_SHA256="e3f044246783fd685439647373fa13ba14f7ab0b346eadd06437092f8419e94e" +CHECKSUM_SHA256="0ff09245b06c0aeb5d9a156edcab088a7e8213a0bf9c84a1ff0318f9c00c7805" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86" @@ -17,11 +17,13 @@ PROVIDES=" cmd:gst_inspect_1.0$secondaryArchSuffix = $portVersion cmd:gst_launch_1.0$secondaryArchSuffix = $portVersion cmd:gst_stats_1.0$secondaryArchSuffix = $portVersion + cmd:gst_tester_1.0$secondaryArchSuffix = $portVersion cmd:gst_typefind_1.0$secondaryArchSuffix = $portVersion - lib:libgstbase_1.0$secondaryArchSuffix = 0.1602.0 compat >= 0 - lib:libgstcontroller_1.0$secondaryArchSuffix = 0.1602.0 compat >= 0 - lib:libgstnet_1.0$secondaryArchSuffix = 0.1602.0 compat >= 0 - lib:libgstreamer_1.0$secondaryArchSuffix = 0.1602.0 compat >= 0 + lib:libgstbase_1.0$secondaryArchSuffix = 0.1800.0 compat >= 0 + lib:libgstcheck_1.0$secondaryArchSuffix = 0.1800.0 compat >= 0 + lib:libgstcontroller_1.0$secondaryArchSuffix = 0.1800.0 compat >= 0 + lib:libgstnet_1.0$secondaryArchSuffix = 0.1800.0 compat >= 0 + lib:libgstreamer_1.0$secondaryArchSuffix = 0.1800.0 compat >= 0 " REQUIRES=" haiku$secondaryArchSuffix @@ -34,10 +36,11 @@ REQUIRES=" PROVIDES_devel=" gstreamer${secondaryArchSuffix}_devel = $portVersion - devel:libgstbase_1.0$secondaryArchSuffix = 0.1602.0 compat >= 0 - devel:libgstcontroller_1.0$secondaryArchSuffix = 0.1602.0 compat >= 0 - devel:libgstnet_1.0$secondaryArchSuffix = 0.1602.0 compat >= 0 - devel:libgstreamer_1.0$secondaryArchSuffix = 0.1602.0 compat >= 0 + devel:libgstbase_1.0$secondaryArchSuffix = 0.1800.0 compat >= 0 + devel:libgstcheck_1.0$secondaryArchSuffix = 0.1800.0 compat >= 0 + devel:libgstcontroller_1.0$secondaryArchSuffix = 0.1800.0 compat >= 0 + devel:libgstnet_1.0$secondaryArchSuffix = 0.1800.0 compat >= 0 + devel:libgstreamer_1.0$secondaryArchSuffix = 0.1800.0 compat >= 0 " REQUIRES_devel=" gstreamer$secondaryArchSuffix == $portVersion base @@ -52,15 +55,14 @@ BUILD_REQUIRES=" devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" - cmd:aclocal - cmd:autoconf cmd:bison cmd:flex cmd:gcc$secondaryArchSuffix cmd:grep cmd:ld$secondaryArchSuffix - cmd:libtoolize$secondaryArchSuffix cmd:make + cmd:meson + cmd:ninja cmd:pkg_config$secondaryArchSuffix cmd:python cmd:python3 @@ -69,23 +71,28 @@ BUILD_PREREQUIRES=" BUILD() { - runConfigure ./configure \ - --disable-gst-debug \ - --disable-debug \ - --disable-tests \ - --disable-failing-tests \ - --disable-check \ - --disable-examples \ - --disable-nls \ - LIBS=-lnetwork - make $jobArgs + export CFLAGS="-lnetwork" + + meson build \ + --prefix=$prefix \ + --bindir=$binDir \ + --libdir=$libDir \ + --libexecdir=$libDir \ + --datadir=$dataDir \ + --mandir=$manDir \ + --includedir=$includeDir \ + -D doc=disabled \ + -D package-name="GStreamer (Haiku)" \ + -D package-origin="https://www.haiku-os.org/" \ + -D examples=disabled \ + -D nls=disabled + + meson compile -C build } INSTALL() { - make install - - rm $libDir/libgst*.la $libDir/gstreamer-1.0/*.la + meson install -C build prepareInstalledDevelLibs libgstreamer-1.0 libgstbase-1.0 \ libgstcontroller-1.0 libgstnet-1.0 @@ -95,8 +102,5 @@ INSTALL() rm -rf $includeDir/gstreamer-1.0 # devel package - packageEntries devel \ - $developDir \ - $dataDir/aclocal \ - $dataDir/gtk-doc + packageEntries devel $developDir }