aboutsummaryrefslogtreecommitdiffstats
path: root/games/xbill/Makefile
blob: 5c6feb51f22f816d0533264a77c85a929f84ab0d (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
48
49
50
51
52
53
54
55
56
57
# Created by: asami
# $FreeBSD$

PORTNAME=   xbill
PORTVERSION=    2.1
PORTREVISION=   7
CATEGORIES= games
MASTER_SITES=   http://www.xbill.org/download/ \
        http://mirror.amdmi3.ru/distfiles/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Save your computers from the evil clutches of Bill

GNU_CONFIGURE=  yes
WANT_GNOME= yes
CONFIGURE_ARGS= --localstatedir=${SCORES_DIR}
MAKE_JOBS_SAFE= yes

MAN6=       xbill.6

SCORES_DIR?=    ${DATADIR}/scores

DESKTOP_ENTRIES="xBill" \
        "Save your computers from the evil clutches of Bill" \
        "${DATADIR}/pixmaps/icon.xpm" \
        "xbill" \
        "Game;ArcadeGame;" \
        false

OPTIONS_SINGLE= WIDGETSET
OPTIONS_SINGLE_WIDGETSET=   ATHENA GTK MOTIF
OPTIONS_DEFAULT=    GTK

ATHENA_DESC=    Athena widget set
GTK_DESC=   GTK widget set
MOTIF_DESC= Motif widget set

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MATHENA}
CONFIGURE_ARGS+=    --disable-gtk --disable-motif
USE_XORG=   xaw xmu xt x11 sm ice
.elif ${PORT_OPTIONS:MMOTIF}
CONFIGURE_ARGS+=    --disable-athena --disable-gtk
USE_XORG=   xt x11 sm ice xpm
USES=       motif
.else # ${PORT_OPTIONS:MGTK}
CONFIGURE_ARGS+=    --disable-athena --disable-motif
USE_GNOME=  gtk12
USE_XORG=   sm ice
.endif

post-patch:
    @${REINPLACE_CMD} -e '/WIDGET_LIBS=/ s|-lXm"$$|-lXm -lXpm"|' \
        ${WRKSRC}/configure

.include <bsd.port.mk>