summaryrefslogtreecommitdiff
path: root/graphics/ImageMagick/Makefile
blob: 285043158c3f413fe1daea68a104c21d0a5da481 (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
# $NetBSD: Makefile,v 1.40 1999/04/24 23:08:59 tv Exp $
#

DISTNAME=	ImageMagick-4.2.2
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_LOCAL}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	tron@netbsd.org
HOMEPAGE=	http://www.wizards.dupont.com/cristy/ImageMagick.html

DEPENDS+=	jpeg-6b:../../graphics/jpeg
DEPENDS+=	mpeg2codec-1.2:../../graphics/mpeg2codec
DEPENDS+=	png-1.0.3:../../graphics/png
DEPENDS+=	tiff-3.4:../../graphics/tiff

pre-configure:
.if exists(/usr/lib/libbz2.a)
		@echo >${WRKSRC}/bzlib.tmpl "#define HasBZLIB"
.else
		@echo >${WRKSRC}/bzlib.tmpl
.endif
		@cd ${WRKSRC} && ./configure --prefix=${X11BASE}

MIRROR_DISTFILE= no
USE_IMAKE=	yes
XMKMF=		${MAKE_ENV} xmkmf -a
MAKE_ENV+=	LOCALBASE=${LOCALBASE} PREFIX=${PREFIX}

.include "../../mk/bsd.pkg.mk"