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

1.9     ! wiz         1: # $NetBSD: options.mk,v 1.8 2014/05/08 20:48:55 bad Exp $
1.1       asau        2: 
                      3: PKG_OPTIONS_VAR=       PKG_OPTIONS.gnuplot
1.9     ! wiz         4: PKG_SUPPORTED_OPTIONS= cairo gd lua pdf gnuplot-pdf-doc x11 qt4 wxwidgets
        !             5: PKG_SUGGESTED_OPTIONS= cairo gd gnuplot-pdf-doc x11
1.1       asau        6: 
                      7: .include "../../mk/bsd.options.mk"
                      8: 
1.9     ! wiz         9: PLIST_VARS+=   gnuplot-pdf-doc x11 qt4
        !            10: 
        !            11: .if !empty(PKG_OPTIONS:Mcairo)
        !            12: .include "../../devel/pango/buildlink3.mk"
        !            13: .include "../../graphics/cairo/buildlink3.mk"
        !            14: .else
        !            15: CONFIGURE_ARGS+=       --without-cairo
        !            16: .endif
1.2       adam       17: 
                     18: .if !empty(PKG_OPTIONS:Mgd)
                     19: .include "../../graphics/gd/buildlink3.mk"
                     20: .endif
                     21: 
1.4       obache     22: .if !empty(PKG_OPTIONS:Mlua)
                     23: .include "../../lang/lua/buildlink3.mk"
                     24: .else
                     25: CONFIGURE_ARGS+=       --without-lua
                     26: .endif
                     27: 
1.3       drochner   28: # PDF output is also provided by cairo
1.1       asau       29: .if !empty(PKG_OPTIONS:Mpdf)
1.2       adam       30: CONFIGURE_ARGS+=       --with-pdf
                     31: .include "../../print/pdflib-lite/buildlink3.mk"
1.1       asau       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:
        !            40:        (cd ${WRKSRC}/docs; ${GMAKE} gnuplot.pdf)
        !            41: post-install:
        !            42:        (cd ${WRKSRC}/docs; \
        !            43:        ${INSTALL_DATA} gnuplot.pdf ${DESTDIR}${PREFIX}/share/gnuplot/${API_VERSION})
        !            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: 
                     53: .if !empty(PKG_OPTIONS:Mqt4)
1.7       adam       54: USE_LANGUAGES+=                c++
1.9     ! wiz        55: CONFIGURE_ARGS+=       --with-qt=qt4
1.7       adam       56: PLIST.qt4=             yes
1.5       drochner   57: .include "../../x11/qt4-libs/buildlink3.mk"
1.9     ! wiz        58: .include "../../x11/qt4-tools/buildlink3.mk"
1.5       drochner   59: .else
1.9     ! wiz        60: CONFIGURE_ARGS+=       --with-qt=no
1.5       drochner   61: .endif
                     62: 
                     63: .if !empty(PKG_OPTIONS:Mwxwidgets)
1.7       adam       64: USE_LANGUAGES+=                c++
1.8       bad        65: # force wxt terminal into single threaded mode to avoid crashes
                     66: # c.f. http://sourceforge.net/p/gnuplot/mailman/message/31928881/
                     67: CONFIGURE_ARGS+=       --enable-wxwidgets --with-wx-single-threaded
1.5       drochner   68: .include "../../x11/wxGTK28/buildlink3.mk"
                     69: .else
1.7       adam       70: CONFIGURE_ARGS+=       --disable-wxwidgets
1.5       drochner   71: .endif

CVSweb <webmaster@jp.NetBSD.org>