# Created by: Jesse Smith <jessefrgsmith@yahoo.ca>
# $FreeBSD: tags/RELEASE_10_1_0/games/openssn/Makefile 367888 2014-09-10 20:50:31Z gerald $

PORTNAME=	openssn
PORTVERSION=	1.4
PORTREVISION=	4
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	jessefrgsmith@yahoo.ca
COMMENT=	Modern submarine simulator

LICENSE=	GPLv2

USE_SDL=	sdl gfx image mixer
USE_XORG=	x11 xau xdmcp xext xmu xpm xxf86vm
WRKSRC=		${WRKDIR}/${PORTNAME}

post-patch:
	@${REINPLACE_CMD} -E \
		-e '/cp|mkdir/s,\$$\(PREFIX\)|\$$\(DATADIR\),$$(DESTDIR)&,' \
		-e 's,share/man/man6,man/man6,' ${WRKSRC}/Makefile

.include <bsd.port.mk>
