Index: head/multimedia/libva/Makefile =================================================================== --- head/multimedia/libva/Makefile (revision 487266) +++ head/multimedia/libva/Makefile (revision 487267) @@ -1,56 +1,51 @@ # $FreeBSD$ PORTNAME= libva PORTVERSION= 2.3.0 PORTREVISION= 1 CATEGORIES= multimedia MAINTAINER= madpilot@FreeBSD.org COMMENT= VAAPI wrapper and dummy driver LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat RUN_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat LIB_DEPENDS= libdrm.so:graphics/libdrm USES= autoreconf gmake libtool localbase pkgconfig tar:bzip2 USE_XORG= xorgproto pciaccess x11 xext xfixes USE_GL= gl GNU_CONFIGURE= yes CONFIGURE_ARGS= --program-prefix=va USE_LDCONFIG= yes INSTALL_TARGET= install-strip USE_GITHUB= yes GH_ACCOUNT= intel LDFLAGS+= -lpthread # prevent types conflict: videodev2.h vs. drm.h CFLAGS+= -DHAVE_LINUX_INTEGER_TYPES OPTIONS_DEFINE= DEBUG WAYLAND OPTIONS_DEFAULT=WAYLAND WAYLAND_DESC= Support wayland protocol OPTIONS_SUB= yes DEBUG_CFLAGS= -D_DEBUG 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|' \ ${WRKSRC}/configure.ac ${REINPLACE_CMD} '/^export VA_HEADER_/d' \ ${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 Index: head/multimedia/libva/files/patch-va_wayland_Makefile.am =================================================================== --- head/multimedia/libva/files/patch-va_wayland_Makefile.am (nonexistent) +++ head/multimedia/libva/files/patch-va_wayland_Makefile.am (revision 487267) @@ -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 = \ Property changes on: head/multimedia/libva/files/patch-va_wayland_Makefile.am ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property