aboutsummaryrefslogtreecommitdiff
path: root/games/atanks/Makefile
blob: 4272a2fcfca039b7b3ed311c28a14a95fd601f55 (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: Jesse Smith <jessefrgsmith@yahoo.ca>
# $FreeBSD$

PORTNAME=	atanks
PORTVERSION=	5.1
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${DISTNAME}

MAINTAINER=	jessefrgsmith@yahoo.ca
COMMENT=	A 2D tank game with large, cartoonish weapons

LIB_DEPENDS=	alleg:${PORTSDIR}/devel/allegro

USE_GMAKE=	yes
MAKE_ARGS+=	PREFIX=${PREFIX}/
PATCH_DEBUG=	1

NO_STAGE=	yes
.include <bsd.port.pre.mk>

post-patch:
		${REINPLACE_CMD} \
		    -e 's}^INSTALL[ 	]*=.*}INSTALL=${INSTALL} ${COPY}};' \
		    -e 's/-m *755/-m555 ${STRIP}/;' \
		    -e 's/-m *644/-m444/;' \
		    ${WRKSRC}/Makefile
.if ${OSVERSION} >= 800501
		${REINPLACE_CMD} \
		    -e 's/int Filter_File( struct dirent/int Filter_File( const struct dirent/' \
		    ${WRKSRC}/src/files.cpp
.endif

.include <bsd.port.post.mk>