# New ports collection makefile for:    GShisen
# Date created:         12 Jun 2001
# Whom:                 Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD: ports/games/gshisen/Makefile,v 1.25 2006/09/01 17:06:18 dinoex Exp $
#

PORTNAME=	gshisen
PORTVERSION=	1.2.1
CATEGORIES=	games
MASTER_SITES=	http://www.gnustep.it/enrico/gshisen/ \
		http://florida.ethz.ch/ports/distfiles/

MAINTAINER=	dinoex@FreeBSD.org
COMMENT=	Shisen-sho puzzle game for GNUstep

USE_GMAKE=	yes
USE_GNUSTEP=	yes
USE_GNUSTEP_PREFIX=	yes
USE_GNUSTEP_BACK=	yes
USE_GNUSTEP_BUILD=	yes
USE_GNUSTEP_INSTALL=	yes
MAKEFILE=

post-patch:
	${REINPLACE_CMD} -e 's|)/Makefiles|)/Library/Makefiles|' \
		${WRKSRC}/GNUmakefile

.include <bsd.port.pre.mk>

.if ${ARCH} == "alpha" && ${OSVERSION} < 500000
# Fatal error 'longjmp()ing between thread contexts is undefined by POSIX 1003.1'
#  at line ? in file src/lib/libc_r/uthread/uthread_jmp.c (errno = ?)
# Abort trap (core dumped)
BROKEN=		longjmp()ing between thread contexts in src/lib/libc_r/uthread/uthread_jmp.c
.endif

.include <bsd.port.post.mk>
