summaryrefslogtreecommitdiff
path: root/math/pari/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'math/pari/options.mk')
-rw-r--r--math/pari/options.mk17
1 files changed, 15 insertions, 2 deletions
diff --git a/math/pari/options.mk b/math/pari/options.mk
index 55044c025f2..aba92f96187 100644
--- a/math/pari/options.mk
+++ b/math/pari/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.1 2010/02/06 10:37:06 sno Exp $
+# $NetBSD: options.mk,v 1.2 2010/02/19 08:33:28 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.pari
-PKG_SUPPORTED_OPTIONS= gmp
+PKG_SUPPORTED_OPTIONS= gmp x11
PKG_SUGGESTED_OPTIONS= gmp
.include "../../mk/bsd.options.mk"
@@ -17,3 +17,16 @@ CONFIGURE_ARGS+= --with-gmp=${PREFIX:Q}
.else
PLIST.nogmp= yes
.endif
+
+.if !empty(PKG_OPTIONS:Mx11)
+CONFIGURE_ARGS+= --graphic=X11
+CONFIGURE_ARGS+= --with-fltk=${PREFIX:Q}
+CONFIGURE_ENV+= X11BASE=${X11BASE:Q}
+CONFIGURE_ENV+= Xincroot=${X11BASE}/include
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/fltk/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --graphic=none
+# don't let the configure script find an installed fltk
+CONFIGURE_ARGS+= --with-fltk={BUILDLINK_DIR:Q}/nonexistent
+.endif