# ex:ts=8
# New ports collection makefile for:   mahjong
# Date created:                Jan 31, 2001
# Whom:                        Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	mahjong
PORTVERSION=	1.0.2
CATEGORIES=	games net
MASTER_SITES=	http://www.dcs.ed.ac.uk/home/jcb/stevens-bradfield/MahJong/Downloads/
DISTNAME=	mj-${PORTVERSION}-src

MAINTAINER=	ijliao@FreeBSD.org

USE_GTK=	yes

USE_GMAKE=	yes

INSTALL_TARGET=	install install.man

MAN1=		xmj.1 mj-player.1 mj-server.1

post-patch:
	@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/Makefile
	@${PERL} -pi -e "s|%%GTK_CONFIG%%|${GTK_CONFIG}|g" ${WRKSRC}/Makefile

.include <bsd.port.mk>
