aboutsummaryrefslogtreecommitdiffstats
path: root/games/py-pychess/Makefile
blob: 8d1ec5fdf597ee0bdc0bd816449bedf51f3cf141 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# New ports collection makefile for:    pychess
# Date created:     2008-01-23
# Whom:         Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   pychess
DISTVERSION=    0.10rc1
PORTREVISION=   2
#PORTEPOCH= 0
CATEGORIES= games python
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE} \
        http://nivi.interfree.it/distfiles/${PORTNAME}/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= nivit@FreeBSD.org
COMMENT=    A GTK chess client written in Python

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}sqlite3>=3-2.5.1_1:${PORTSDIR}/databases/py-sqlite3

INSTALLS_ICONS= yes

OPTIONS=    PYGSTREAMER "Install gst-python for audio support" off \
        CRAFTY "Install crafty (chess engine)" off \
        GNUCHESS "Install gnuchess (chess engine)" off \
        PHALANX "Install phalanx (chess engine)" off \
        SJENG "Install sjeng (chess engine)" off \
        STRONGPLAYER "Install psyco/gmpy (strong player)" off \
        STOCKFISH "Install stockfish (chess engine)" off

OPTIONSFILE=    ${PORT_DBDIR}/py-${PORTNAME}/options

PYDISTUTILS_PKGVERSION= ${DISTVERSION}

USE_GNOME=  pygnomedesktop
USE_GETTEXT=    yes
USE_PYTHON= yes
USE_PYDISTUTILS=    yes

REINPLACE_ARGS= -i.bak -e 's,%%PREFIX%%,${PREFIX},' -e 's,share/games/pychess,${DATADIR},' -e '1s,/usr/bin/python,/usr/bin/env python${PYTHON_VER},'

.if !defined(NO_INSTALL_MANPAGES)
MAN1=   ${PORTNAME}.1
MANCOMPRESSED=  yes
.else
MAKE_ENV+=  NO_INSTALL_MANPAGES=${NO_INSTALL_MANPAGES}
.endif

post-patch:
    cd ${WRKSRC} && ${REINPLACE_CMD} ${PORTNAME} ${PYSETUP} lib/pychess/widgets/newGameDialog.py lib/pychess/Players/PyChess.py

.include <bsd.port.pre.mk>

.if defined (WITH_PYGSTREAMER)
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}-gstreamer>=0.10.8:${PORTSDIR}/multimedia/py-gstreamer
.endif

.if defined (WITH_CRAFTY)
RUN_DEPENDS+=   crafty:${PORTSDIR}/games/crafty
.endif

.if defined (WITH_GNUCHESS)
RUN_DEPENDS+=   gnuchess:${PORTSDIR}/games/gnuchess
.endif

.if defined (WITH_PHALANX)
RUN_DEPENDS+=   phalanx:${PORTSDIR}/games/phalanx
.endif

.if defined (WITH_SJENG)
RUN_DEPENDS+=   sjeng:${PORTSDIR}/games/sjeng
.endif

.if defined (WITH_STRONGPLAYER)
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}psyco>=1.6:${PORTSDIR}/devel/py-psyco
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}gmpy>=1.13:${PORTSDIR}/math/py-gmpy
.endif

.if defined (WITH_STOCKFISH)
RUN_DEPENDS+=   stockfish:${PORTSDIR}/games/stockfish
.endif

.include <bsd.port.post.mk>
7 21:26:18 +0800'>2021-06-071-1/+1 * graphics/poppler: update to 21.05.0Tobias C. Berner2021-05-061-1/+1 * graphics/poppler: update to 21.04.0Tobias C. Berner2021-04-161-1/+1 * One more small cleanup, forgotten yesterday.Mathieu Arnold2021-04-071-1/+0 * Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0 * graphics/poppler: update to 21.03.0Tobias C. Berner2021-03-091-1/+1 * graphics/poppler: update to 21.02Tobias C. Berner2021-02-091-1/+1 * graphics/xournalpp: Patch the bug that the upstream didn't fix for a whileYuri Victorovich2021-01-181-0/+13 * graphics/poppler: update to 21.01.0Tobias C. Berner2021-01-081-0/+1 * graphics/xournalpp: Update 1.0.19 -> 1.0.20Yuri Victorovich2020-12-202-5/+4 * graphics/poppler: update to 20.12.0Tobias C. Berner2020-12-12