# New ports collection makefile for:	tuxpaint
# Date created:				14 Jul 2005
# Whom:					Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD: ports/games/tuxpaint/Makefile,v 1.10 2007/07/24 13:46:50 alepulver Exp $
#

PORTNAME=	tuxpaint
PORTVERSION=	0.9.17
CATEGORIES=	games
MASTER_SITES=	SF

MAINTAINER=	alepulver@FreeBSD.org
COMMENT=	Drawing program designed for young children

LIB_DEPENDS=	paper.2:${PORTSDIR}/print/libpaper \
		rsvg-2:${PORTSDIR}/graphics/librsvg2

USE_GMAKE=	yes
USE_GETTEXT=	yes
USE_SDL=	image mixer sdl ttf

MAN1=		tuxpaint.1 tuxpaint-import.1
MANCOMPRESSED=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|rsvg[-[:alnum:]]*\.h|librsvg/&|' \
		${WRKSRC}/src/tuxpaint.c
.if defined(NOPORTDOCS)
	@${REINPLACE_CMD} -e 's|install-doc\([^:]\)|\1|' ${WRKSRC}/${MAKEFILE}
.endif

.include <bsd.port.mk>
