# New ports collection makefile for:	sol
# Date created:				12 April 1998
# Whom:					Andrey Zakhvatov
#
# $FreeBSD: ports/games/sol/Makefile,v 1.12 2004/02/04 05:20:40 marcus Exp $
#

PORTNAME=	sol
PORTVERSION=	1.0.7
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	http://shh.thathost.com/pub-unix/files/

MAINTAINER=	edwin@mavetju.org
COMMENT=	Solitaire card game for X Window System

LIB_DEPENDS=	shhopt.1:${PORTSDIR}/devel/libshhopt \
		shhmsg.1:${PORTSDIR}/devel/libshhmsg \
		xalloc.1:${PORTSDIR}/devel/libxalloc \
		shhcards.1:${PORTSDIR}/games/libshhcards

CONFLICTS=	gnomegames2-2.4.*

USE_GMAKE=	yes
USE_X_PREFIX=	yes
USE_XPM=	yes

MAN6=		sol.6

pre-build:
	cd ${WRKSRC} && ${GMAKE} depend

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/sol ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/sol.6 ${PREFIX}/man/man6
	@${MKDIR} ${PREFIX}/share/sol
	${INSTALL_DATA} ${WRKSRC}/sol.score ${PREFIX}/share/sol
	@${CHOWN} root:games ${PREFIX}/bin/sol
	@${CHOWN} root:games ${PREFIX}/share/sol/sol.score
	@${CHMOD} 2755 ${PREFIX}/bin/sol
	@${CHMOD} 770 ${PREFIX}/share/sol
	@${CHMOD} 660 ${PREFIX}/share/sol/sol.score
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/sol
	${INSTALL_DATA} ${WRKSRC}/CREDITS ${PREFIX}/share/doc/sol
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sol
.endif

.include <bsd.port.mk>
