View | Details | Raw Unified | Return to bug 123808
Collapse All | Expand All

(-)motion-3.2.10/Makefile (-8 / +22 lines)
Lines 2-18 Link Here
2
# Date created:				22 Dec 2005
2
# Date created:				22 Dec 2005
3
# Whom:					Angel Carpintero <ack@telefonica.net>
3
# Whom:					Angel Carpintero <ack@telefonica.net>
4
#
4
#
5
# $FreeBSD: ports/multimedia/motion/Makefile,v 1.9 2008/01/24 15:56:04 miwi Exp $
5
# $FreeBSD:$
6
#
6
#
7
7
8
PORTNAME=	motion
8
PORTNAME=	motion
9
PORTVERSION=	3.2.9
9
PORTVERSION=	3.2.10
10
PORTREVISION=	1
11
CATEGORIES=	multimedia
10
CATEGORIES=	multimedia
12
MASTER_SITES=	SF
11
MASTER_SITES=	SF	
13
12
14
PATCH_SITES=	http://www.lavrsen.dk/twiki/pub/Motion/FreeBSDPatch/
13
PATCH_SITES=	http://www.lavrsen.dk/twiki/pub/Motion/FreeBSDPatch/	
15
PATCHFILES=	motion-3.2.9-2.port-freebsd.diff.gz
14
PATCHFILES=	motion-3.2.10.port-freebsd.diff.gz
16
PATCH_DIST_STRIP=	-p1
15
PATCH_DIST_STRIP=	-p1
17
16
18
MAINTAINER=	ack@telefonica.net
17
MAINTAINER=	ack@telefonica.net
Lines 39-60 Link Here
39
EXAMPLES=	motion-dist.conf motion.init-FreeBSD.sh thread1.conf \
38
EXAMPLES=	motion-dist.conf motion.init-FreeBSD.sh thread1.conf \
40
		thread2.conf thread3.conf thread4.conf
39
		thread2.conf thread3.conf thread4.conf
41
40
42
OPTIONS=	BKTR "Support for TV Capture cards" on \
41
OPTIONS=	PWCBSD "Webcams supported by PWCBSD (this disables BKTR support)" off \
42
		BKTR "Support for TV Capture cards" on \
43
		LINUXTHREADS "Use LinuxThreads" off
43
		LINUXTHREADS "Use LinuxThreads" off
44
44
45
MAKE_ENV+=	CC="${CC}"
45
MAKE_ENV+=	CC="${CC}"
46
46
47
.include <bsd.port.pre.mk>
47
.include <bsd.port.pre.mk>
48
48
49
.if !defined(WITH_BKTR)
49
.if !defined(WITH_BKTR) && !defined(WITH_PWCBSD)
50
CFLAGS+=	-DWITHOUT_V4L
50
CFLAGS+=	-DWITHOUT_V4L
51
.endif
51
.endif
52
52
53
.if defined(WITH_PWCBSD)
54
CONFIGURE_ARGS= --with-pwcbsd
55
BUILD_DEPENDS+= v4l_compat>=1.0.20060801:${PORTSDIR}/multimedia/v4l_compat
56
RUN_DEPENDS+= /boot/modules/pwc.ko:${PORTSDIR}/multimedia/pwcbsd
57
.endif
58
53
.if defined(WITH_LINUXTHREADS) || ${OSVERSION} < 504000
59
.if defined(WITH_LINUXTHREADS) || ${OSVERSION} < 504000
54
CONFIGURE_ARGS=	--with-linuxthreads
60
CONFIGURE_ARGS=	--with-linuxthreads
55
LIB_DEPENDS+=	lthread.[35]:${PORTSDIR}/devel/linuxthreads
61
LIB_DEPENDS+=	lthread.[35]:${PORTSDIR}/devel/linuxthreads
56
.endif
62
.endif
57
63
64
65
58
post-install:
66
post-install:
59
.if !exists(${PREFIX}/etc/motion.conf)
67
.if !exists(${PREFIX}/etc/motion.conf)
60
	${INSTALL_DATA} ${PREFIX}/etc/motion.conf.sample ${PREFIX}/etc/motion.conf
68
	${INSTALL_DATA} ${PREFIX}/etc/motion.conf.sample ${PREFIX}/etc/motion.conf
Lines 77-80 Link Here
77
	@${ECHO_MSG} "==============================================================================="
85
	@${ECHO_MSG} "==============================================================================="
78
.endif
86
.endif
79
87
88
.if defined(WITH_PWCBSD)
89
	@${ECHO_MSG} "==============================================================================="
90
	@${ECHO_MSG} "Please make sure you have pwcbsd compiled with mmap support."
91
	@${ECHO_MSG} "==============================================================================="
92
.endif
93
80
.include <bsd.port.post.mk>
94
.include <bsd.port.post.mk>

Return to bug 123808