aboutsummaryrefslogtreecommitdiff
path: root/games/csmash/Makefile
blob: 2f43464f1bbdf8ff7b7bb4854b2c9687da0415eb (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=	csmash
PORTVERSION=	0.6.6
PORTREVISION=	21
CATEGORIES=	games
MASTER_SITES=	SF/cannonsmash/CannonSmash/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	3D tabletennis game

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		compiler:c++11-lang gettext gl gmake gnome pkgconfig sdl
USE_SDL=	image mixer sdl
USE_GL=		yes
USE_GNOME=	gtk20
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/SDL
LDFLAGS+=	-L${LOCALBASE}/lib

post-patch:
	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
		's|/games/|/|g'
	@${REINPLACE_CMD} -e 's|BallView::||' ${WRKSRC}/BallView.h
	@${REINPLACE_CMD} -e 's|== 3|>= 3|' ${WRKSRC}/matrix

.include <bsd.port.mk>