aboutsummaryrefslogtreecommitdiffstats
path: root/games/ultimatestunts/Makefile
blob: 657fd632619c1ac8d9367d92ef331d5b183d7ea4 (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
# New ports collection makefile for:    ultimatestunts
# Date created:     9 August 2007
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   ultimatestunts
PORTVERSION=    0.7.5.1
PORTREVISION=   6
DISTVERSIONPREFIX=  srcdata-
DISTVERSION=    ${PORTVERSION:S/.//g}
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/sourcecode/0.7.5%20release%201

MAINTAINER= ports@FreeBSD.org
COMMENT=    Racing game with elaborate stunts

USE_GETTEXT=    yes
USE_OPENAL= al alut
USE_GL=     gl glu
USE_SDL=    sdl image
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-openal --program-transform-name=""
CPPFLAGS+=  `${SDL_CONFIG} --cflags`
LDFLAGS=    -L${LOCALBASE}/lib
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
PORT_VERBS= ${PORTNAME} ustunts
MAKE_JOBS_UNSAFE=   yes

post-extract:
    @${FIND} ${WRKSRC} -name CVS|${SED} -e 's| |\\ |g'|${XARGS} ${RM} -rf

post-patch:
    @${REINPLACE_CMD} -e 's|-I/usr/local/include||;s|-L/usr/local/lib||;\
        /usdatadir=/s|=.*|="${DATADIR}"|;/SDL_CONFIG.*cflags/d' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e '/^sysconf_DATA/d;/^SUBDIRS/s| data | |' ${WRKSRC}/Makefile.in

post-install:
    @cd ${WRKSRC}/data/&&${COPYTREE_SHARE} "cars environment lang misc music textures\
        textures.dat tiles tracks" ${DATADIR}/
.ifndef NOPORTDOCS
    @cd ${WRKSRC}/doc/&&${COPYTREE_SHARE} . ${DOCSDIR}/
.endif

.include <bsd.port.mk>