aboutsummaryrefslogtreecommitdiffstats
path: root/games/trimines/Makefile
blob: dd3f22c541e708afee4d27edd0598cd2bb4198c5 (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: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$

PORTNAME=   trimines
PORTVERSION=    1.3.0
PORTREVISION=   5
CATEGORIES= games
MASTER_SITES=   http://www.freewebs.com/trimines/ \
        http://mirror.amdmi3.ru/distfiles/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Mine sweeper game that uses triangles instead of squares

USE_SDL=    sdl

PLIST_FILES=    bin/${PORTNAME}
PORTDATA=   *
PORTDOCS=   *

DESKTOP_ENTRIES="Trimines" \
        "Trimines" \
        "" \
        "trimines" \
        "Game;LogicGame;" \
        ""

post-patch:
    @${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/src/gfx.c

do-build:
    cd ${WRKSRC} && ${CC} ${CFLAGS} src/main.c -o ./${PORTNAME} \
        `${SDL_CONFIG} --cflags --libs`

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
    cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>