aboutsummaryrefslogtreecommitdiffstats
path: root/games/dodgindiamond2/Makefile
blob: 089f9779f4a89952c0dcf973e73381cb17f679fe (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
# New ports collection makefile for:    Dodgin' Diamond 2
# Date created:         15 Jul 2004
# Whom:             Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

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

MAINTAINER=     jylefort@brutele.be
COMMENT=        An old school shoot'em up game

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

post-patch:
    @${REINPLACE_CMD} -e 's|COPYING||g' ${WRKSRC}/Makefile.in
.if defined(NOPORTDOCS)
    @${REINPLACE_CMD} -e 's|^docs_DATA = .*|docs_DATA =|' ${WRKSRC}/Makefile.in
.endif

post-install:
    ${MKDIR} ${PREFIX}/etc
    ${INSTALL_DATA} ${WRKSRC}/src/data/dd2.cfg ${PREFIX}/etc/dd2.cfg.sample
.if !exists(${PREFIX}/etc/dd2.cfg)
    ${INSTALL_DATA} ${WRKSRC}/src/data/dd2.cfg ${PREFIX}/etc
.endif
    ${CHGRP} games ${PREFIX}/bin/dd2
    ${CHMOD} g+s ${PREFIX}/bin/dd2
    @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>