summaryrefslogtreecommitdiff
path: root/graphics/zphoto/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/zphoto/options.mk')
-rw-r--r--graphics/zphoto/options.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/graphics/zphoto/options.mk b/graphics/zphoto/options.mk
index 3fcb06fc6bf..5d46274b572 100644
--- a/graphics/zphoto/options.mk
+++ b/graphics/zphoto/options.mk
@@ -1,16 +1,24 @@
-# $NetBSD: options.mk,v 1.1.1.1 2006/08/12 16:20:35 xtraeme Exp $
+# $NetBSD: options.mk,v 1.2 2007/11/17 01:47:02 obache Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.zphoto
PKG_SUPPORTED_OPTIONS= zip wx
PKG_OPTIONS_REQUIRED_GROUPS= graphics
-PKG_OPTIONS_GROUP.graphics= imlib2 magick
+PKG_OPTIONS_GROUP.graphics= imlib2 imagemagick
PKG_SUGGESTED_OPTIONS= imlib2
+PKG_OPTIONS_LEGACY_OPTS+= magick:imagemagick
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mimlib2)
. include "../../graphics/imlib2/buildlink3.mk"
CONFIGURE_ARGS+= --disable-magick
+. if !empty(PKG_BUILD_OPTIONS.imlib2:Mx11)
+CONFIGURE_ARGS+= --with-x
+BUILDLINK_DEPMETHOD.libXt?= build
+.include "../../x11/libXt/buildlink3.mk"
+. else
+CONFIGURE_ARGS+= --without-x
+. endif
.elif !empty(PKG_OPTIONS:Mmagick)
. include "../../graphics/ImageMagick/buildlink3.mk"
CONFIGURE_ARGS+= --disable-imlib2