aboutsummaryrefslogtreecommitdiffstats
path: root/games/fwp/Makefile
blob: 1f5e039e25f3f6a9fb7c4f33e5ec3cdd4bd5bf76 (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
47
48
49
# New ports collection makefile for:    fightwinprevail
# Date created:     06 Mar 2006
# Whom:         Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#

PORTNAME=   fwp
PORTVERSION=    0.0.8
PORTREVISION=   2
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= fightwinprevail
DISTNAME=   ${PORTNAME}-${PORTVERSION}-linux

MAINTAINER= amdmi3@mail.ru
COMMENT=    Multiplayer first person shooter

BUILD_DEPENDS=  ${X11BASE}/lib/libode.a:${PORTSDIR}/devel/ode
LIB_DEPENDS=    OgreMain.12:${PORTSDIR}/graphics/ogre3d

GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_GL=     yes
USE_SDL=    sdl net mixer
USE_GCC=    3.4+

CONFIGURE_ARGS= --program-suffix=
CONFIGURE_ENV=  LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
        CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
        SDL_CONFIG="${SDL_CONFIG}"

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=     does not compile on 4.x
.endif

post-patch:
    @${REINPLACE_CMD} -e '/LDFLAGS=/ s|$$LIBS|$$LDFLAGS|' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|-O$$enable_optimize||' ${WRKSRC}/configure

post-install:
    @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}

.include <bsd.port.post.mk>