aboutsummaryrefslogtreecommitdiff
path: root/graphics/deep_zoom/Makefile
blob: efbf50a3759ef088eeffd873e8f2079c2949cb7f (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

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_GNOMENG=	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>