aboutsummaryrefslogtreecommitdiffstats
path: root/games/xqf/Makefile
blob: 31fb8ad1a10cec4b2b1b31ec6435da6daae5b6b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by: steve farrell
# $FreeBSD$

PORTNAME=   xqf
PORTVERSION=    1.0.5
PORTREVISION=   8
CATEGORIES= games
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

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

RUN_DEPENDS=    qstat:${PORTSDIR}/games/qstat

USE_GNOME=  intlhack
USES=       gettext gmake pkgconfig
USE_XORG=   x11
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  LIBS="-lX11" # uses XGetWindowAttributes but doesn't link with X11

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

PORTDATA=   *
PORTDOCS=   *

OPTIONS_DEFINE= GTK2 GEOIP BZIP2 DOCS
OPTIONS_DEFAULT=GTK2 GEOIP BZIP2

GTK2_USE=       GNOME=gtk20
GTK2_CONFIGURE_ENABLE=  gtk2

GEOIP_CONFIGURE_ENABLE= geoip
GEOIP_LIB_DEPENDS=  libGeoIP.so:${PORTSDIR}/net/GeoIP
BZIP2_CONFIGURE_ENABLE= bzip2

.include <bsd.port.options.mk>

.if ! ${PORT_OPTIONS:MGTK2}
USE_GNOME+= gdkpixbuf
.endif

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

.include <bsd.port.mk>