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

MAINTAINER=	TsurutaniNaoki@gmail.com
COMMENT=	Clone of the classic game Galaga for X11
WWW=		http://rumsey.org/xgal.html

LICENSE=	GPLv2

BROKEN_aarch64=		fails to configure: machine arm64-unknown not recognized
BROKEN_riscv64=		fails to configure: /bin/sh ./config.sub riscv-unknown-freebsd13.0 failed

USES=		gmake xorg
USE_XORG=	xpm xmu
HAS_CONFIGURE=	yes

# xgalaga has a very strange usage of these variables...
CONFIGURE_ARGS=	--prefix=${LOCALBASE}/lib/X11/xgalaga \
		--mandir=${LOCALBASE}/share/man \
		--exec_prefix=${LOCALBASE}/bin

OPTIONS_DEFINE=	SOUND
OPTIONS_DEFAULT=	SOUND
OPTIONS_SUB=	yes

SOUND_CONFIGURE_OFF=	--without-sound

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

.include <bsd.port.mk>
