Annotation of pkgsrc/lang/python312/options.mk, revision 1.1

1.1     ! adam        1: # $NetBSD$
        !             2: 
        !             3: PKG_OPTIONS_VAR=       PKG_OPTIONS.python312
        !             4: PKG_SUPPORTED_OPTIONS= dtrace pymalloc x11
        !             5: PKG_SUGGESTED_OPTIONS= x11
        !             6: 
        !             7: .include "../../mk/bsd.prefs.mk"
        !             8: .include "../../mk/bsd.options.mk"
        !             9: 
        !            10: PLIST_VARS+=           dtrace
        !            11: 
        !            12: .if !empty(PKG_OPTIONS:Mdtrace)
        !            13: CONFIGURE_ARGS+=       --with-dtrace
        !            14: PLIST.dtrace=          yes
        !            15: .endif
        !            16: 
        !            17: .if !empty(PKG_OPTIONS:Mx11)
        !            18: # Support for native X11 paths as an option
        !            19: # This code is no-op for modular X11, however for simplicity don't make it conditional.
        !            20: SUBST_CLASSES+=                xfindlib
        !            21: SUBST_MESSAGE.xfindlib=        Fixing find_library() for native X11.
        !            22: SUBST_STAGE.xfindlib=  pre-configure
        !            23: SUBST_FILES.xfindlib=  Lib/ctypes/util.py
        !            24: SUBST_SED.xfindlib=    -e "s!\('-Wl,-t'\)!'${COMPILER_RPATH_FLAG}${X11BASE}/lib', '-L${X11BASE}/lib', \1!"
        !            25: 
        !            26: # Required to get definition of X11BASE and retain X11 rpath paths for linker
        !            27: # We need to pass rpath to _ctypes.so to get functional dlopen(3) for X11 libs
        !            28: USE_X11=       weak
        !            29: .endif
        !            30: 
        !            31: .if !empty(PKG_OPTIONS:Mpymalloc)
        !            32: CONFIGURE_ARGS+=       --with-pymalloc
        !            33: .else
        !            34: CONFIGURE_ARGS+=       --without-pymalloc
        !            35: .endif

CVSweb <webmaster@jp.NetBSD.org>