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

PORTNAME=   py-game
PORTVERSION=    1.0
CATEGORIES= devel python
MASTER_SITES=   http://pygame.seul.org/ftp/
DISTNAME=   ${PORTNAME:S/-//}-${PORTVERSION}

MAINTAINER= sobomax@FreeBSD.org

BUILD_DEPENDS=  ${PYDISTUTILS} \
        ${PYNUMERIC}
LIB_DEPENDS=    SDL_ttf.2:${PORTSDIR}/graphics/sdl_ttf \
        SDL_image.10:${PORTSDIR}/graphics/sdl_image \
        SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \
        smpeg.1:${PORTSDIR}/graphics/smpeg
RUN_DEPENDS=    ${PYNUMERIC}

SDL_CONFIG?=    ${LOCALBASE}/bin/sdl11-config

USE_PYTHON= yes
SETUP_CMD=  cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD}
MAKE_ENV=   SDL_CONFIG="${SDL_CONFIG}"

.include <bsd.port.pre.mk>

.if ${PYTHON_VERSION} == "python2.1"
PYNUMERIC=  ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric
.else
PYNUMERIC=  ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric17
.endif

do-configure:
    @${SETUP_CMD} config.py

do-build:
    @${SETUP_CMD} setup.py build

do-install:
    @${SETUP_CMD} setup.py install

.include <bsd.port.post.mk>