# New ports collection makefile for:	afternoonstalker
# Date created:			Feb 15, 2003
# Whom:				Mark Pulford <mark@kyne.com.au>
#
# $FreeBSD: ports/games/afternoonstalker/Makefile,v 1.1 2003/02/15 14:03:35 markp Exp $
#

PORTNAME=	afternoonstalker
PORTVERSION=	1.0.3
CATEGORIES=	games
MASTER_SITES=	http://www3.sympatico.ca/sarrazip/dev/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A clone of the 1981 Night Stalker video game

LIB_DEPENDS=	gengameng.4:${PORTSDIR}/devel/gengameng \
		SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \
		gnugetopt.1:${PORTSDIR}/devel/libgnugetopt

USE_REINPLACE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	CXX="${CXX} -I${LOCALBASE}/include" \
		LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -lgnugetopt"
CONFIGURE_TARGET=	# none
MAN6=		afternoonstalker.6

post-patch:
	${REINPLACE_CMD} "s@SDL/@SDL11/@g" ${WRKSRC}/configure \
		${WRKSRC}/src/SoundMixer.h
	${REINPLACE_CMD} "s@sounds/..PACKAGE.@afternoonstalker/sounds@g" \
		${WRKSRC}/src/Makefile.in

.include <bsd.port.mk>
