aboutsummaryrefslogtreecommitdiff
path: root/games/diameter/Makefile
blob: 23c89ea7c2f731dc3e28377e094d041410d52b31 (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
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$

PORTNAME=	diameter
PORTVERSION=	0.4.0.3
PORTREVISION=	11
CATEGORIES=	games
MASTER_SITES=	SF/game${PORTNAME}/game${PORTNAME}/${PORTNAME}-0.4.0

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

LIB_DEPENDS=	libpng.so:${PORTSDIR}/graphics/png \
		libguichan.so:${PORTSDIR}/devel/guichan

USES=		tar:bzip2 gmake pkgconfig python
GNU_CONFIGURE=	yes
USE_GL=		gl
USE_SDL=	sdl mixer image

WRKSRC=		${WRKDIR}/gamediameter

CPPFLAGS+=	`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include
LDFLAGS+=	`${SDL_CONFIG} --libs` -L${LOCALBASE}/lib

DATADIR=	${PREFIX}/share/gamediameter

PLIST_FILES=	bin/${PORTNAME}
PORTDATA=	*

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

.include <bsd.port.mk>