summaryrefslogtreecommitdiff
path: root/games/diameter/Makefile
blob: a5e703901b23edee0940d18bf4eb343a244d8261 (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
# New ports collection makefile for:	diameter
# Date created:		15 Jun 2006
# Whom:			Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#

PORTNAME=	diameter
PORTVERSION=	0.4.0.2
PORTREVISION=	3
CATEGORIES=	games
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	gamediameter

MAINTAINER=	amdmi3@amdmi3.ru
COMMENT=	Arcade-style game with elements of economy and adventure

BUILD_DEPENDS=	guichan>=0.7.1:${PORTSDIR}/devel/guichan
RUN_DEPENDS:=	${BUILD_DEPENDS}

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_GL=		yes
USE_SDL=	sdl mixer image
USE_PYTHON=	yes

WRKSRC=		${WRKDIR}/gamediameter

CONFIGURE_ENV=	CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \
		LDFLAGS="`${SDL_CONFIG} --libs` -L${X11BASE}/lib"

DATADIR=	${PREFIX}/share/gamediameter

post-patch:
	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|; /^CFLAGS=.*march/ d; \
		/PKG_CONFIG/ s|libpng|libpng12|' ${WRKSRC}/configure

.include <bsd.port.mk>