aboutsummaryrefslogtreecommitdiffstats
path: root/games/py-poker-eval/Makefile
blob: 137db624a9bd5c3aa93f6e6214d8d08db4b51b34 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   poker-eval
PORTVERSION=    0.138
PORTREVISION=   1
CATEGORIES= games python
MASTER_SITES=   http://download.gna.org/pokersource/sources/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   py${PORTNAME}-${PORTVERSION:E}.0

MAINTAINER= ports@FreeBSD.org
COMMENT=    Python adaptor for the poker-eval toolkit

LICENSE=    GPLv3+
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libpoker-eval.so:games/poker-eval

USES=       autoreconf libtool pkgconfig python:2
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= PYTHON=""

PLIST_SUB=  PYVER=${PYTHON_VER:S/./_/}

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_pokereval_2_7.so.1.0.0

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

.include <bsd.port.mk>