Annotation of pkgsrc/lang/python315/options.mk, revision 1.2

1.2     ! ryoon       1: # $NetBSD: options.mk,v 1.1 2026/10/10 10:34:19 adam Exp $
1.1       adam        2: 
                      3: PKG_OPTIONS_VAR=       PKG_OPTIONS.python315
1.2     ! ryoon       4: PKG_SUPPORTED_OPTIONS= dtrace pymalloc tkinter x11 readline pyfreethreading
1.1       adam        5: PKG_SUGGESTED_OPTIONS= x11 readline
                      6: 
                      7: .include "../../mk/bsd.prefs.mk"
                      8: .include "../../mk/bsd.options.mk"
                      9: 
                     10: PLIST_VARS+=           dtrace readline tkinter
                     11: 
                     12: .if !empty(PKG_OPTIONS:Mdtrace)
                     13: CONFIGURE_ARGS+=       --with-dtrace
                     14: PLIST.dtrace=          yes
                     15: .endif
                     16: 
                     17: .if !empty(PKG_OPTIONS:Mtkinter)
                     18: PLIST.tkinter= yes
                     19: .include "../../lang/tcl/buildlink3.mk"
                     20: .include "../../x11/tk/buildlink3.mk"
                     21: .else
                     22: CONFIGURE_ENV+=                py_cv_module__tkinter="n/a"
                     23: .endif
                     24: 
                     25: .if !empty(PKG_OPTIONS:Mx11)
                     26: # Support for native X11 paths as an option
                     27: # This code is no-op for modular X11, however for simplicity don't make it conditional.
                     28: SUBST_CLASSES+=                xfindlib
                     29: SUBST_MESSAGE.xfindlib=        Fixing find_library() for native X11.
                     30: SUBST_STAGE.xfindlib=  pre-configure
                     31: SUBST_FILES.xfindlib=  Lib/ctypes/util.py
                     32: SUBST_SED.xfindlib=    -e "s!\('-Wl,-t'\)!'${COMPILER_RPATH_FLAG}${X11BASE}/lib', '-L${X11BASE}/lib', \1!"
                     33: 
                     34: # Required to get definition of X11BASE and retain X11 rpath paths for linker
                     35: # We need to pass rpath to _ctypes.so to get functional dlopen(3) for X11 libs
                     36: USE_X11=       weak
                     37: .endif
                     38: 
                     39: .if !empty(PKG_OPTIONS:Mpymalloc)
                     40: CONFIGURE_ARGS+=       --with-pymalloc
                     41: .else
                     42: CONFIGURE_ARGS+=       --without-pymalloc
                     43: .endif
                     44: 
                     45: .if ${PKG_OPTIONS:Mreadline}
                     46: .  include "../../devel/readline/buildlink3.mk"
                     47: CONFIGURE_ARGS+=       --with-readline=readline
                     48: PLIST.readline=                yes
                     49: .else
                     50: CONFIGURE_ARGS+=       --without-readline
                     51: .endif
1.2     ! ryoon      52: 
        !            53: .if !empty(PKG_OPTIONS:Mpyfreethreading)
        !            54: CONFIGURE_ARGS+=       --disable-gil --enable-optimizations
        !            55: PY_VER=                        3.15t
        !            56: .else
        !            57: PY_VER=                        3.15
        !            58: .endif

CVSweb <webmaster@jp.NetBSD.org>