summaryrefslogtreecommitdiff
path: root/games/glasteroids/Makefile
blob: ec73c2f14081466653d859660348a723b6e00def (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
# New ports collection makefile for:	glasteroids
# Date created:				16 August 1999
# Whom:					Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=	glasteroids
PORTVERSION=	1.0
CATEGORIES=	games
MASTER_SITES=	http://www.honors.montana.edu/~jjc/Glasteroids/
DISTNAME=	Glasteriods

MAINTAINER=	ports@FreeBSD.org

LIB_DEPENDS=	GL.14:${PORTSDIR}/graphics/Mesa3

MAKEFILE=	Makefile.FreeBSD

WRKSRC=		${WRKDIR}/Glasteroids

USE_X_PREFIX=	yes

pre-build:
	@ ${CP} ${FILESDIR}/Makefile.FreeBSD ${WRKSRC}

do-install:
	@ ${INSTALL_PROGRAM} ${WRKSRC}/Glasteroids ${PREFIX}/bin/glasteroids
	@ ${MKDIR} ${PREFIX}/share/glasteroids
	@ ${INSTALL_DATA} ${WRKSRC}/gameText.txf ${PREFIX}/share/glasteroids
	@ cd ${WRKSRC}; tar -cf - scores.txt textures | \
		( cd ${PREFIX}/share/glasteroids; tar -xf - )
	@ ${CHMOD} a+rx ${PREFIX}/share/glasteroids/textures
	@ ${CHMOD} a+rw ${PREFIX}/share/glasteroids/scores.txt

post-install:
.if !defined(NOPORTDOCS)
	@ ${MKDIR} ${PREFIX}/share/doc/glasteroids
	@ ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/glasteroids
	@ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/glasteroids
.endif

.include <bsd.port.mk>