aboutsummaryrefslogtreecommitdiffstats
path: root/games/tuxkart/Makefile
blob: 3efed9c08029520012173559aae2c1f7e4f43eb9 (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
# New ports collection makefile for:    tuxkart
# Date created:             08 Jun 2001
# Whom:                 Alexander Langer <alex@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   tuxkart
PORTVERSION=    0.2.0
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   http://tuxkart.sourceforge.net/dist/

MAINTAINER= ports@FreeBSD.org
COMMENT=    An OpenGL action kart racing game

BUILD_DEPENDS=  ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib

USE_X_PREFIX=   yes
USE_MESA=   yes
USE_REINPLACE=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
        LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS= --with-plib=${X11BASE}

post-patch:
    @${REINPLACE_CMD} -e 's|-O6|${PTHREAD_CFLAGS}|g ; \
         s|-lpthread|${PTHREAD_LIBS}|g ; \
         s|datadir/games|datadir|g' ${WRKSRC}/configure
    @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
        's|[\$$][(]prefix[)]/games|@bindir@|g ; \
         s|[\$$][(]datadir[)]/games|\$$(datadir)|g'

.include <bsd.port.mk>