Index: head/multimedia/libv4l/Makefile =================================================================== --- head/multimedia/libv4l/Makefile (revision 422051) +++ head/multimedia/libv4l/Makefile (revision 422052) @@ -1,73 +1,73 @@ # Created by: Andrew Thompson # $FreeBSD$ # Check v4l_compat and v4l-utils slave ports PORTNAME?= libv4l PORTVERSION= 1.6.3 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= multimedia MASTER_SITES= http://linuxtv.org/downloads/v4l-utils/:master \ LOCAL/kwm:local DISTFILES+= v4l-utils-${PORTVERSION}.tar.bz2:master \ linux-3.16.7-dvb-headers.tar.xz:local MAINTAINER= multimedia@FreeBSD.org COMMENT?= Video4Linux library LICENSE= GPLv2 LGPL21 LICENSE_COMB= dual LIBV4L_SLAVE?= no USES= tar:bzip2 WRKSRC= ${WRKDIR}/v4l-utils-${PORTVERSION} .if ${LIBV4L_SLAVE} != compat BUILD_DEPENDS+= v4l_compat>=${PORTVERSION}:multimedia/v4l_compat GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib USES+= gmake iconv jpeg libtool pathfix pkgconfig USE_LDCONFIG= yes CONFIGURE_ARGS= --enable-libdvbv5 \ --disable-qv4l2 \ --without-libudev INSTALL_TARGET= install-strip . if ${LIBV4L_SLAVE} == utils BUILD_DEPENDS+= libv4l>=${PORTVERSION}:multimedia/libv4l LIB_DEPENDS+= libargp.so:devel/argp-standalone \ libv4l2.so:multimedia/libv4l # Disabling building libv4l in the utils slave is too much hackery # Lets wait for subpackages CONFIGURE_ARGS+=--enable-v4l-utils . else CONFIGURE_ARGS+=--disable-v4l-utils --enable-libv4l EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-configure . endif .endif HEADER_PATCHES= extra-linux_dvb_ca.h \ extra-linux_dvb_osd.h \ patch-include_linux_dvb_frontend.h \ patch-include_linux_dvb_video.h post-patch: @${REINPLACE_CMD} -e 's|$$libdir/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \ ${WRKSRC}/configure # fix weird types, except a few headers which have compat code for these types. @${FIND} ${WRKDIR} -type f \( -iname "*.h" ! -iname "input.h" ! -iname "videodev2.h" \) | \ ${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 ${LIBV4L_SLAVE} == compat .for patch in ${HEADER_PATCHES} @cd ${WRKDIR}/linux && ${PATCH} -p2 < ${FILESDIR}/${patch} .endfor .endif .include Index: head/multimedia/libv4l/files/patch-lib_include_libdvbv5_dvb-frontend.h =================================================================== --- head/multimedia/libv4l/files/patch-lib_include_libdvbv5_dvb-frontend.h (nonexistent) +++ head/multimedia/libv4l/files/patch-lib_include_libdvbv5_dvb-frontend.h (revision 422052) @@ -0,0 +1,17 @@ +--- ./lib/include/libdvbv5/dvb-frontend.h.orig 2016-09-13 19:57:29.863954000 +0200 ++++ ./lib/include/libdvbv5/dvb-frontend.h 2016-09-13 19:58:07.703108000 +0200 +@@ -553,7 +553,13 @@ + }; + + #define FE_SET_PROPERTY _IOW('o', 82, struct dtv_properties) +-#define FE_GET_PROPERTY _IOR('o', 83, struct dtv_properties) ++/* ++ * This is broken on linux as well but they workaround it in the driver. ++ * Since this is impossible to do on FreeBSD fix the header instead. ++ * Detailed and discussion : ++ * http://lists.freebsd.org/pipermail/freebsd-multimedia/2010-April/010958.html ++ */ ++#define FE_GET_PROPERTY _IOW('o', 83, struct dtv_properties) + + + /** Property changes on: head/multimedia/libv4l/files/patch-lib_include_libdvbv5_dvb-frontend.h ___________________________________________________________________ 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