1 # $NetBSD: options.mk,v 1.7 2012/11/06 02:18:37 gdt Exp $
3 PKG_OPTIONS_VAR
= PKG_OPTIONS.pari
4 PKG_SUPPORTED_OPTIONS
= doc gmp x11
5 # x11 is not suggested because it's not reasonable to include a GUI in
6 # a foundation library.
7 PKG_SUGGESTED_OPTIONS
= doc gmp
9 .
include "../../mk/bsd.options.mk"
12 .if
!empty
(PKG_OPTIONS
:Mdoc
)
13 BUILD_DEPENDS
+= tex-amsfonts
>=3.0:..
/..
/fonts
/tex-amsfonts
14 BUILD_DEPENDS
+= tex-pdftex
>=1.40.11:..
/..
/print/tex-pdftex
17 INSTALL_TARGET
+= install-doc
18 MAKE_ENV
+= PDFTEX
=${LOCALBASE}/bin
/pdftex
21 PLIST_VARS
+= nogmp gmp
22 .if
!empty
(PKG_OPTIONS
:Mgmp
)
24 CONFIGURE_ARGS
+= --with-gmp
=${PREFIX}
25 .
include "../../devel/gmp/buildlink3.mk"
30 .if
!empty
(PKG_OPTIONS
:Mx11
)
32 CONFIGURE_ARGS
+= --graphic
=X11
33 CONFIGURE_ARGS
+= --with-fltk
=${PREFIX}
34 CONFIGURE_ENV
+= X11BASE
=${X11BASE}
35 CONFIGURE_ENV
+= Xincroot
=${X11BASE}/include
36 .
include "../../x11/libX11/buildlink3.mk"
37 .
include "../../x11/fltk13/buildlink3.mk"
39 CONFIGURE_ARGS
+= --graphic
=none
40 # don't let the configure script find an installed fltk
41 CONFIGURE_ARGS
+= --with-fltk
={BUILDLINK_DIR
:Q
}/nonexistent