aboutsummaryrefslogtreecommitdiffstats
path: root/games/pythonchess/Makefile
blob: f548f16f0945abe0cc5825a604b74ef771759b54 (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
# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$

PORTNAME=   pythonchess
PORTVERSION=    0.6
PORTREVISION=   2
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= alepulver
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Small program for playing chess against the computer

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter

USE_PYTHON= yes

do-build:
    @(${ECHO_CMD} "#!${SH}"; \
      ${ECHO_CMD} "cd ${DATADIR} && ${PYTHON_CMD} board.py") \
      > ${WRKDIR}/${PORTNAME}

do-install:
    @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
    @${MKDIR} ${DATADIR}
.for f in *.gif *.py *.txt
    @${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
.endfor

.include <bsd.port.mk>