blob: 20c271a0007cdfe366288978e9f1ef39398d5654 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Ports collection makefile for: webcamd
# Date created: 13 January 2010
# Whom: Andrew Thompson <thompsa@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= webcamd
PORTVERSION= 3.6.0.1
CATEGORIES= multimedia
MASTER_SITES= http://www.selasky.org/hans_petter/distfiles/ \
http://hselasky.homeunix.org:8192/distfiles/
MAINTAINER= hselasky@FreeBSD.org
COMMENT= A port of Linux USB webcam and DVB drivers into userspace
BUILD_DEPENDS= v4l_compat>=1.0.20100321:${PORTSDIR}/multimedia/v4l_compat \
cuse4bsd-kmod>=0.1.24:${PORTSDIR}/multimedia/cuse4bsd-kmod
LIB_DEPENDS= v4l1.0:${PORTSDIR}/multimedia/libv4l \
cuse4bsd.1:${PORTSDIR}/multimedia/cuse4bsd-kmod
LICENSE= GPLv2
USE_RC_SUBR= webcamd
USE_BZIP2= yes
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
MANCOMPRESSED= yes
MAN4= a800.4 ce6230.4 dtv5100.4 gl861.4 mr800.4 pwc.4 sq905c.4 \
usbvision.4 af9005.4 cinergy.4 dw2102.4 gp8psk.4 \
mr97310a.4 s2255.4 stk014.4 uvc.4 af9015.4 conex.4 \
ec168.4 hdpvr.4 nova-t.4 se401.4 stv06xx.4 vc032x.4 \
anysee.4 cpiax.4 em28xx.4 ibmcam.4 opera.4 siano.4 \
sunplus.4 vp702x.4 au0828.4 cxusb.4 et61x251.4 \
jeilinj.4 ov519.4 sn9c102.4 t613.4 vp7045.4 au6610.4 \
dib0700.4 finepix.4 m5602.4 ov534.4 sn9c20x.4 ttusb2.4 \
zc3xx.4 b2c2.4 digitv.4 friio.4 m920x.4 pacxxx.4 \
sonixj.4 tv8532.4 zr364xx.4 benq.4 dtt200u.4 gl860.4 \
mars.4 pvrusb2.4 spca5xx.4 umt.4
MAN8= webcamd.8
LIBDIR= ${PREFIX}/lib
OPTIONS_DEFINE= HAL DEBUG VT_CLIENT VT_SERVER
OPTIONS_DEFAULT=HAL
HAL_DESC= Build with HAL and DBUS support
DEBUG_DESC= Build with debugging support
VT_CLIENT_DESC= Build with vTuner client support
VT_SERVER_DESC= Build with vTuner server support
USERS= webcamd
GROUPS= webcamd
.include <bsd.port.pre.mk>
LIBCUSE=${LIBDIR}/libcuse4bsd.so
MAKE_ARGS+=" HAVE_MAN=YES"
.if ${PORT_OPTIONS:MHAL}
MAKE_ARGS+=" HAVE_HAL=YES"
LIBHAL=${LIBDIR}/libhal.so:${LIBDIR}/libdbus-1.so:
LIB_DEPENDS+=hal.1:${PORTSDIR}/sysutils/hal
LIB_DEPENDS+=dbus-1:${PORTSDIR}/devel/dbus
.else
LIBHAL=
.endif
.if ${PORT_OPTIONS:MVT_CLIENT}
MAKE_ARGS+=" HAVE_VTUNER_CLIENT=YES"
.endif
.if ${PORT_OPTIONS:MVT_SERVER}
MAKE_ARGS+=" HAVE_VTUNER_SERVER=YES"
.endif
.if ${PORT_OPTIONS:MDEBUG}
MAKE_ARGS+=" HAVE_DEBUG=YES"
.endif
.if ${OSVERSION} < 800000
IGNORE= requires FreeBSD 8.0-RELEASE or later
.endif
post-patch:
@cd ${WRKSRC}/patches; ${SH} ./do_patch.sh
post-install:
@${MKDIR} ${PREFIX}/etc/devd
@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
-e "s|%%LIBHAL%%|${LIBHAL}|g" \
-e "s|%%LIBCUSE%%|${LIBCUSE}|g" \
< ${FILESDIR}/webcamd.conf.in > ${WRKDIR}/webcamd.conf
${INSTALL_DATA} "${WRKDIR}/webcamd.conf" ${PREFIX}/etc/devd
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|