summaryrefslogtreecommitdiff
path: root/graphics/deep_zoom/Makefile
blob: 69203d8d596b4ffe7a70066382729d4b8fdcd412 (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
# ex:ts=8
# Ports collection makefile for:	deep_zoom
# Date created:			Aug 12, 2002
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	deep_zoom
PORTVERSION=	0.3
CATEGORIES=	graphics
MASTER_SITES=	http://members.rogers.com/rowley-c/deep_zoom/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Generate very highly zoomed fractals

BUILD_DEPENDS=	pkg-config:${PORTSDIR}/devel/pkgconfig
LIB_DEPENDS=	Imlib2:${PORTSDIR}/graphics/imlib2 \
		gmp.6:${PORTSDIR}/math/libgmp4

IMLIB2_CONFIG=	${X11BASE}/bin/imlib2-config
USE_REINPLACE=	yes
USE_GNOME=	glib12
USE_GMAKE=	yes
CFLAGS+=	-I${LOCALBASE}/include `${IMLIB2_CONFIG} --cflags`
MAKE_ENV=	CC=${CXX} LDFLAGS="`${IMLIB2_CONFIG} --libs`"

post-patch:
	@${REINPLACE_CMD} -e "s|^CC|#CC|g" -e "s|^CFLAGS=|CFLAGS+=|g" \
		-e "s|^LDFLAGS=|LDFLAGS+=|g" -e "s|imlib2||g" \
		-e "s|^CONFIG_CFLAGS|#CONFIG_CFLAGS|g" ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/deep_zoom ${PREFIX}/bin

.include <bsd.port.mk>