aboutsummaryrefslogtreecommitdiffstats
path: root/games/balazarbrothers/Makefile
blob: e152b09be0084670c3bad8b5de07ef929eb8e505 (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
48
49
50
51
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$

PORTNAME=   balazarbrothers
PORTVERSION=    0.3.1
PORTREVISION=   6
CATEGORIES= games python
MASTER_SITES=   http://download.gna.org/${PORTNAME:S/brothers//}/
DISTNAME=   ${PORTNAME:S/b/B/g}-${PORTVERSION}

MAINTAINER= acm@FreeBSD.org
COMMENT=    Balazar Brother is a free software 3D puzzle game

LIB_DEPENDS=    cal3d.12:${PORTSDIR}/graphics/cal3d \
        libfreetype.so:${PORTSDIR}/print/freetype2
RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/cerealizer/__init__.py:${PORTSDIR}/security/py-cerealizer \
        ${PYTHON_SITELIBDIR}/soya/__init__.py:${PORTSDIR}/graphics/py-soya3d \
        ${PYTHON_SITELIBDIR}/tofu/__init__.py:${PORTSDIR}/net/py-tofu \
        ${PYTHON_SITELIBDIR}/ogg/__init__.py:${PORTSDIR}/audio/py-vorbis

USE_BZIP2=  yes
USES=       gettext twisted
USE_PYTHON= yes
USE_PYDISTUTILS=yes
USE_GL=     glew
USE_GMAKE=  yes

PYDISTUTILS_PKGNAME=    BalazarBrothers
PYDISTUTILS_EGGINFODIR= ${PREFIX}/share
PYDISTUTILS_SETUP=  ${PYSETUP}
PYDISTUTILS_NOEGGINFO=  yes
PYDISTUTILS_INSTALLNOSINGLE=    yes
DATADIR=    share/balazar_brothers

PLIST_SUB=  PYDISTUTILS_EGGINFO=${PYDISTUTILS_EGGINFO}

OPTIONS_DEFINE= OPENAL
OPTIONS_DEFAULT=    OPENAL

NO_STAGE=   yes
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MOPENAL}
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}openal>=0:${PORTSDIR}/audio/py-openal
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/setup.cfg

.include <bsd.port.post.mk>