# Created by:	asami
#
# $FreeBSD: branches/RELEASE_8_4_0/games/xgalaga/Makefile 305950 2012-10-16 06:21:15Z jgh $

PORTNAME=	xgalaga
PORTVERSION=	2.1.1.0
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}/

MAINTAINER=	turutani@scphys.kyoto-u.ac.jp
COMMENT=	Galaga resurrected on X

USE_GMAKE=	yes
USE_XORG=	xpm xmu
HAS_CONFIGURE=	yes
MAN6=		xgalaga.6x
MANCOMPRESSED=	yes
# xgalaga has a very strange usage of these variables...
CONFIGURE_ARGS=	--prefix=${LOCALBASE}/lib/X11/xgalaga \
		--mandir=${LOCALBASE}/man \
		--exec_prefix=${LOCALBASE}/bin

OPTIONS_DEFINE=	SOUND
OPTIONS_DEFAULT=	SOUND

.include <bsd.port.options.mk>

.if empty(PORT_OPTIONS:MSOUND)
CONFIGURE_ARGS+=	--without-sound
PLIST_SUB=	SOUND="@comment "
.else
PLIST_SUB=	SOUND=""
.endif

post-install:
	@${STRIP_CMD} ${PREFIX}/bin/xgalaga

.include <bsd.port.mk>
