aboutsummaryrefslogtreecommitdiffstats
path: root/games/xabacus/Makefile
blob: b3b45127a4b1f51dcd1996d27d845633a4047244 (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
# New ports collection makefile for:    xabacus
# Date created:             3 May 1998
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   xabacus
PORTVERSION=    7.3.5
CATEGORIES= games
MASTER_SITES=   http://www.tux.org/~bagleyd/abacus/ \
        http://ftp.tux.org/pub/tux/bagleyd/xabacus/ \
        ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= apps/math

MAINTAINER= ports@FreeBSD.org
COMMENT=    Abacus for X Window System

USE_BZIP2=  yes
USE_XORG=   xpm
WANT_GNOME= yes
USE_GNOME=  gnometarget
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --without-nas

MAN6=       xabacus.6

.include <bsd.port.pre.mk>

.if defined(WITHOUT_MOTIF)
CONFIGURE_ARGS+=    --without-motif
.else
USE_MOTIF=  yes
.endif

.if ${HAVE_GNOME:Mesound}!=""
USE_GNOME+= esound
CONFIGURE_ARGS+=    --without-rplay --with-esound
.else
LIB_DEPENDS+=   rplay.1:${PORTSDIR}/audio/rplay
CONFIGURE_ARGS+=    --with-rplay --without-esound
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|/games/|/|g' ${WRKSRC}/Makefile.in

.include <bsd.port.post.mk>