aboutsummaryrefslogtreecommitdiffstats
path: root/games/gracer/Makefile
blob: 903f87fb7c09c129c7549529086bab3151fb8957 (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
# New ports collection makefile for:   gracer
# Date created:        Fri Jul 30 20:50:16 MET DST 1999
# Whom:                nox@jelal.kn-bremen.de
#
# $FreeBSD$
#

PORTNAME=   gracer
PORTVERSION=    0.1.5
PORTREVISION=   12
CATEGORIES= games
MASTER_SITES=   SF

MAINTAINER= nox@FreeBSD.org
COMMENT=    A 3D motor sport simulator

BUILD_DEPENDS=  ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib
LIB_DEPENDS=    gif.5:${PORTSDIR}/graphics/giflib \
        png15:${PORTSDIR}/graphics/png \
        jpeg.11:${PORTSDIR}/graphics/jpeg \
        tcl84.1:${PORTSDIR}/lang/tcl84

USE_GL=     glut
USE_PERL5_BUILD=yes
USE_AUTOTOOLS=  autoconf213
CONFIGURE_ENV=  LIBS="-L${LOCALBASE}/lib" \
        CPPFLAGS="${CPPFLAGS}"
CPPFLAGS+=  -I${LOCALBASE}/include \
        -I${LOCALBASE}/include/tcl8.4
USE_GMAKE=  yes
# for plib (sound):
CONFIGURE_ARGS+=    --with-plib=${LOCALBASE}/plib

MAN6=       gracer.6

.include <bsd.port.pre.mk>

pre-patch:
    @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
        ${WRKSRC}/common/gr_memory.h

.include <bsd.port.post.mk>