aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2010-01-16 20:46:33 +0000
committerKoop Mast <kwm@FreeBSD.org>2010-01-16 20:46:33 +0000
commite0367f88a9bc625493d8d693fb9c34962bb98d87 (patch)
treeadbefcbad2a91c939300ba5f32a8d396d2f245b8 /multimedia
parenta6b94c6a98e515074176f31e60db319b725bd699 (diff)
downloadports-e0367f88a9bc625493d8d693fb9c34962bb98d87.tar.gz
ports-e0367f88a9bc625493d8d693fb9c34962bb98d87.zip
Notes
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libv4l/Makefile31
-rw-r--r--multimedia/libv4l/distinfo3
-rw-r--r--multimedia/libv4l/files/patch-libv4lsyscall-priv.h11
-rw-r--r--multimedia/libv4l/pkg-descr6
-rw-r--r--multimedia/libv4l/pkg-plist17
5 files changed, 68 insertions, 0 deletions
diff --git a/multimedia/libv4l/Makefile b/multimedia/libv4l/Makefile
new file mode 100644
index 000000000000..498bb5a91027
--- /dev/null
+++ b/multimedia/libv4l/Makefile
@@ -0,0 +1,31 @@
+# Ports collection makefile for: libv4l
+# Date created: 13 January 2010
+# Whom: Andrew Thompson <thompsa@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libv4l
+PORTVERSION= 0.6.3
+CATEGORIES= multimedia
+MASTER_SITES= http://people.fedoraproject.org/~jwrdegoede/
+
+MAINTAINER= hselasky@FreeBSD.org
+COMMENT= Video4Linux library
+
+BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
+
+MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" LIBDIR="${PREFIX}/lib"
+USE_GZIP= yes
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|$$(LIBDIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
+ ${WRKSRC}/libv4l1/Makefile \
+ ${WRKSRC}/libv4l2/Makefile \
+ ${WRKSRC}/libv4lconvert/Makefile
+
+.include <bsd.port.post.mk>
diff --git a/multimedia/libv4l/distinfo b/multimedia/libv4l/distinfo
new file mode 100644
index 000000000000..ff979af5a14c
--- /dev/null
+++ b/multimedia/libv4l/distinfo
@@ -0,0 +1,3 @@
+MD5 (libv4l-0.6.3.tar.gz) = f480bcbeaaf47257a278a10391ad2650
+SHA256 (libv4l-0.6.3.tar.gz) = b46c1e77ed2b4b2e4feb26a3b3f915dd290ebded073f3df7daf0a001f51a7965
+SIZE (libv4l-0.6.3.tar.gz) = 131089
diff --git a/multimedia/libv4l/files/patch-libv4lsyscall-priv.h b/multimedia/libv4l/files/patch-libv4lsyscall-priv.h
new file mode 100644
index 000000000000..ef449d9a1f70
--- /dev/null
+++ b/multimedia/libv4l/files/patch-libv4lsyscall-priv.h
@@ -0,0 +1,11 @@
+--- libv4lconvert/libv4lsyscall-priv.h 2010-01-09 23:33:01.000000000 +0100
++++ libv4lconvert/libv4lsyscall-priv.h 2010-01-09 23:33:24.000000000 +0100
+@@ -84,7 +84,7 @@
+ #define SYS_WRITE(fd, buf, len) \
+ syscall(SYS_write, (int)(fd), (void *)(buf), (size_t)(len));
+ #define SYS_MMAP(addr, len, prot, flags, fd, off) \
+- syscall(SYS_mmap2, (void *)(addr), (size_t)(len), \
++ __syscall(SYS_mmap2, (void *)(addr), (size_t)(len), \
+ (int)(prot), (int)(flags), (int)(fd), (__off_t)((off) >> MMAP2_PAGE_SHIFT))
+ #define SYS_MUNMAP(addr, len) \
+ syscall(SYS_munmap, (void *)(addr), (size_t)(len))
diff --git a/multimedia/libv4l/pkg-descr b/multimedia/libv4l/pkg-descr
new file mode 100644
index 000000000000..71e9a8589fb3
--- /dev/null
+++ b/multimedia/libv4l/pkg-descr
@@ -0,0 +1,6 @@
+The Video4Linux library is a wrapper library for accessing Video4Linux
+compliant video devices. It allows for transcoding of capture streams
+in user space instead of kernel space and creates a standard interface
+mechanism for video devices.
+
+WWW: http://freshmeat.net/projects/libv4l
diff --git a/multimedia/libv4l/pkg-plist b/multimedia/libv4l/pkg-plist
new file mode 100644
index 000000000000..bc1a6059395e
--- /dev/null
+++ b/multimedia/libv4l/pkg-plist
@@ -0,0 +1,17 @@
+include/libv4lconvert.h
+include/libv4l2.h
+include/libv4l1.h
+lib/libv4l/ov511-decomp
+lib/libv4l/ov518-decomp
+lib/libv4l/v4l2convert.so
+lib/libv4l/v4l1compat.so
+lib/libv4lconvert.so.0
+lib/libv4lconvert.so
+libdata/pkgconfig/libv4lconvert.pc
+libdata/pkgconfig/libv4l2.pc
+libdata/pkgconfig/libv4l1.pc
+lib/libv4l2.so.0
+lib/libv4l2.so
+lib/libv4l1.so.0
+lib/libv4l1.so
+@dirrm lib/libv4l