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

PORTNAME=   wizznic
PORTVERSION=    0.9.9
DISTVERSIONSUFFIX=-src
PORTREVISION=   2
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

USE_BZIP2=  yes
USES=       gmake
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>