aboutsummaryrefslogtreecommitdiffstats
path: root/games/pysolfc/Makefile
blob: 68ee351cc134fe60036dae8d86c5e09117b4c62b (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
# New ports collection makefile for:    pysolfc
# Date created:     2009-03-13
# Whom:         Marcus von Appen
#
# $FreeBSD$
#

PORTNAME=   pysolfc
PORTVERSION=    1.1
CATEGORIES= games
MASTER_SITES=   SF/pysolfc
DISTNAME=   PySolFC-${PORTVERSION}

MAINTAINER= mva@FreeBSD.org
COMMENT=    Solitaire game, written in Python and the sucessor of PySol

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter

USE_BZIP2=  yes
USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME=    PySolFC

DATADIR=    ${PREFIX}/share/PySolFC
WRKSRC=     ${WRKDIR}/${DISTNAME}
PORTDOCS=   README

OPTIONS=    NLS "Native language support" on

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif

post-patch:
    @${MV} ${WRKSRC}/pysol.py ${WRKSRC}/pysolfc
    @${REINPLACE_CMD} -e 's|pysol.py|pysolfc|' ${WRKSRC}/setup.py
.if defined(WITHOUT_NLS)
    @${REINPLACE_CMD} -e "s|for l in ('ru', 'ru_RU')|for l in ()|" ${WRKSRC}/setup.py
.endif

.if !defined(NOPORTDOCS)
post-install:
    @${INSTALL} -d ${DOCSDIR}/
    @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif

.include <bsd.port.post.mk>