summaryrefslogtreecommitdiff
path: root/graphics/ImageMagick6/buildlink3.mk
blob: faa2165b5a5c8808ec860e582cfe2d864dd06da4 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# $NetBSD: buildlink3.mk,v 1.11 2019/03/18 16:17:47 gdt Exp $

BUILDLINK_TREE+=	ImageMagick6

.if !defined(IMAGEMAGICK6_BUILDLINK3_MK)
IMAGEMAGICK6_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.ImageMagick6+=	ImageMagick6>=5.5.7.11nb1
BUILDLINK_ABI_DEPENDS.ImageMagick6+=	ImageMagick6>=6.9.9.38nb8
BUILDLINK_PKGSRCDIR.ImageMagick6?=	../../graphics/ImageMagick6

pkgbase := ImageMagick6
.include "../../mk/pkg-build-options.mk"

.if !empty(PKG_BUILD_OPTIONS.ImageMagick6:Mdjvu)
.include "../../graphics/djvulibre-lib/buildlink3.mk"
.endif
.if !empty(PKG_BUILD_OPTIONS.ImageMagick6:Mjp2)
.include "../../graphics/openjpeg/buildlink3.mk"
.endif
.if !empty(PKG_BUILD_OPTIONS.ImageMagick6:Mopenexr)
.include "../../graphics/openexr/buildlink3.mk"
.endif
.if !empty(PKG_BUILD_OPTIONS.ImageMagick6:Mwmf)
.include "../../graphics/libwmf/buildlink3.mk"
.endif
.if !empty(PKG_BUILD_OPTIONS.ImageMagick6:Mx11)
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.endif

.PHONY: ImageMagick6-preconfigure
pre-configure: ImageMagick6-preconfigure
ImageMagick6-preconfigure:
	cp ${PREFIX}/lib/pkgconfig/ImageMagick++-6.Q16.pc \
		${BUILDLINK_DIR}/lib/pkgconfig/ImageMagick++.pc
	cp ${PREFIX}/lib/pkgconfig/ImageMagick-6.Q16.pc \
		${BUILDLINK_DIR}/lib/pkgconfig/ImageMagick.pc
	cp ${PREFIX}/lib/pkgconfig/Magick++-6.Q16.pc \
		${BUILDLINK_DIR}/lib/pkgconfig/Magick++.pc
	cp ${PREFIX}/lib/pkgconfig/MagickCore-6.Q16.pc \
		${BUILDLINK_DIR}/lib/pkgconfig/MagickCore.pc
	cp ${PREFIX}/lib/pkgconfig/MagickWand-6.Q16.pc \
		${BUILDLINK_DIR}/lib/pkgconfig/MagickWand.pc
	cp ${PREFIX}/lib/pkgconfig/Wand-6.Q16.pc \
		${BUILDLINK_DIR}/lib/pkgconfig/Wand.pc

.include "../../archivers/bzip2/buildlink3.mk"
.include "../../archivers/xz/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/lcms2/buildlink3.mk"
.include "../../graphics/libwebp/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../math/fftw/buildlink3.mk"
.include "../../print/ghostscript/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.endif # IMAGEMAGICK6_BUILDLINK3_MK

BUILDLINK_TREE+=	-ImageMagick6