aboutsummaryrefslogtreecommitdiff
path: root/games/pathological/Makefile
blob: a9b87652a6a203e08ea6aed3e270ae5d76b47dd8 (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
# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>

PORTNAME=	pathological
PORTVERSION=	1.1.3
PORTREVISION=	14
CATEGORIES=	games
MASTER_SITES=	SF

MAINTAINER=	jmohacsi@bsd.hu
COMMENT=	Enriched clone of the game "Logical"

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	${PYGAME}

OPTIONS_DEFINE=	DOCS

USES=		python shebangfix
SHEBANG_FILES=	pathological.py
NO_BUILD=	yes
NO_ARCH=	yes

DOC_FILES=	favicon.ico index.html

DESKTOP_ENTRIES="Pathological" \
		"Logic game" \
		"${DATADIR}/pathological.ico" \
		"pathological" \
		"Game;LogicGame;" \
		false

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	(cd ${WRKSRC}; tar -cf - circuits graphics music sounds pathological.ico pathological.py pathological.xpm) | \
		(cd ${STAGEDIR}${DATADIR}; tar --unlink -xf -)
	@${PRINTF} "#!/bin/sh\ncd ${DATADIR} && \
		exec ${PYTHON_CMD} ${DATADIR}/pathological.py\n" > ${WRKDIR}/pathological.sh
	${INSTALL_SCRIPT} ${WRKDIR}/pathological.sh \
		${STAGEDIR}${PREFIX}/bin/pathological
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6.gz ${STAGEDIR}${MANPREFIX}/man/man6
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${DOC_FILES:S|^|${WRKSRC}/html/|g} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>