2012-11-06 03:18:37 +01:00
|
|
|
# $NetBSD: options.mk,v 1.7 2012/11/06 02:18:37 gdt Exp $
|
2010-02-06 11:37:06 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.pari
|
2010-03-13 23:16:34 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS= doc gmp x11
|
2012-11-06 03:18:37 +01:00
|
|
|
# x11 is not suggested because it's not reasonable to include a GUI in
|
|
|
|
# a foundation library.
|
|
|
|
PKG_SUGGESTED_OPTIONS= doc gmp
|
2010-02-06 11:37:06 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2010-03-13 23:16:34 +01:00
|
|
|
PLIST_VARS+= doc
|
|
|
|
.if !empty(PKG_OPTIONS:Mdoc)
|
2010-10-01 22:50:55 +02:00
|
|
|
BUILD_DEPENDS+= tex-amsfonts>=3.0:../../fonts/tex-amsfonts
|
|
|
|
BUILD_DEPENDS+= tex-pdftex>=1.40.11:../../print/tex-pdftex
|
2010-03-13 23:16:34 +01:00
|
|
|
PLIST.doc= yes
|
|
|
|
BUILD_TARGET+= doc
|
|
|
|
INSTALL_TARGET+= install-doc
|
2011-03-18 16:00:01 +01:00
|
|
|
MAKE_ENV+= PDFTEX=${LOCALBASE}/bin/pdftex
|
2010-03-13 23:16:34 +01:00
|
|
|
.endif
|
2010-02-06 11:37:06 +01:00
|
|
|
|
2010-03-13 23:16:34 +01:00
|
|
|
PLIST_VARS+= nogmp gmp
|
2010-02-06 11:37:06 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mgmp)
|
|
|
|
PLIST.gmp= yes
|
2011-03-18 16:00:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-gmp=${PREFIX}
|
2010-02-06 11:37:06 +01:00
|
|
|
.include "../../devel/gmp/buildlink3.mk"
|
|
|
|
.else
|
|
|
|
PLIST.nogmp= yes
|
|
|
|
.endif
|
2010-02-19 09:33:28 +01:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mx11)
|
2010-03-13 23:16:34 +01:00
|
|
|
USE_TOOLS+= imake
|
2010-02-19 09:33:28 +01:00
|
|
|
CONFIGURE_ARGS+= --graphic=X11
|
2011-03-18 16:00:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-fltk=${PREFIX}
|
|
|
|
CONFIGURE_ENV+= X11BASE=${X11BASE}
|
2010-02-19 09:33:28 +01:00
|
|
|
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
|