aboutsummaryrefslogtreecommitdiff
path: root/games/farblazer/Makefile
blob: 7b7beebc73ce4750ac66242fe847d85fe8bc63c5 (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
# New ports collection makefile for:    farblazer
# Date created:         		12 December 2001
# Whom:                 		Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	farblazer
PORTVERSION=	0.7
PORTREVISION=	3
CATEGORIES=	games
MASTER_SITES=	http://www.pygame.org/gamelets/games/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An action/arcade game originally based of StarBlazer on the Apple ][

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game

USE_PYTHON=	yes

do-build:
	${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}

do-install:
	@${MKDIR} ${DATADIR}
	(cd ${WRKSRC}; ${TAR} cf - .) | \
		(cd ${DATADIR}; ${TAR} --exclude=\*.orig --unlink -xf -)
	@printf "#!/bin/sh\ncd ${DATADIR} && \
		exec ${PYTHON_CMD} ${DATADIR}/${PORTNAME}.py \"$$\@\"\n" > ${WRKDIR}/${PORTNAME}.sh
	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>