aboutsummaryrefslogtreecommitdiffstats
path: root/games/sdl_scavenger/Makefile
blob: 5302ef1de7437f31fe9918a45b1d5baa2de46bed (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=   sdl_scavenger
PORTVERSION=    145.2014.01.01
PORTREVISION=   3
PORTEPOCH=  1
CATEGORIES= games
MASTER_SITES=   SF/sdlscavenger/
DISTNAME=   sdlscav-145_2014_01_01

MAINTAINER= nemysis@FreeBSD.org
COMMENT=    Lode Runner like game

LICENSE=    GPLv1

WRKSRC=     ${WRKDIR}/sdlscav-145

USES=       gmake shebangfix tar:tgz
SHEBANG_FILES=  scavsaver
USE_SDL=    sdl image mixer
USE_GCC=    yes
ALL_TARGET=

PORTDOCS=   CREDITS DOC NEW_FEATURES README STRATEGY

OPTIONS_DEFINE= DOCS

DESKTOP_ENTRIES="SDL Scavenger" "" "${PORTNAME}" \
        "${PORTNAME}" "Game;LogicGame;" ""

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local/games/scavenger|${DATADIR}|; \
        s|".scavenger"|".sdlscavenger"|' \
        ${WRKSRC}/names.h
    @${REINPLACE_CMD} -e 's|sdlscav|sdl_scavenger|' ${WRKSRC}/scavsaver

post-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/sdlscav ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    ${INSTALL_DATA} ${WRKSRC}/data/scav.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png

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

.include <bsd.port.mk>