aboutsummaryrefslogtreecommitdiffstats
path: root/games/monsterz/Makefile
blob: 4e7239c5e64286b4fdc583cdf6ff7cd1b70fd146 (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
# Created by: thierry@pompo.net
# $FreeBSD$

PORTNAME=   monsterz
PORTVERSION=    0.7.1
PORTREVISION=   5
CATEGORIES= games
MASTER_SITES=   http://sam.zoy.org/monsterz/

MAINTAINER= thierry@FreeBSD.org
COMMENT=    Monsterz - arcade puzzle game

LICENSE=    WTFPL
LICENSE_NAME=   Do What The [expletive] You Want To Public License, Version 2
LICENSE_FILE=   ${WRKSRC}/COPYING
LICENSE_PERMS=  dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

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

USE_PYTHON= yes
MAKE_ENV=   prefix=${PREFIX}

SCOREDIR=   /var/games
PLIST_SUB=  SCOREDIR=${SCOREDIR}

PORTDOCS=   AUTHORS COPYING INSTALL README TODO

post-install:
    ${STRIP_CMD} ${PREFIX}/games/monsterz
    ${LN} -sf ${PREFIX}/games/monsterz ${PREFIX}/bin
    @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/games/monsterz
    @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/games/monsterz
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.include <bsd.port.mk>