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

PORTNAME=       xawtv
PORTVERSION=    3.37
CATEGORIES=     graphics
MASTER_SITES=   http://www.strusel007.de/linux/xawtv/
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= greid@ukug.uk.freebsd.org

LIB_DEPENDS=    Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d \
        png.4:${PORTSDIR}/graphics/png \
        jpeg.9:${PORTSDIR}/graphics/jpeg

WRKSRC=     ${WRKDIR}/${DISTNAME:S/_/-/}

GNU_CONFIGURE=  yes

USE_X_PREFIX=   yes

SEDFILES=   . font i2c man src radio contrib/cc webcam oldstuff/vtx \
        libng libvbi http

MAN1=       alevtd.1 fbtv.1 propwatch.1 rootv.1 showriff.1 v4l-conf.1 \
        v4lctl.1 webcam.1 xawtv-remote.1 xawtv.1

post-configure:
.for M in ${SEDFILES}
    @(${SED} -e 's,^CFLAGS=,CFLAGS+=,g' ${WRKSRC}/$M/Makefile | \
        ${SED} -e 's,-O2,,g' > ${WRKSRC}/foo && ${MV} ${WRKSRC}/foo ${WRKSRC}/$M/Makefile)
.endfor

post-install:
.for F in led-koi8.pcf led-latin1.pcf led-latin2.pcf
    @gzip ${PREFIX}/lib/X11/fonts/misc/$F
.endfor

.include <bsd.port.mk>