Fixup fromcvs/togit conversion
[pkgsrcv2.git] / math / pari / options.mk
1 # $NetBSD: options.mk,v 1.7 2012/11/06 02:18:37 gdt Exp $
2
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
8
9 .include "../../mk/bsd.options.mk"
10
11 PLIST_VARS+=            doc
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
15 PLIST.doc=              yes
16 BUILD_TARGET+=          doc
17 INSTALL_TARGET+=        install-doc
18 MAKE_ENV+=              PDFTEX=${LOCALBASE}/bin/pdftex
19 .endif
20
21 PLIST_VARS+=            nogmp gmp
22 .if !empty(PKG_OPTIONS:Mgmp)
23 PLIST.gmp=              yes
24 CONFIGURE_ARGS+=        --with-gmp=${PREFIX}
25 .include "../../devel/gmp/buildlink3.mk"
26 .else
27 PLIST.nogmp=            yes
28 .endif
29
30 .if !empty(PKG_OPTIONS:Mx11)
31 USE_TOOLS+=             imake
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"
38 .else
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
42 .endif