aboutsummaryrefslogtreecommitdiffstats
path: root/games/criticalmass/Makefile
blob: 91a277f517262bbe8beeefcdc58fdb559c9805b3 (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: criticalmass
# Date created:     30 Aug 2002
# Whom:         nbm
#
# $FreeBSD$
#

PORTNAME=   criticalmass
PORTVERSION=    0.99
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   CriticalMass-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    An SDL/OpenGL space shoot\'em up game

CONFLICTS=  shaaft-*

USE_BZIP2=  yes
USE_SDL=    image mixer sdl
USE_GL=     yes
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${X11BASE}/include" \
        LDFLAGS="-L${X11BASE}/lib"
CONFIGURE_ARGS= --disable-optimize

MAN6=       critter.6

post-patch:
    @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG:T}|g ; \
         s|^CXXFLAGS|#CXXFLAGS|g ; \
         s|-lSDL | |g' ${WRKSRC}/configure
    @${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
        's|SDL/SDL|SDL|g'

.include <bsd.port.mk>