blob: c7cec77b6ee519801d5a2889fc3eb617e28dc9ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Created by: nox@FreeBSD.org
# $FreeBSD$
PORTNAME= linux_v4l2wrapper-kmod
PORTVERSION= 1.0
PORTREVISION= 2
CATEGORIES= multimedia kld
MASTER_SITES= LOCAL/nox \
http://people.freebsd.org/~ae/
DISTNAME= linux_v4l2_kld
EXTRACT_SUFX= .tgz
MAINTAINER= nox@FreeBSD.org
COMMENT= Linux compatibility layer - V4L2 ioctl handler
ONLY_FOR_ARCHS= i386 amd64
PATCH_STRIP= -p1
WRKSRC= ${WRKDIR}/linux_v4l2
NO_STAGE= yes
.include <bsd.port.pre.mk>
PLIST_FILES+= "@cwd /"
PLIST_FILES+= ${KMODDIR:C,^/,,}/linux_v4l2wrapper.ko
PLIST_FILES+= "@exec kldxref ${KMODDIR}"
PLIST_FILES+= "@unexec kldxref ${KMODDIR}"
# install where x11/nvidia-driver does also:
KMODDIR= /boot/modules
MAKE_ENV+= KMODDIR="${KMODDIR}"
SYSDIR?= ${SRC_BASE}/sys
MAKE_ENV+= SYSDIR="${SYSDIR}"
CFLAGS+= ${DEBUG_FLAGS}
.include "${.CURDIR}/Makefile.sub"
.if ${LINUX_V4L2_AVAILABLE} == "1"
IGNORE= is already in kernel
.else
.if !exists(${SYSDIR}/Makefile)
IGNORE= requires kernel source to be installed
.endif
.endif
.include <bsd.port.post.mk>
|