summaryrefslogtreecommitdiff
path: root/graphics/imlib2/buildlink3.mk
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2007-11-17 01:40:50 +0000
committerobache <obache@pkgsrc.org>2007-11-17 01:40:50 +0000
commitf3eef4fc736ad236763490b356f8d4584218f8fe (patch)
tree1670c7b5cfcb24abf7a405d395beb1bcd363e683 /graphics/imlib2/buildlink3.mk
parent04311f2052fa81960f5b693b55c6771a34ff6dea (diff)
downloadpkgsrc-f3eef4fc736ad236763490b356f8d4584218f8fe.tar.gz
Add x11 option (default: enabled).
No functionally change, but bump PKGREVISION due to detect x11 option.
Diffstat (limited to 'graphics/imlib2/buildlink3.mk')
-rw-r--r--graphics/imlib2/buildlink3.mk15
1 files changed, 14 insertions, 1 deletions
diff --git a/graphics/imlib2/buildlink3.mk b/graphics/imlib2/buildlink3.mk
index 5e070a17344..2ed59418c95 100644
--- a/graphics/imlib2/buildlink3.mk
+++ b/graphics/imlib2/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.17 2006/11/06 11:28:32 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.18 2007/11/17 01:40:50 obache Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
IMLIB2_BUILDLINK3_MK:= ${IMLIB2_BUILDLINK3_MK}+
@@ -24,7 +24,20 @@ BUILDLINK_PKGSRCDIR.imlib2?= ../../graphics/imlib2
.include "../../graphics/libungif/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
+
+_IMLIB2_PRE_X11_OPTION!= \
+ if ${PKG_INFO} -qe 'imlib2<=1.4.0'; then \
+ ${ECHO} yes; \
+ else \
+ ${ECHO} no; \
+ fi
+
+pkgbase := imlib2
+.include "../../mk/pkg-build-options.mk"
+
+.if ${_IMLIB2_PRE_X11_OPTION} == "yes" || !empty(PKG_BUILD_OPTIONS.imlib2:Mx11)
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
+.endif
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}