aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/vic/Makefile
blob: a8219c25b40f606acee5e8e354bb32507ae5a68e (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
# New ports collection makefile for:    vic
# Date created:     14 December 1994
# Whom:         wollman
#
# $FreeBSD$
#

PORTNAME=   vic
PORTVERSION=    2.8.1.1.3
PORTREVISION=   1
CATEGORIES= mbone tk83 ipv6
MASTER_SITES=   http://www-mice.cs.ucl.ac.uk/multimedia/software/vic/2.8ucl-1.1.3/
DISTNAME=   ${PORTNAME}-2.8ucl-1.1.3

MAINTAINER= fenner@FreeBSD.org
COMMENT=    MBONE video tool

LIB_DEPENDS=    tk83.1:${PORTSDIR}/x11-toolkits/tk83
BUILD_DEPENDS=  ${LOCALBASE}/lib/libuclmmbase.a:${PORTSDIR}/devel/uclmmbase

WRKSRC=     ${WRKDIR}/vic-2.8ucl-1.1.3/vic

USE_AUTOCONF_VER=   213
USE_PERL5_BUILD=yes
USE_X_PREFIX=   yes
CONFIGURE_ARGS= -x-libraries=${PREFIX}/lib \
        -x-includes=${PREFIX}/include \
        -without-ucltcl \
        -with-tcl=${LOCALBASE} \
        -without-ucltk \
        -with-tk=${LOCALBASE} \
        -enable-ipv6
MAN1=       vic.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 502126
BROKEN=     "Does not compile on FreeBSD >= 5.x"
.endif

pre-patch:
    @${FIND} ${WRKSRC} -name "*.[c,h]" | ${XARGS} ${PERL} -pi -e \
        's|malloc.h|stdlib.h|'

post-install:
    ${STRIP_CMD} ${PREFIX}/bin/vic
    ${STRIP_CMD} ${PREFIX}/bin/histtolut

.include <bsd.port.post.mk>