summaryrefslogtreecommitdiffstats
path: root/games/gnubg/Makefile
blob: ee138922dc6bf6633393e179ccc429ac93f784cc (plain)
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
# New ports collection makefile for:	GNU Backgammon
# Date created:		8 Dec 2002
# Whom:			TAKAHASHI Kaoru <kaoru@kaisei.org>
#
# $FreeBSD$
#

PORTNAME=	gnubg
PORTVERSION=	0.13.0
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_GNU_ALPHA} \
		http://triaez.kaisei.org/~kaoru/misc/%SUBDIR%/
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTFILES=	${DISTNAME}.tar.gz	\
		gnubg.weights-${GNUBG_WEIGHTS_VERSION}.gz
DIST_SUBDIR=	${PORTNAME}
EXTRACT_ONLY=	${DISTNAME}.tar.gz

MAINTAINER=	kaoru@kaisei.org
COMMENT=	GNU Backgammon

MAN6=	gnubg.6

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_GNOME=	gtk20
WANT_ESOUND=	yes

.if defined(HAVE_ESOUND)
CONFIGURE_ARGS += --with-esound
.else
CONFIGURE_ARGS += --without-esound
.endif

.if defined(WITH_NAS)
CONFIGURE_ARGS += --enable-nas
.endif

.if defined(WITH_GUILE)
CONFIGURE_ARGS += --with-guile
.endif

INFO=	gnubg

GNUBG_WEIGHTS_VERSION=0.13b

post-extract:
	${GUNZIP_CMD} --stdout ${DISTDIR}/${DIST_SUBDIR}/gnubg.weights-${GNUBG_WEIGHTS_VERSION}.gz > ${WRKSRC}/gnubg.weights

post-build:
	@(cd ${WRKSRC} && ./makebearoff -t 6x6 -f gnubg_ts0.bd)

.include <bsd.port.mk>
OpenPOWER on IntegriCloud