summaryrefslogtreecommitdiffstats
path: root/graphics/ImageMagick/Makefile
blob: 25478ee85ae6a95518a8886b5fbb5ad715775bf7 (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
# New ports collection makefile for:	ImageMagick
# Version required:	3.7.7
# Date created:		15 November 1994
# Whom:			torstenb
#
# $Id: Makefile,v 1.9 1996/11/15 16:04:24 tg Exp $
#

DISTNAME=	ImageMagick-3.7.7
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR=	applications/ImageMagick

MAINTAINER=	ports@freebsd.org

LIB_DEPENDS=    jpeg\\.6\\.:${PORTSDIR}/graphics/jpeg \
		mpeg\\.1\\.:${PORTSDIR}/graphics/mpeg-lib \
		tiff\\.3\\.:${PORTSDIR}/graphics/tiff \
		png\\.0\\.:${PORTSDIR}/graphics/png

PREFIX=		${LOCALBASE}
WRKSRC=		${WRKDIR}/ImageMagick
USE_IMAKE=	YES

# Yuck. Somehow, $LOCALBASE isn't expanded in the Makefiles...
post-patch:
	@mv ${WRKSRC}/Magick.tmpl ${WRKSRC}/Magick.tmpl.tmp
	@sed -e "s|!!LOCALBASE!!|${LOCALBASE}|g" <${WRKSRC}/Magick.tmpl.tmp >${WRKSRC}/Magick.tmpl

pre-build:
	@(cd ${WRKSRC}/magick;make)

post-install:
	ldconfig -m ${PREFIX}/lib

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