aboutsummaryrefslogtreecommitdiffstats
path: root/games/bomberclone/Makefile
blob: 7e25a2cc52bdfa9da606714883885b1158492488 (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: Edwin Groothuis
# $FreeBSD$

PORTNAME=   bomberclone
PORTVERSION=    0.11.9
PORTREVISION=   3
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/

MAINTAINER= edwin@mavetju.org
COMMENT=    Reimplementation of Atomic Bomber Man

LICENSE=    GPLv2

USES=       gmake
USE_SDL=    image mixer sdl
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --target="" --disable-werror
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib -lm

PORTDOCS=   AUTHORS ChangeLog README TODO

OPTIONS_DEFINE= DOCS

DESKTOP_ENTRIES="BomberMan clone" "" "${PORTNAME}" \
        "${PORTNAME}" "Game;ArcadeGame;" ""

post-extract:
    @${FIND} ${WRKSRC} -type d -name CVS | ${XARGS} ${RM} -rf ;

post-patch:
    @${REINPLACE_CMD} -e 's|share/games/${PACKAGE}|share/${PACKAGE}|' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} \
    -e 's|install-data-am: install-bomberclonedocDATA|install-data-am: |' \
        ${WRKSRC}/Makefile.in

post-install:
    ${LN} -sf ${DATADIR}/pixmaps/${PORTNAME}.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/

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

.include <bsd.port.mk>