aboutsummaryrefslogtreecommitdiff
path: root/devel/py-game/Makefile
blob: 0893b495856b23d6d8fa2d4364dba3738a316167 (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
44
# New ports collection makefile for:	py-game
# Date created:				14 December 2000
# Whom:                 		Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	game
PORTVERSION=	1.7.1
PORTREVISION=	2
CATEGORIES=	devel python
MASTER_SITES=	http://pygame.seul.org/ftp/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	py${PORTNAME}-${PORTVERSION}release

MAINTAINER=	mva@sysfault.org
COMMENT=	A module designed to write games in Python

BUILD_DEPENDS=	${PYNUMERIC}
LIB_DEPENDS=	smpeg.1:${PORTSDIR}/multimedia/smpeg
RUN_DEPENDS=	${PYNUMERIC}

USE_SDL=	ttf image mixer sdl
USE_PYTHON=	yes
USE_PYDISTUTILS=yes
USE_XLIB=	yes

PYDISTUTILS_PKGNAME=	pygame
PYDISTUTILS_PKGVERSION=	1.7.1release

do-configure:
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} config.py

.if !defined(NOPORTDOCS)
post-install:
	${MKDIR} ${EXAMPLESDIR}
	${TAR} -C ${WRKSRC}/examples -cf - . | \
		${TAR} --unlink -C ${EXAMPLESDIR} -xf -
	${MKDIR} ${DOCSDIR}
	${TAR} -C ${WRKSRC}/docs -cf - . | \
		${TAR} --unlink -C ${DOCSDIR} -xf -
.endif

.include <bsd.port.mk>