summaryrefslogtreecommitdiff
path: root/graphics/libcaca/options.mk
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-07-28 19:21:02 +0000
committerwiz <wiz@pkgsrc.org>2005-07-28 19:21:02 +0000
commit4dc6356f77db88c6cc5d500a87ade53bc556d433 (patch)
tree398b65fe1eccb5bb2506845c5e55fabfde96fb31 /graphics/libcaca/options.mk
parent31ae1bd48352e6efbaec14469aedcb99990541c1 (diff)
downloadpkgsrc-4dc6356f77db88c6cc5d500a87ade53bc556d433.tar.gz
Convert to options framework, patch provided by Leonard Schmidt
in follow-up to PR 30318.
Diffstat (limited to 'graphics/libcaca/options.mk')
-rw-r--r--graphics/libcaca/options.mk37
1 files changed, 37 insertions, 0 deletions
diff --git a/graphics/libcaca/options.mk b/graphics/libcaca/options.mk
new file mode 100644
index 00000000000..d431634030f
--- /dev/null
+++ b/graphics/libcaca/options.mk
@@ -0,0 +1,37 @@
+# $NetBSD: options.mk,v 1.1 2005/07/28 19:21:02 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libcaca
+PKG_SUPPORTED_OPTIONS= imlib2
+PKG_OPTIONS_NONEMPTY_SETS= driver
+PKG_OPTIONS_SET.driver= ncurses slang x11
+PKG_SUGGESTED_OPTIONS= ncurses
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mimlib2)
+. include "../../graphics/imlib2/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-imlib2
+.else
+CONFIGURE_ARGS+= --disable-imlib2
+.endif
+
+.if !empty(PKG_OPTIONS:Mncurses)
+. include "../../devel/ncurses/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-ncurses
+.else
+CONFIGURE_ARGS+= --disable-ncurses
+.endif
+
+.if !empty(PKG_OPTIONS:Mslang)
+. include "../../devel/libslang/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-slang
+.else
+CONFIGURE_ARGS+= --disable-slang
+.endif
+
+.if !empty(PKG_OPTIONS:Mx11)
+. include "../../mk/x11.buildlink3.mk"
+CONFIGURE_ARGS+= --enable-x11
+.else
+CONFIGURE_ARGS+= --disable-x11
+.endif