# Created by: steve farrell
# $FreeBSD$

PORTNAME=	xqf
PORTVERSION=	1.0.5
PORTREVISION=	11
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${DISTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Server browser for many popular 3D action games

BROKEN_FreeBSD_13=	duplicate symbol: current_server_filter
BROKEN_FreeBSD_14=	duplicate symbol: current_server_filter

RUN_DEPENDS=	qstat:games/qstat

USES=		gettext gmake gnome pkgconfig xorg
USE_GNOME=	intlhack
USE_XORG=	x11
GNU_CONFIGURE=	yes

CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib -lX11

PORTDATA=	*
PORTDOCS=	*

OPTIONS_DEFINE=	GTK2 BZIP2 DOCS
OPTIONS_DEFAULT=GTK2 BZIP2

GTK2_USE=		GNOME=gtk20
GTK2_USE_OFF=		GNOME=gdkpixbuf
GTK2_CONFIGURE_ENABLE=	gtk2

BZIP2_CONFIGURE_ENABLE=	bzip2

post-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/xqfdocs.html ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
