Tweak games/blinken version 4.14.3
[dports.git] / games / rottdc / Makefile
1 # Created by: Igor Pokrovsky <tiamat@comset.net>
2 # $FreeBSD$
3
4 PORTNAME=       rottdc
5 DISTVERSION=    1.0-2
6 PORTREVISION=   8
7 CATEGORIES=     games
8 MASTER_SITES=   SF/sdl-dc/${PORTNAME}/1.0-2
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        Apogee's Rise Of The Triad source port
12
13 USES=           gmake tar:bzip2
14 USE_SDL=        sdl mixer
15 PATCH_WRKSRC=   ${WRKSRC}/rott
16 # Crashes when compiling with -O2 or greater, so downgrade to -O1.
17 CFLAGS:=        ${CFLAGS:C/-O[2-9]/-O1/}
18
19 OPTIONS_DEFINE= DOCS
20
21 post-extract:
22         @${CP} ${FILESDIR}/${MAKEFILE} ${WRKSRC}
23
24 do-install:
25 .for f in rott rott-sw
26         ${INSTALL_PROGRAM} ${WRKSRC}/${f}/rott ${STAGEDIR}${PREFIX}/bin/${f}
27 .endfor
28         @${MKDIR} ${STAGEDIR}${DOCSDIR}
29         ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
30         (cd ${WRKSRC}/rott && ${INSTALL_DATA} cheats.txt cmdline.txt \
31                 ${STAGEDIR}${DOCSDIR})
32
33 .include <bsd.port.mk>