blob: ddaa55fd480fa27513b7bfa1a3b9efa08f561964 (
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
|
# Ports collection makefile for: v4l-utils
# Date created: Thu Jun 2 22:22:47 CEST 2011
# Whom: Juergen Lock <nox@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= v4l-utils
PORTVERSION= 0.8.4
CATEGORIES= multimedia
MASTER_SITES= http://linuxtv.org/downloads/v4l-utils/
MAINTAINER= nox@FreeBSD.org
COMMENT= Video4Linux utilities
BUILD_DEPENDS= v4l_compat>=1.0.20110603:${PORTSDIR}/multimedia/v4l_compat \
libv4l>=0.8.4:${PORTSDIR}/multimedia/libv4l
LIB_DEPENDS= v4l2.0:${PORTSDIR}/multimedia/libv4l \
argp.0:${PORTSDIR}/devel/argp-standalone
MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -DPREFIX=\\\"${PREFIX}\\\"" \
LIBDIR="${PREFIX}/lib" LDFLAGS="-L${LOCALBASE}/lib -largp"
USE_BZIP2= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/utils
MAN1= ir-keytable.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800000
EXTRA_PATCHES= ${FILESDIR}/extra-strnlen
.endif
post-patch:
@${RM} ${WRKSRC}/../include/linux/videodev2.h
@${REINPLACE_CMD} -e 's|#include <sys/klog.h>||g' \
-e 's|#include <features.h>||g' \
-e 's|#include <linux/types.h>||g' \
${WRKSRC}/v4l2-compliance/v4l2-compliance.cpp \
${WRKSRC}/v4l2-compliance/v4l2-test-debug.cpp \
${WRKSRC}/v4l2-ctl/cx18-ctl.c \
${WRKSRC}/v4l2-ctl/ivtv-ctl.c \
${WRKSRC}/../include/linux/ivtv.h
.include <bsd.port.post.mk>
|