aboutsummaryrefslogtreecommitdiff
path: root/graphics/fyre/Makefile
blob: 080d36722a8bc066ff9a2b2ea9b93aa3cefa6984 (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
# New ports collection makefile for:	fyre
# Date created:				2004 11 July
# Whom:					Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	fyre
PORTVERSION=	1.0.1
CATEGORIES=	graphics
MASTER_SITES=	http://releases.navi.cx/fyre/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Chaos map rendering system with GTK+-2 interface

OPTIONS=	OPT_CFLAGS "Enable additional optimizations (x86 only)" off \
		OPENEXR "Enable OpenEXR suport" on \
		GNET "Enable GNet support" on

LICENSE=	GPLv2 GPLv3
LICENSE_COMB=	dual

USE_BZIP2=	yes
USE_GNOME=	desktopfileutils libglade2
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
INSTALLS_ICONS=	yes
MAKE_JOBS_SAFE=	yes

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386" && defined(WITH_OPT_CFLAGS)
CFLAGS+=	-march=native -O3 -ffast-math -fomit-frame-pointer
.endif

.if defined(WITHOUT_OPENEXR)
CONFIGURE_ARGS+=--disable-openexr
.else
LIB_DEPENDS+=	IlmImf.6:${PORTSDIR}/graphics/OpenEXR
.endif

.if defined(WITHOUT_GNET)
CONFIGURE_ARGS+=--disable-gnet
.else
LIB_DEPENDS+=	gnet-2.0.0:${PORTSDIR}/net/gnet2
.endif

post-patch:
	@${REINPLACE_CMD} -e '/-O3/s|^|#|g' ${WRKSRC}/configure

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
	@-update-desktop-database

.include <bsd.port.post.mk>