summaryrefslogtreecommitdiff
path: root/games/mirrormagic/Makefile
blob: 1aa61666939e07503bb472421d8c5d676d8403f6 (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:	mirrormagic
# Date created:				1 April 1998
# Whom:					Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=	mirrormagic
PORTVERSION=	1.3
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR=	games

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An arcade style game with stereo sound for X Window System

USE_X_PREFIX=	yes
USE_XPM=	yes

post-extract:
.for file in DoubleRayDoor DoubleRayFont DoubleRayFont2 DoubleRayScreen
	@${GUNZIP_CMD} ${WRKSRC}/graphics/${file}.xpm
.endfor
	@(cd ${WRKDIR}; ${CP} ${FILESDIR}/RAY.* .; uudecode *.uu; ${RM} *.uu)

do-install:
	${INSTALL_PROGRAM} -m 2755 -o root -g games ${WRKSRC}/mirrormagic ${PREFIX}/bin
	@${MKDIR} ${PREFIX}/share/mirrormagic/graphics
	${INSTALL_DATA} ${WRKSRC}/graphics/* ${PREFIX}/share/mirrormagic/graphics
	@${MKDIR} ${PREFIX}/share/mirrormagic/sounds
	${INSTALL_DATA} ${WRKSRC}/sounds/*.8svx ${PREFIX}/share/mirrormagic/sounds
	@${MKDIR} ${PREFIX}/share/mirrormagic/data
	${INSTALL_DATA} ${WRKSRC}/RAY.level ${PREFIX}/share/mirrormagic/data
	${INSTALL_DATA} ${WRKDIR}/RAY.* ${PREFIX}/share/mirrormagic/data
	@${MKDIR} ${PREFIX}/share/doc/mirrormagic
.for file in CHANGES COPYRIGHT DISCLAIMER README
	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/mirrormagic
.endfor
#	@${CHMOD} 664 ${PREFIX}/share/mirrormagic/data
	@${CHOWN} root:games ${PREFIX}/share/mirrormagic/data/RAY.*
	@${CHMOD} 664 ${PREFIX}/share/mirrormagic/data/RAY.*

.include <bsd.port.mk>