From fc2ecf59aef8dc9540fc5e78471d3e07b9d0de4d Mon Sep 17 00:00:00 2001 From: William Grzybowski Date: Mon, 2 Sep 2013 16:23:41 +0000 Subject: multimedia/transcode: add V4L option - Add V4L option [1] - Remove support for OS < 7.x - Remove leading article from COMMENT - Add LICENSE (GPLv2) - USES gmake PR: ports/179460 Submitted by: Naram Qashat (maintainer) --- multimedia/transcode/Makefile | 24 +++++++++++++++-------- multimedia/transcode/files/patch-import-v4l | 30 +++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 8 deletions(-) create mode 100644 multimedia/transcode/files/patch-import-v4l (limited to 'multimedia/transcode') diff --git a/multimedia/transcode/Makefile b/multimedia/transcode/Makefile index 7908473066a2..77a9147005be 100644 --- a/multimedia/transcode/Makefile +++ b/multimedia/transcode/Makefile @@ -8,15 +8,17 @@ CATEGORIES= multimedia MASTER_SITES= http://cdn.bitbucket.org/france/transcode-tcforge/downloads/ MAINTAINER= cyberbotx@cyberbotx.com -COMMENT= A text-console utility for video stream processing +COMMENT= Text-console utility for video stream processing -LIB_DEPENDS= avcodec:${PORTSDIR}/multimedia/ffmpeg +LICENSE= GPLv2 + +LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg USE_BZIP2= yes FAKEDIR= ${WRKDIR}/fake PLIST= ${WRKDIR}/plist -USE_GMAKE= yes USE_LDCONFIG= yes +USES= gmake WANT_SDL= yes WANT_GNOME= yes USE_AUTOTOOLS= libtool @@ -33,7 +35,7 @@ MAN1= avifix.1 aviindex.1 avimerge.1 avisplit.1 avisync.1 tccat.1 tcdemux.1 \ NO_OPTIONS_SORT= yes OPTIONS_DEFINE= OPTIMIZED_CFLAGS X11 MPEG2 BKTR POSTPROC FREETYPE LAME XVID \ X264 OGG VORBIS THEORA DVDREAD DV QUICKTIME LZO LIBA52 \ - FAAC XML MJPEGTOOLS SDL IMAGEMAGICK JPEG ICONV + FAAC XML MJPEGTOOLS SDL IMAGEMAGICK JPEG ICONV V4L OPTIONS_DEFAULT= LAME DVDREAD JPEG ICONV BKTR_DESC= Bktr capture card support POSTPROC_DESC= Libpostproc support @@ -44,10 +46,6 @@ XML_DESC= Libxml2 XML support .include -.if ${OSVERSION} < 700000 -CONFIGURE_ENV+= LIBAVCODEC_EXTRA_LIBS="-pthread" -.endif - .if ${PORT_OPTIONS:MX11} USE_XORG= xv xaw xpm CONFIGURE_ARGS+= --with-x @@ -206,6 +204,16 @@ CONFIGURE_ARGS+= --with-iconv-prefix=${LOCALBASE} --enable-iconv CONFIGURE_ARGS+= --disable-iconv .endif +.if ${PORT_OPTIONS:MV4L} +BUILD_DEPENDS+= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat +CONFIGURE_ARGS+= --enable-v4l +.else +CONFIGURE_ARGS+= --disable-v4l +.endif + +post-extract: + @${RM} ${WRKSRC}/import/v4l/videodev* + post-patch: .if ${PORT_OPTIONS:MLZO} @${REINPLACE_CMD} -e 's|%%NUV%%|nuv|' ${WRKSRC}/import/Makefile.in diff --git a/multimedia/transcode/files/patch-import-v4l b/multimedia/transcode/files/patch-import-v4l new file mode 100644 index 000000000000..7017cc9c1f51 --- /dev/null +++ b/multimedia/transcode/files/patch-import-v4l @@ -0,0 +1,30 @@ +--- import/v4l/import_v4l.c.orig 2011-11-19 11:50:27.000000000 -0500 ++++ import/v4l/import_v4l.c 2013-06-10 14:51:01.000000000 -0400 +@@ -29,7 +29,7 @@ + #include + #include + +-#include "videodev.h" ++#include + + #define MOD_NAME "import_v4l.so" + #define MOD_VERSION "v0.2.0 (2008-10-26)" +--- import/probe_v4l.c.orig 2011-11-19 11:50:27.000000000 -0500 ++++ import/probe_v4l.c 2013-06-10 14:54:28.000000000 -0400 +@@ -31,14 +31,12 @@ + + #include + +-#include "v4l/videodev.h" ++#include + + #if defined(HAVE_LINUX_VIDEODEV2_H) && defined(HAVE_STRUCT_V4L2_BUFFER) + #define _LINUX_TIME_H +-#include +-#else +-#include "v4l/videodev2.h" + #endif ++#include + + + void probe_v4l(info_t *ipipe) -- cgit v1.2.3