# New ports collection makefile for:	xcogitate
# Date created:				15 March 1998
# Whom:					Andrey Zakhvatov
#
# $FreeBSD: ports/games/xcogitate/Makefile,v 1.15 2003/02/20 17:32:19 knu Exp $
#

PORTNAME=	xcogitate
PORTVERSION=	1.02
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	mph

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A logic game with board and stones

USE_X_PREFIX=	yes
USE_XPM=	yes
WRKSRC=		${WRKDIR}/XCOGITATE_SOURCE

do-build:
	cd ${WRKSRC} && ${CC} ${CFLAGS} -I${X11BASE}/include -o xcogitate xcogitate.c -L${X11BASE}/lib -lX11 -lXpm

do-install:
	@ ${INSTALL_PROGRAM} ${WRKSRC}/xcogitate ${PREFIX}/bin

.include <bsd.port.mk>
