aboutsummaryrefslogtreecommitdiffstats
path: root/games/poker-engine/Makefile
blob: 8105e218d822a77b8b99040d7da24842b22a6ccd (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   poker-engine
PORTVERSION=    1.3.6
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   http://download.gna.org/pokersource/sources/

MAINTAINER= games@FreeBSD.org
COMMENT=    Python library that implements poker rules

BUILD_DEPENDS=  ${LOCALBASE}/bin/rsync:${PORTSDIR}/net/rsync \
        ${PYTHON_SITELIBDIR}/pokereval.py:${PORTSDIR}/games/py-poker-eval \
        ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
        ${PYTHON_SITELIBDIR}/libxslt.py:${PORTSDIR}/textproc/py-libxslt

RUN_DEPENDS=    ${LOCALBASE}/bin/rsync:${PORTSDIR}/net/rsync \
        ${PYTHON_SITELIBDIR}/pokereval.py:${PORTSDIR}/games/py-poker-eval \
        ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
        ${PYTHON_SITELIBDIR}/libxslt.py:${PORTSDIR}/textproc/py-libxslt

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       gmake pkgconfig gettext
USE_PYTHON= 2
GNU_CONFIGURE=  yes

post-patch:
    @${REINPLACE_CMD} -e \
        's|{datadir}/pkgconfig|(prefix)/libdata/pkgconfig|g' \
        ${WRKSRC}/Makefile.in

test:
    @cd ${WRKSRC} && ${MAKE_CMD} check

.include <bsd.port.mk>