aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/xawtv/Makefile
blob: 5a78f7c9a93117d078b01b51e7f91594c7a85692 (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
# New ports collection makefile for:   xawtv
# Date created:        03 March 2001
# Whom:                George Reid <greid@ukug.uk.freebsd.org>
#
# $FreeBSD$
#

PORTNAME=   xawtv
PORTVERSION=    3.74
CATEGORIES= graphics
MASTER_SITES=   http://bytesex.org/xawtv/
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= lehmann@ans-netz.de

LIB_DEPENDS=    Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d \
        png.5:${PORTSDIR}/graphics/png \
        jpeg.9:${PORTSDIR}/graphics/jpeg \
        aa.1:${PORTSDIR}/graphics/aalib

WRKSRC=     ${WRKDIR}/${DISTNAME:S/_/-/}
USE_MOTIF=  yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_XPM=    yes
USE_X_PREFIX=   yes

FILES_CFLAGS=   . font i2c man src radio webcam oldstuff/vtx \
        libng libvbi http
FILES_X11BASE=  configure Make.config.in
FILES_LOCALBASE=configure

MAN1=       alevtd.1 dump-mixers.1 fbtv.1 motv.1 ntsc-cc.1 propwatch.1 \
        radio.1 record.1 rootv.1 scantv.1 showriff.1 streamer.1 \
        subtitles.1 ttv.1 v4lctl.1 webcam.1 xawtv-remote.1 xawtv.1
MAN5=       xawtvrc.5
MAN8=       v4l-conf.8

.include <bsd.port.pre.mk>

.if ${XFREE86_VERSION} == 4
BUILD_DEPENDS=  bdftopcf:${PORTSDIR}/x11/XFree86-4-clients
RUN_DEPENDS=    mkfontdir:${PORTSDIR}/x11/XFree86-4-clients
.endif

PLIST_SUB+= X11PREFIX=${X11BASE}

post-patch:
.for i in ${FILES_X11BASE}
    ${PERL} -pi -e "s|%%X11BASE%%|${X11BASE}|g" ${WRKSRC}/$i
.endfor
.for i in ${FILES_LOCALBASE}
    ${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/$i
.endfor

post-configure:
.for i in ${FILES_CFLAGS}
    ${PERL} -pi -e "s|^CFLAGS=|CFLAGS+=|g" ${WRKSRC}/$i/Makefile
.endfor

.include <bsd.port.post.mk>