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

PORTNAME=   entombed
PORTVERSION=    2007.07.04
PORTREVISION=   2
CATEGORIES= games
MASTER_SITES=   ftp://ftp.tuxpaint.org/unix/x/entombed/ \
        SF/nemysisfreebsdp/${CATEGORIES}/${PORTNAME}/:icons
DISTFILES=  ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
        ${PORTNAME}.png:icons
EXTRACT_ONLY=   ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    One- or two-player maze game based on the Entombed

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/docs/COPYING.txt

USES=       gmake
USE_SDL=    image mixer sdl

PORTDOCS=   AUTHORS.txt CHANGES.txt README.txt
OPTIONS_DEFINE= DOCS

DESKTOP_ENTRIES="Entombed" "" "${PORTNAME}" \
        "${PORTNAME}" "Game;ArcadeGame;" ""

post-patch:
    @${REINPLACE_CMD} -e 's|CC=gcc|CC=${CC}|' \
        ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/

.for d in embedded images images_halfsize music sounds
    @(cd ${WRKSRC}/data && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor

    ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/

    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>