From e347f84f40e6b2faea32a27b453304105afe88ed Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Fri, 27 Aug 2021 08:28:02 +0000 Subject: [PATCH] Deinterlace: Use proper ASM output format for *BSD OS from Brad --- multimedia/gstreamer1/plugins-good/Makefile | 14 +++++--------- .../patches/patch-gst_deinterlace_meson_build | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 multimedia/gstreamer1/plugins-good/patches/patch-gst_deinterlace_meson_build diff --git a/multimedia/gstreamer1/plugins-good/Makefile b/multimedia/gstreamer1/plugins-good/Makefile index f0692ff17c4..b3e28729a88 100644 --- a/multimedia/gstreamer1/plugins-good/Makefile +++ b/multimedia/gstreamer1/plugins-good/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.71 2021/06/21 14:30:41 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.72 2021/08/27 08:28:02 ajacoutot Exp $ # Reenable that port on non-rust archs at the cost of pulseaudio support: # pulseaudio -> [...] -> spidermonkey>=78 -> rust @@ -13,7 +13,7 @@ PKGNAME= ${GST_PKGNAME_PREFIX}-plugins-good-${V} PKGNAME-main= ${PKGNAME} PKGNAME-pulse= ${GST_PKGNAME_PREFIX}-plugins-pulse-${V} -REVISION-main= 0 +REVISION-main= 1 MASTER_SITES= ${MASTER_SITE_GST:=gst-plugins-good/} @@ -75,13 +75,9 @@ CONFIGURE_ARGS= -Daalib=disabled \ -Dv4l2-gudev=disabled \ -Drpicamsrc=disabled -# XXX -# ../gst-plugins-good-1.18.0/gst/deinterlace/x86/yadif.asm:28: error: segment name `.rodata align=16' not recognized -# ../gst-plugins-good-1.18.0/gst/deinterlace/x86/yadif.asm:124: ... from macro `SECTION_RODATA' defined here -#.if ${MACHINE_ARCH} == "amd64" -#BUILD_DEPENDS += devel/nasm -#.endif -CONFIGURE_ARGS += -Dasm=disabled +.if ${MACHINE_ARCH} == "amd64" +BUILD_DEPENDS += devel/nasm +.endif DEBUG_PACKAGES= ${BUILD_PACKAGES} diff --git a/multimedia/gstreamer1/plugins-good/patches/patch-gst_deinterlace_meson_build b/multimedia/gstreamer1/plugins-good/patches/patch-gst_deinterlace_meson_build new file mode 100644 index 00000000000..db69bb54fa9 --- /dev/null +++ b/multimedia/gstreamer1/plugins-good/patches/patch-gst_deinterlace_meson_build @@ -0,0 +1,19 @@ +$OpenBSD: patch-gst_deinterlace_meson_build,v 1.1 2021/08/27 08:28:02 ajacoutot Exp $ + +From 7db10403468fab512de45ccfaca8f0579f6ea6d9 Mon Sep 17 00:00:00 2001 +From: Brad Smith +Date: Fri, 27 Aug 2021 02:05:45 -0400 +Subject: [PATCH] deinterlace: Use proper ASM output format for *BSD OS + +Index: gst/deinterlace/meson.build +--- gst/deinterlace/meson.build.orig ++++ gst/deinterlace/meson.build +@@ -65,8 +65,6 @@ if have_nasm and host_cpu == 'x86_64' + asm_outformat = 'win64' + elif ['darwin', 'ios'].contains(host_system) + asm_outformat = 'macho64' +- elif host_system.endswith('bsd') +- asm_outformat = 'aoutb' + else + asm_outformat = 'elf64' + endif