aboutsummaryrefslogtreecommitdiffstats
path: root/games/etracer/Makefile
blob: 336a664e427ce06f2f66a6109176544ee5226326 (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
# New ports collection makefile for:   extreme tux racer
# Date created:        22 February 2008
# Whom:                Peter Dunning
#
# $FreeBSD$
#

PORTNAME=       etracer
PORTVERSION=        0.4
PORTREVISION=   5
CATEGORIES=     games
MASTER_SITES=       SF/extremetuxracer/extreme-tuxracer/${PORTVERSION}
DISTNAME=       extremetuxracer-${PORTVERSION}

MAINTAINER=     peter_dunning@dsl.pipex.com
COMMENT=        The latest and greatest fork of the classic Tux Racer

LIB_DEPENDS=        png.6:${PORTSDIR}/graphics/png \
            freetype.9:${PORTSDIR}/print/freetype2

USE_SDL=        mixer sdl
USE_GL=         gl glu glut
USE_GMAKE=      yes
GNU_CONFIGURE=      yes

USE_TCL=        84+

.include <bsd.port.pre.mk>
CONFIGURE_ARGS=     --with-tcl="${TCL_LIBDIR}" \
            --with-tcl-inc="${TCL_INCLUDEDIR}" \
            --with-gl-libs="${LOCALBASE}/lib" \
            --with-gl-inc="${LOCALBASE}/include"

post-patch:
    ${REINPLACE_CMD} -e 's|libpng12|libpng14|g' \
        ${WRKSRC}/configure
    ${REINPLACE_CMD} -e 's|int_p_NULL|NULL|g' \
        -e 's|png_infopp_NULL|NULL|g' \
        ${WRKSRC}/src/ppgltk/images/png_reader.cpp

.include <bsd.port.post.mk>