aboutsummaryrefslogtreecommitdiffstats
path: root/games/criticalmass/Makefile
blob: 5a936f387a1fe1172541a91bc7ddec13633581b6 (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
# New ports collection makefile for: criticalmass
# Date created:     30 Aug 2002
# Whom:         nbm
#
# $FreeBSD$
#

PORTNAME=   criticalmass
PORTVERSION=    1.0.0
PORTREVISION=   5
PORTEPOCH=  1
CATEGORIES= games
MASTER_SITES=   SF
DISTNAME=   CriticalMass-${PORTVERSION}

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

CONFLICTS=  shaaft-[0-9]*

USE_BZIP2=  yes
USE_SDL=    image mixer sdl
USE_GL=     gl
USE_XORG=   x11
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-optimize

MAN6=       critter.6
PLIST_FILES=    bin/Packer \
        bin/critter \
        share/Critical_Mass/lg-criti.xm \
        share/Critical_Mass/resource.dat
PLIST_DIRS= share/Critical_Mass

.include <bsd.port.pre.mk>

post-patch:
    @${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
        's|SDL/SDL|SDL|g'
    @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG:T}|g ; \
         s|^CXXFLAGS|#CXXFLAGS|g ; \
         s|/usr/X11R6|${LOCALBASE}|g ; \
         s|-lSDL | |g ; \
         s|-lpng12|-lpng|g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|and def|\&\& def|g' ${WRKSRC}/utils/OSName.hpp

.include <bsd.port.post.mk>