# $NetBSD: Makefile,v 1.9 2000/09/04 10:23:58 wiz Exp $
#

DISTNAME=		mirrormagic-1.3
CATEGORIES=		games x11
MASTER_SITES=		${MASTER_SITE_XCONTRIB:=games/} \
			http://www.artsoft.org/mirrormagic/

MAINTAINER=		root@garbled.net
HOMEPAGE=		http://www.artsoft.org/mirrormagic/

USE_X11BASE=		YES
USE_XPM=		YES

do-install:
	${INSTALL_PROGRAM} -o bin -g games -m 2755 ${WRKSRC}/mirrormagic ${X11PREFIX}/bin
	${MKDIR} ${X11PREFIX}/share/mirrormagic/sounds
	${MKDIR} ${X11PREFIX}/share/mirrormagic/graphics
	${CHOWN} bin:games ${X11PREFIX}/share/mirrormagic
	${CHMOD} 775 ${X11PREFIX}/share/mirrormagic
	${INSTALL_DATA} ${WRKSRC}/sounds/* ${X11PREFIX}/share/mirrormagic/sounds
	${INSTALL_DATA} ${WRKSRC}/graphics/* ${X11PREFIX}/share/mirrormagic/graphics
	${INSTALL_DATA} ${WRKSRC}/RAY.* ${X11PREFIX}/share/mirrormagic
	${GUNZIP_CMD} ${X11PREFIX}/share/mirrormagic/graphics/*.gz
	${TOUCH} ${X11PREFIX}/share/mirrormagic/RAY.score
	${CHOWN} bin:games ${X11PREFIX}/share/mirrormagic/RAY.score
	${CHMOD} 664 ${X11PREFIX}/share/mirrormagic/RAY.score

.include "../../mk/bsd.pkg.mk"