summaryrefslogtreecommitdiff
path: root/games/solarwolf/Makefile
blob: 9216ea84f41ebedef16f39529c04ec28ab2cbbed (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
# New ports collection makefile for:    solarwolf
# Date created:         		4 May 2001
# Whom:                 		Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	solarwolf
PORTVERSION=	1.0
CATEGORIES=	games
MASTER_SITES=	http://shredwheat.zopesite.com/solarwolf/files/

MAINTAINER=	sobomax@FreeBSD.org

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} ${PREFIX}/share/solarwolf
	(cd ${WRKSRC}; tar cf - .) | \
		(cd ${PREFIX}/share/solarwolf; tar --unlink -xf -)
	@printf "#!/bin/sh\ncd ${PREFIX}/share/solarwolf && \
		exec ${PYTHON_CMD} ${PREFIX}/share/solarwolf/solarwolf.py\n" > ${WRKDIR}/solarwolf.sh
	@${INSTALL_SCRIPT} ${WRKDIR}/solarwolf.sh ${PREFIX}/bin/solarwolf

.include <bsd.port.mk>