summaryrefslogtreecommitdiff
path: root/games/wizznic/Makefile
blob: 1bee32789b2c98e1191c8d2d4b54cb6db7b82766 (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
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$

PORTNAME=	wizznic
PORTVERSION=	0.9.9
DISTVERSIONSUFFIX=-src
PORTREVISION=	4
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/Source%20Releases/

MAINTAINER=	nemysis@FreeBSD.org
COMMENT=	Implementation of the arcade classic Puzznic

LICENSE=	GPLv3

LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-src

USES=		gmake tar:bzip2
USE_SDL=	image mixer sdl
MAKE_ENV=	DATADIR=${DATADIR}/ BINDIR=${PREFIX}/bin
ALL_TARGET=	sdl
USE_GCC=	yes

PORTDOCS=	changelog.txt credits.txt music-score-credits.txt readme.txt

DESKTOP_ENTRIES="Wizznic!" "${COMMENT}" ${PORTNAME} \
		"${PORTNAME}" "Game;LogicGame;" false

OPTIONS_DEFINE=	DOCS

post-install:
	@${CHMOD} -R 755 ${STAGEDIR}${DATADIR}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
	${LN} -sf ${DATADIR}/packs/001_wizznic/icon.png \
		${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png

.include <bsd.port.mk>