aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xaos/Makefile
blob: f012c52adb85a81171be489ead3b5a06e5258bc0 (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
58
59
# New ports collection makefile for:    XaoS
# Date created:             24 February 1996
# Whom:                 Joseph Koshy <koshy@india.hp.com>
#
# $FreeBSD$
#

PORTNAME=   xaos
PORTVERSION=    3.4
PORTREVISION=   1
CATEGORIES= graphics math
MASTER_SITES=   SF
DISTNAME=   XaoS-${PORTVERSION}

MAINTAINER= makc@issp.ac.ru
COMMENT=    A real-time fractal browser for X11 and ASCII terminals

LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png

USE_XORG=   x11 xau xdmcp xext
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_AUTOTOOLS=  autoconf:262

OPTIONS=    PTHREAD "Enable SMP support (experimental)" off \
        NLS "Native Language Support" on

CONFIGURE_ENV=  CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
        LDFLAGS="-L${PREFIX}/lib -L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-aa-driver=no --with-dga-driver=no \
        --with-ggi-driver=no --with-svga-driver=no \
        --with-sffe=no

MAN6=       xaos.6
INFO=       xaos

PLIST_SUB+= XAOSDIR="share/XaoS"

DESKTOP_ENTRIES="XaoS" "Fractal zoomer" "" "xaos" "" false

.include <bsd.port.pre.mk>

.if defined(WITH_PTHREAD)
CONFIGURE_ARGS+=    --with-pthread=yes
CONFIGURE_ENV+=     LIBS="${PTHREAD_LIBS}" \
            CFLAGS="${PTHREAD_CFLAGS} ${CFLAGS}"
.else
CONFIGURE_ARGS+=    --with-pthread=no
.endif

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

.include <bsd.port.post.mk>