# New ports collection makefile for:	marbles
# Date created:		12 June 2002
# Whom:			verm@drunkmonk.net
#
# $FreeBSD: ports/games/lmarbles/Makefile,v 1.17 2009/08/22 00:22:17 amdmi3 Exp $
#

PORTNAME=	lmarbles
PORTVERSION=	1.0.7
PORTREVISION=	3
CATEGORIES=	games
MASTER_SITES=	SF/lgames/marbles/1.0

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A challenging puzzle game similar to Atomix

USE_SDL=	sdl mixer
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--localstatedir=/var/games

MAN6=		lmarbles.6

PORTDOCS=	*

post-patch:
	@${REINPLACE_CMD} -e 's/SDL\///' ${WRKSRC}/src/*.[ch]

post-install:
	@${CHOWN} root:games ${PREFIX}/bin/lmarbles
	@${CHMOD} g+s ${PREFIX}/bin/lmarbles
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/src/manual/* ${DOCSDIR}
.endif

.include <bsd.port.mk>
