diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2018-12-12 00:18:41 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2018-12-12 00:18:41 +0000 |
commit | 9be294e152ff6cbebc8b8e94344fadaa6bf8ee4e (patch) | |
tree | 467d9d815b0c141864e14ec4a67a13435d8c9056 /multimedia | |
parent | 7c879267dc47bb7723011ce7fd8f8cb518739c8c (diff) | |
download | ports-9be294e152ff6cbebc8b8e94344fadaa6bf8ee4e.tar.gz ports-9be294e152ff6cbebc8b8e94344fadaa6bf8ee4e.zip |
Notes
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/libva/Makefile | 5 | ||||
-rw-r--r-- | multimedia/libva/files/patch-va_wayland_Makefile.am | 20 |
2 files changed, 20 insertions, 5 deletions
diff --git a/multimedia/libva/Makefile b/multimedia/libva/Makefile index 3d7783326c3b..2a59d6bd8fd8 100644 --- a/multimedia/libva/Makefile +++ b/multimedia/libva/Makefile @@ -40,7 +40,6 @@ DEBUG_CFLAGS_OFF= -DNDEBUG WAYLAND_CONFIGURE_ENABLE= wayland WAYLAND_LIB_DEPENDS= libwayland-client.so:graphics/wayland -WAYLAND_BUILD_DEPENDS= gsed:textproc/gsed post-patch: .SILENT ${REINPLACE_CMD} -e 's|$${libdir}/\(pkgconfig\)|${PREFIX}/libdata/\1|' \ @@ -49,8 +48,4 @@ post-patch: .SILENT ${WRKSRC}/doc/Makefile.am ${REINPLACE_CMD} 's/-ldl//' ${WRKSRC}/va/Makefile.am -post-configure-WAYLAND-on: .SILENT - ${REINPLACE_CMD} -e 's|\(SED = \).*|\1${LOCALBASE}/bin/gsed|' \ - ${WRKSRC}/va/wayland/Makefile - .include <bsd.port.mk> diff --git a/multimedia/libva/files/patch-va_wayland_Makefile.am b/multimedia/libva/files/patch-va_wayland_Makefile.am new file mode 100644 index 000000000000..586853797296 --- /dev/null +++ b/multimedia/libva/files/patch-va_wayland_Makefile.am @@ -0,0 +1,20 @@ +BSD sed doesn't support inlining argument for i command, so embed +newlines via C-style quoting as proposed for POSIX[1]. + +$ echo '/* comment */' | sed -e '1i#include "sysdeps.h"' +sed: 1: "1i#include "sysdeps.h" +": command i expects \ followed by text + +[1] http://austingroupbugs.net/view.php?id=249 + +--- va/wayland/Makefile.am.orig 2018-10-01 23:31:25 UTC ++++ va/wayland/Makefile.am +@@ -70,7 +70,7 @@ va_wayland_drm.c: $(protocol_source_h) + %-client-protocol-export.c : %.xml + $(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@ + %-client-protocol.c: %-client-protocol-export.c +- $(AM_V_GEN)$(SED) -e '1i#include "sysdeps.h"' \ ++ $(AM_V_GEN)$(SED) -e $$'1i\\\n#include "sysdeps.h"\n' \ + -e 's@WL_EXPORT@DLL_HIDDEN@g' < $< > $@ + + EXTRA_DIST = \ |