# New ports collection makefile for:	pyxmame
# Date created:		2006-08-01
# Whom:			Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD: ports/emulators/pyxmame/Makefile,v 1.3 2006/09/20 21:01:19 acm Exp $
#

PORTNAME=	pyxmame
PORTVERSION=	0.4.0
PORTREVISION=	1
CATEGORIES=	emulators python
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	acm@FreeBSD.org
COMMENT=	Simple frontend for the xmame

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pygtk.pth:${PORTSDIR}/x11-toolkits/py-gtk2 \
		xmame:${PORTSDIR}/emulators/xmame

USE_PYTHON=	yes
USE_PYDISTUTILS=	yes
NO_BUILD=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/share/games|${PREFIX}/share|g ; \
		s|/usr/share/pixmaps|${PREFIX}/share/pixmaps|g' \
			${WRKSRC}/config/pyxmamerc

.include <bsd.port.mk>
