summaryrefslogtreecommitdiff
path: root/games/tuxracer/Makefile
blob: dbfafb5d8ba13387f9da265f292ca2e06e42c43b (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
# $NetBSD: Makefile,v 1.27 2008/05/26 02:13:20 joerg Exp $
#

DISTNAME=	tuxracer-0.61
PKGREVISION=	12
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=tuxracer/}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		${PKGBASE}-data-${PKGVERSION:C/nb[0-9]*$//}${EXTRACT_SUFX}

MAINTAINER=	david@silicium.ath.cx
HOMEPAGE=	http://tuxracer.sourceforge.net/
COMMENT=	3D penguin racing game using OpenGL

PKG_INSTALLATION_TYPES=	overwrite pkgviews
PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=	YES

CFLAGS+=	-DGLX_GLXEXT_PROTOTYPES
CONFIGURE_ARGS+=	--with-data-dir=${PREFIX}/share/tuxracer
CONFIGURE_ARGS+=	--with-tcl-libs=${BUILDLINK_PREFIX.tcl}/lib
CONFIGURE_ENV+=		CFLAGS=${CFLAGS:M*:Q}
USE_LANGUAGES=	c c++

USE_TOOLS+=	pax

INSTALLATION_DIRS=	share/doc/html/tuxracer share/examples/tuxracer \
			share/tuxracer

post-install:
	cd ${WRKSRC}/html && \
		pax -rw .  ${DESTDIR}${PREFIX}/share/doc/html/tuxracer/
	cd ${WRKSRC}/contrib && \
		pax -rw .  ${DESTDIR}${PREFIX}/share/examples/tuxracer/
	cd ${WRKDIR}/${PKGBASE}-data-${PKGVERSION:C/nb[0-9]*$//} && \
		pax -rw .  ${DESTDIR}${PREFIX}/share/tuxracer/
	cd ${DESTDIR}${PREFIX}/share/tuxracer && \
		${FIND} . -type f -exec ${CHMOD} 444 {} \;

.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../lang/tcl/buildlink3.mk"
.include "../../x11/libXi/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"