Annotation of pkgsrc/graphics/gnuplot/options.mk, revision 1.18

1.18    ! prlw1       1: # $NetBSD: options.mk,v 1.17 2020/08/19 22:09:15 wiz 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.18    ! prlw1      11: PLIST_VARS+=   gnuplot-pdf-doc lua 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)
1.18    ! prlw1      29: PLIST.lua=             yes
        !            30: CONFIGURE_ARGS+=       --with-lua
        !            31: 
        !            32: INSTALLATION_DIRS+=    share/texmf-dist/tex/context/gnuplot
        !            33: INSTALLATION_DIRS+=    share/texmf-dist/tex/generic/gnuplot
        !            34: INSTALLATION_DIRS+=    share/texmf-dist/tex/latex/gnuplot
        !            35: 
        !            36: post-install:
        !            37:        ${INSTALL_DATA} ${WRKSRC}/share/LaTeX/t-gnuplot-lua-tikz.tex \
        !            38:                ${DESTDIR}${PREFIX}/share/texmf-dist/tex/context/gnuplot
        !            39:        ${INSTALL_DATA} ${WRKSRC}/share/LaTeX/gnuplot-lua-tikz.tex\
        !            40:                 ${DESTDIR}${PREFIX}/share/texmf-dist/tex/generic/gnuplot
        !            41:        ${INSTALL_DATA} ${WRKSRC}/share/LaTeX/gnuplot-lua-tikz-common.tex\
        !            42:                 ${DESTDIR}${PREFIX}/share/texmf-dist/tex/generic/gnuplot
        !            43:        ${INSTALL_DATA} ${WRKSRC}/share/LaTeX/gnuplot-lua-tikz.sty\
        !            44:                 ${DESTDIR}${PREFIX}/share/texmf-dist/tex/latex/gnuplot
        !            45: 
1.4       obache     46: .include "../../lang/lua/buildlink3.mk"
1.18    ! prlw1      47: .include "../../print/kpathsea/texmf.mk"
1.4       obache     48: .else
                     49: CONFIGURE_ARGS+=       --without-lua
                     50: .endif
                     51: 
1.9       wiz        52: # to build doc/gnuplot.pdf
                     53: .if !empty(PKG_OPTIONS:Mgnuplot-pdf-doc)
                     54: PLIST.gnuplot-pdf-doc= yes
                     55: BUILD_DEPENDS+=        tex-latex-bin-[0-9]*:../../print/tex-latex-bin
                     56: BUILD_DEPENDS+=        tex-ucs-[0-9]*:../../print/tex-ucs
                     57: post-build:
1.14      adam       58:        cd ${WRKSRC}/docs && ${GMAKE} gnuplot.pdf
1.9       wiz        59: post-install:
1.14      adam       60:        cd ${WRKSRC}/docs && \
                     61:        ${INSTALL_DATA} gnuplot.pdf ${DESTDIR}${PREFIX}/share/gnuplot/${API_VERSION}
1.9       wiz        62: .endif
                     63: 
1.15      kamil      64: .if !empty(PKG_OPTIONS:Mqt5)
1.12      adam       65: USE_LANGUAGES+=                c++11
                     66: CONFIGURE_ARGS+=       --with-qt=qt5
                     67: PLIST.qt=              yes
                     68: .include "../../x11/qt5-qtbase/buildlink3.mk"
                     69: .include "../../x11/qt5-qtsvg/buildlink3.mk"
1.13      adam       70: .include "../../x11/qt5-qttools/buildlink3.mk"
1.5       drochner   71: .else
1.9       wiz        72: CONFIGURE_ARGS+=       --with-qt=no
1.5       drochner   73: .endif
                     74: 
                     75: .if !empty(PKG_OPTIONS:Mwxwidgets)
1.7       adam       76: USE_LANGUAGES+=                c++
1.12      adam       77: CONFIGURE_ARGS+=       --enable-wxwidgets
                     78: .include "../../x11/wxGTK30/buildlink3.mk"
1.5       drochner   79: .else
1.7       adam       80: CONFIGURE_ARGS+=       --disable-wxwidgets
1.5       drochner   81: .endif
1.18    ! prlw1      82: 
        !            83: .if !empty(PKG_OPTIONS:Mx11)
        !            84: PLIST.x11=     yes
        !            85: .include "../../x11/libXaw/buildlink3.mk"
        !            86: .else
        !            87: CONFIGURE_ARGS+=       --without-x
        !            88: .endif

CVSweb <webmaster@jp.NetBSD.org>