aboutsummaryrefslogtreecommitdiff
path: root/games/gltron/Makefile
blob: 4b04abf51d5cb3fd025403fc6b30f2c9a0974aa6 (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
# New ports collection makefile for:	gltron
# Version required:			0.53
# Date created:				24 July 1999
# Whom:					Andrey Zakhvatov
#
# $FreeBSD$
#

DISTNAME=	gltron-0.53
CATEGORIES=	games
MASTER_SITES=	http://www.ards.net/Andreas/gltron/

MAINTAINER=	ports@FreeBSD.org

LIB_DEPENDS=	GL.14:${PORTSDIR}/graphics/Mesa3 \
		GLU.14:${PORTSDIR}/graphics/Mesa3 \
		glut.3:${PORTSDIR}/graphics/Mesa3

USE_X_PREFIX=	yes
USE_GMAKE=	yes
MAKE_ENV+=	OPT="${CFLAGS}"

do-install:
	@${MKDIR} ${PREFIX}/share/gltron/
.for FILE in *.sgi *.txt t-u-low.obj tron.mtl xenotron.ftx
	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/share/gltron/
.endfor
	@${INSTALL_PROGRAM} ${WRKSRC}/gltron ${PREFIX}/bin

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/gltron
.for file in CHANGELOG CREDITS README
	@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/gltron
.endfor
.endif

.include <bsd.port.mk>