summaryrefslogtreecommitdiffstats
path: root/graphics/xaos/Makefile
blob: 81f299c9fe09eb8b0e7b932966f43f870192305c (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
55
56
57
58
59
60
61
62
63
64
# Created by: Joseph Koshy <koshy@india.hp.com>
# $FreeBSD$

PORTNAME=	xaos
PORTVERSION=	3.5
PORTREVISION=	4
CATEGORIES=	graphics math
MASTER_SITES=	SF/${PORTNAME}/XaoS/${PORTVERSION}

MAINTAINER=	makc@FreeBSD.org
COMMENT=	Real-time fractal browser

LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png

USE_XORG=	x11 xext
GNU_CONFIGURE=	yes
USE_GMAKE=	yes

OPTIONS_DEFINE=	GTK2 PTHREAD NLS
GTK2_DESC=	GTK+ User Interface (experimental)
PTHREAD_DESC=	Enable SMP support (experimental)

CPPFLAGS+=	-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15
LDFLAGS+=	-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" "${COMMENT}" "" "xaos" "" false

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPTHREAD}
CONFIGURE_ARGS+=	--with-pthread=yes
CONFIGURE_ENV+=		LIBS="${PTHREAD_LIBS}"
CFLAGS+=		${PTHREAD_CFLAGS}
.else
CONFIGURE_ARGS+=	--with-pthread=no
.endif

.if ${PORT_OPTIONS:MGTK2}
USE_GNOME=	gtk20
CONFIGURE_ARGS+=	--with-gtk-driver=yes --with-x11-driver=no
.endif

.if ${PORT_OPTIONS:MNLS}
USES+=		gettext
PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

pre-configure:
	${REINPLACE_CMD} -e 's,/usr\(/share/locale\),${PREFIX}\1,g' \
		${WRKSRC}/configure \
		${WRKSRC}/src/ui/ui.c

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