# New ports collection makefile for:   lgeneral
# Date created:                27 Aug 2002
# Whom:                        Filippo Natali <filippo@widestore.net>
#
# $FreeBSD: ports/games/lgeneral/Makefile,v 1.4 2003/08/27 13:41:38 mi Exp $
#

PORTNAME=	lgeneral
PORTVERSION=	1.1.1
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	lgeneral

MAINTAINER=	filippo@widestore.net
COMMENT=	A turn-based strategy engine inspired by Panzer General

LIB_DEPENDS=	SDL-1.1.5:${PORTSDIR}/devel/sdl12

SDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config
CONFIGURE_ENV=	SDL_CONFIG="${SDL_CONFIG}"

.ifndef (WITHOUT_SOUND)
LIB_DEPENDS+=	SDL_mixer:${PORTSDIR}/audio/sdl_mixer
.else
CONFIGURE_ARGS+=--disable-sound
.endif

GNU_CONFIGURE=	yes

.include <bsd.port.mk>
