aboutsummaryrefslogtreecommitdiffstats
path: root/games/dodgindiamond2/Makefile
blob: 3b7a25513a7d39d361632e1179baf1866abcc561 (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
# Created by: Jean-Yves Lefort <jylefort@brutele.be>
# $FreeBSD$

PORTNAME=       dodgindiamond2
PORTVERSION=        0.2.2
PORTREVISION=   8
CATEGORIES=     games
MASTER_SITES=       http://www.usebox.net/jjm/dd2/releases/
DISTNAME=       dd2-${PORTVERSION}

MAINTAINER=     ports@FreeBSD.org
COMMENT=        Old school shoot'em up game

USE_SDL=        sdl image mixer
GNU_CONFIGURE=      yes
CONFIGURE_ARGS=     --localstatedir=/var/games

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|COPYING||g' ${WRKSRC}/Makefile.in
.if empty(PORT_OPTIONS:MDOCS)
    @${REINPLACE_CMD} '/install-data-am:/s/install-docsDATA//' \
        ${WRKSRC}/Makefile.in
.endif

post-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/etc
    ${INSTALL_DATA} ${WRKSRC}/src/data/dd2.cfg ${STAGEDIR}${PREFIX}/etc/dd2.cfg.sample

.include <bsd.port.mk>