From 88259b44f9857249583a99ca77245bf63cc7e1bd Mon Sep 17 00:00:00 2001 From: dsainty Date: Tue, 6 May 2008 13:25:14 +0000 Subject: If Gimp is built without the aalib option, don't buildlink aalib. This is especially critical if aalib isn't actually installed on the building system! Fixes builds of Gimp plug-ins where PKG_DEFAULT_OPTIONS+=-aalib XXX There are a few other options here that should get the same treatment. --- graphics/gimp/buildlink3.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/graphics/gimp/buildlink3.mk b/graphics/gimp/buildlink3.mk index 58e92935948..3f7d35bd5df 100644 --- a/graphics/gimp/buildlink3.mk +++ b/graphics/gimp/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.24 2008/03/06 14:53:50 wiz Exp $ +# $NetBSD: buildlink3.mk,v 1.25 2008/05/06 13:25:14 dsainty Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ GIMP_BUILDLINK3_MK:= ${GIMP_BUILDLINK3_MK}+ @@ -17,9 +17,15 @@ BUILDLINK_ABI_DEPENDS.gimp+= gimp>=2.4.4 BUILDLINK_PKGSRCDIR.gimp?= ../../graphics/gimp .endif # GIMP_BUILDLINK3_MK +pkgbase := gimp +.include "../../mk/pkg-build-options.mk" + +.if !empty(PKG_BUILD_OPTIONS.gimp:Maalib) +.include "../../graphics/aalib/buildlink3.mk" +.endif + .include "../../devel/gettext-lib/buildlink3.mk" .include "../../fonts/fontconfig/buildlink3.mk" -.include "../../graphics/aalib/buildlink3.mk" .include "../../graphics/lcms/buildlink3.mk" .include "../../graphics/libart/buildlink3.mk" .include "../../graphics/libexif/buildlink3.mk" -- cgit v1.2.3