blob: 1d2a5db1da14d45159018a78e881042942f72267 (
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
49
50
51
|
# New ports collection makefile for: linux_v4l2wrapper-kmod
# Date created: Fri May 6 22:30:00 CEST 2011
# Whom: 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
.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>
|