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

1.1     ! adam        1: # $NetBSD$
        !             2: 
        !             3: PKG_OPTIONS_VAR=       PKG_OPTIONS.python311
        !             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: 
        !            30: SUBST_CLASSES+=                cdlopen
        !            31: SUBST_MESSAGE.cdlopen= Handle X11BASE paths in dlopen(3) calls of _ctypes.so
        !            32: SUBST_STAGE.cdlopen=   pre-configure
        !            33: SUBST_FILES.cdlopen=   setup.py
        !            34: SUBST_SED.cdlopen=     -e "s!\(libraries=\[\],\)!\1 runtime_library_dirs=\['${X11BASE}/lib'\],!"
        !            35: .endif
        !            36: 
        !            37: .if !empty(PKG_OPTIONS:Mpymalloc)
        !            38: CONFIGURE_ARGS+=       --with-pymalloc
        !            39: .else
        !            40: CONFIGURE_ARGS+=       --without-pymalloc
        !            41: .endif

CVSweb <webmaster@jp.NetBSD.org>