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

PORTNAME=	pysolfc
PORTVERSION=	2.0
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/PySolFC/PySolFC-${PORTVERSION}
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 \
		${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging

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>