svn commit: r531911 - in head/multimedia: libv4l libv4l/files v4l-utils v4l_compat

Baptiste Daroussin bapt at FreeBSD.org
Fri Apr 17 14:17:14 UTC 2020


On Fri, Apr 17, 2020 at 09:15:30AM -0500, Kyle Evans wrote:
> On Fri, Apr 17, 2020 at 3:34 AM Hans Petter Selasky
> <hselasky at freebsd.org> wrote:
> >
> > Author: hselasky
> > Date: Fri Apr 17 08:34:50 2020
> > New Revision: 531911
> > URL: https://svnweb.freebsd.org/changeset/ports/531911
> >
> > Log:
> >   Upgrade v4l_compat, libv4l and v4l-utils to v1.18.0.
> >
> >   The most important change is that up-to-date V4L header files are now
> >   sourced from the webcamd distribution tarball.
> >
> >   Refer to the ChangeLog file in the v4l-utils tarball for a comprehensive
> >   list of changes.
> >
> >   PR:           245501
> >   Approved by:  pi (implicit)
> >
> > [... snip ...]
> > +# Remove old FreeBSD include files (to be removed upstream)
> > +       @${RM} -r ${WRKDIR}/v4l-utils-${PORTVERSION}/contrib/freebsd/include/*
> > +# Apply webcamd patches first
> > +       @(cd ${WRKDIR}/webcamd-${WEBCAMDVERSION}/patches && ${SH} ./do_patch.sh)
> > +# Patch Makefiles to use GNU-sed
> > +       @${FIND} ${WRKDIR}/v4l-utils-${PORTVERSION} -type f \( -iname "Makefile*" \) | \
> >                 ${XARGS} -n 10 ${REINPLACE_CMD} \
> > -               -e 's|linux/types.h|sys/types.h|g; s|__user||g; \
> > -               s|__u8|uint8_t|g; s|__s8|int8_t|g; \
> > -               s|__u16|uint16_t|g; s|__s16|int16_t|g; \
> > -               s|__u32|uint32_t|g; s|__s32|int32_t|g; \
> > -               s|__u64|uint64_t|g; s|__s64|int64_t|g'
> > -.if ${PORTNAME} == v4l_compat
> > -.for patch in ${HEADER_PATCHES}
> > -       @cd ${WRKDIR}/linux && ${PATCH} -p2 < ${FILESDIR}/${patch}
> > -.endfor
> > -.endif
> > +                       -e 's|^\([[:space:]]*\)sed |\1${LOCALBASE}/bin/gsed |'
> 
> Hi,
> 
> Based on the pattern you used here, I suspect this could instead be a
> BINARY_ALIAS instead to obviate the need to do/maintain these
> replacements.
> 
> BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed

Or its simpler version: BINARY_ALIAS sed=gsed :D


Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20200417/078c588e/attachment.sig>


More information about the svn-ports-all mailing list