aboutsummaryrefslogtreecommitdiffstats
path: root/games/maxr/Makefile
blob: e1215a1981c40743d6648ee264da094a44486e7d (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
# New ports collection makefile for:    maxr
# Date created:     23 Dec 2008
# Whom:         Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   maxr
PORTVERSION=    0.2.8
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   http://www.maxr.org/downloads/ \
        http://mirror.amdmi3.ru/distfiles/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Mechanized Assault and Exploration Reloaded

GNU_CONFIGURE=  yes
USE_SDL=    sdl mixer net

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
MAKE_JOBS_SAFE= yes

DESKTOP_ENTRIES="M.A.X.R." \
        "Mechanized Assault and Exploration Reloaded" \
        "${DATADIR}/maxr.png" \
        "maxr" \
        "Game;StrategyGame;" \
        false

post-patch:
    @${REINPLACE_CMD} -e '/^LIBS=/ s|-lSDL_|`${SDL_CONFIG} --libs` &|' \
        -e '/^LIBS=/ s|-lSDL |`${SDL_CONFIG} --libs` |' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|cp -a|cp -RpP|' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>