Annotation of pkgsrc/graphics/gnuplot/options.mk, revision 1.17
1.17 ! wiz 1: # $NetBSD: options.mk,v 1.16 2019/12/09 12:57:22 rin Exp $
1.1 asau 2:
3: PKG_OPTIONS_VAR= PKG_OPTIONS.gnuplot
1.17 ! wiz 4: PKG_SUPPORTED_OPTIONS= cairo cerf gd gnuplot-pdf-doc lua qt5 wxwidgets x11
1.16 rin 5: PKG_SUGGESTED_OPTIONS= cairo cerf gd x11
1.1 asau 6:
1.17 ! wiz 7: # remove after pkgsrc-2020Q3
! 8: PKG_OPTIONS_LEGACY_OPTS+= pdf:cairo
1.1 asau 9: .include "../../mk/bsd.options.mk"
10:
1.12 adam 11: PLIST_VARS+= gnuplot-pdf-doc qt x11
1.9 wiz 12:
13: .if !empty(PKG_OPTIONS:Mcairo)
14: .include "../../devel/pango/buildlink3.mk"
15: .include "../../graphics/cairo/buildlink3.mk"
16: .else
17: CONFIGURE_ARGS+= --without-cairo
18: .endif
1.2 adam 19:
1.10 wiz 20: .if !empty(PKG_OPTIONS:Mcerf)
1.11 wiz 21: .include "../../devel/libcerf/buildlink3.mk"
1.10 wiz 22: .endif
23:
1.2 adam 24: .if !empty(PKG_OPTIONS:Mgd)
25: .include "../../graphics/gd/buildlink3.mk"
26: .endif
27:
1.4 obache 28: .if !empty(PKG_OPTIONS:Mlua)
29: .include "../../lang/lua/buildlink3.mk"
30: .else
31: CONFIGURE_ARGS+= --without-lua
32: .endif
33:
1.9 wiz 34: # to build doc/gnuplot.pdf
35: .if !empty(PKG_OPTIONS:Mgnuplot-pdf-doc)
36: PLIST.gnuplot-pdf-doc= yes
37: BUILD_DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
38: BUILD_DEPENDS+= tex-ucs-[0-9]*:../../print/tex-ucs
39: post-build:
1.14 adam 40: cd ${WRKSRC}/docs && ${GMAKE} gnuplot.pdf
1.9 wiz 41: post-install:
1.14 adam 42: cd ${WRKSRC}/docs && \
43: ${INSTALL_DATA} gnuplot.pdf ${DESTDIR}${PREFIX}/share/gnuplot/${API_VERSION}
1.9 wiz 44: .endif
45:
1.2 adam 46: .if !empty(PKG_OPTIONS:Mx11)
47: PLIST.x11= yes
48: .include "../../x11/libXaw/buildlink3.mk"
49: .else
50: CONFIGURE_ARGS+= --without-x
1.1 asau 51: .endif
1.5 drochner 52:
1.15 kamil 53: .if !empty(PKG_OPTIONS:Mqt5)
1.12 adam 54: USE_LANGUAGES+= c++11
55: CONFIGURE_ARGS+= --with-qt=qt5
56: PLIST.qt= yes
57: .include "../../x11/qt5-qtbase/buildlink3.mk"
58: .include "../../x11/qt5-qtsvg/buildlink3.mk"
1.13 adam 59: .include "../../x11/qt5-qttools/buildlink3.mk"
1.5 drochner 60: .else
1.9 wiz 61: CONFIGURE_ARGS+= --with-qt=no
1.5 drochner 62: .endif
63:
64: .if !empty(PKG_OPTIONS:Mwxwidgets)
1.7 adam 65: USE_LANGUAGES+= c++
1.12 adam 66: CONFIGURE_ARGS+= --enable-wxwidgets
67: .include "../../x11/wxGTK30/buildlink3.mk"
1.5 drochner 68: .else
1.7 adam 69: CONFIGURE_ARGS+= --disable-wxwidgets
1.5 drochner 70: .endif
CVSweb <webmaster@jp.NetBSD.org>