aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/pwcbsd/Makefile
blob: a875ba8c033b9fe3f8b66b1e9087f5f2daf9c98a (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
# New ports collection makefile for:    pwcbsd
# Date created:             17 Feb 2006
# Whom:                 Raaf <freebsd@luna.afraid.org>
#
# $FreeBSD$
#

PORTNAME=   pwcbsd
PORTVERSION=    1.3
PORTREVISION=   2
CATEGORIES= multimedia sysutils
MASTER_SITES=   http://raaf.atspace.org/

MAINTAINER= freebsd@luna.afraid.org
COMMENT=    The Linux pwc webcam driver ported to FreeBSD

MAN4=       pwc.4

WRKSRC=     ${WRKDIR}/${PORTNAME}
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel

OPTIONS=    PROGRAMS    "Build the programs"            on \
        MMAP        "Enable mmap support (MAY CRASH YOUR SYSTEM)"   off

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 504000
IGNORE=     requires FreeBSD 5.4 or superior
.endif

.if !exists(/usr/src/sys/Makefile)
IGNORE=     requires kernel source files
.endif

.if defined(WITH_MMAP)
ALL_TARGET= mmap
.else
ALL_TARGET= all
.endif
.if !defined(WITHOUT_PROGRAMS)
ALL_TARGET+=    pwcview
PROGRAMS=   pwcview
LIB_DEPENDS=    jpeg.9:${PORTSDIR}/graphics/jpeg
MAN1=       pwcview.1
USE_SDL=    sdl
PLIST_SUB+= PROGRAMS=""
.else
PLIST_SUB+= PROGRAMS="@comment "
.endif

post-install:
    ${MKDIR} ${PREFIX}/include/linux
    ${INSTALL_MAN} ${MAN4:S|^|${WRKSRC}/|} ${PREFIX}/man/man4
.if !defined(WITHOUT_PROGRAMS)
    ${INSTALL_PROGRAM} ${PROGRAMS:S|^|${WRKSRC}/|} ${PREFIX}/bin
    ${INSTALL_MAN} ${MAN1:S|^|${WRKSRC}/|} ${PREFIX}/man/man1
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>