summaryrefslogtreecommitdiffstats
path: root/games/xracer/Makefile
blob: fd4f9af7d0ea0058ac409e7f13d1f85a69e27fdf (plain)
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
50
51
52
53
54
# New ports collection makefile for:	xracer
# Date created:				Nov 6th 1999
# Whom:					troll
#
# $FreeBSD$
#

PORTNAME=	xracer
PORTVERSION=	0.94
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	http://xracer.annexia.org/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} xracer-data.tar.gz

MAINTAINER=	troll@digitalspark.net
COMMENT=	Awesome WipeOut clone for OpenGL and X11!

LIB_DEPENDS=	jpeg.9:${PORTSDIR}/graphics/jpeg

USE_XLIB=	yes
USE_MESA=	yes
USE_GMAKE=	yes
USE_AUTOTOOLS=	automake:14 autoconf:213
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
		LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
CONFIGURE_ARGS=	--disable-esd

.include <bsd.port.pre.mk>

.if ${ARCH} != i386 && ${ARCH} != "amd64"
BROKEN=		"Does not build on ${ARCH}"
.endif


post-patch:
	@${TOUCH} ${WRKSRC}/stamp-h.in

post-install:
	@${ECHO} "===>   Installing Tracks and Sound"
	@${MKDIR} ${PREFIX}/share/xracer
	${TAR} -C ${WRKDIR}/xracer-data -cf - . | \
		${TAR} -C ${PREFIX}/share/xracer --unlink -xf -
	@${CHMOD} -R 744 ${PREFIX}/share/xracer
	@${CHMOD} -R a+X ${PREFIX}/share/xracer
.if !defined(NOPORTDOCS)
	@${ECHO} "===>   Installing Documentation"
	@${MKDIR} ${PREFIX}/share/doc/xracer
.for file in AUTHORS ChangeLog NEWS README README.html
	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/xracer
.endfor
.endif
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud