Annotation of pkgsrc/lang/python312/options.mk, revision 1.4
1.4 ! cheusov 1: # $NetBSD: options.mk,v 1.3 2024/05/01 15:56:03 cheusov Exp $
1.1 adam 2:
3: PKG_OPTIONS_VAR= PKG_OPTIONS.python312
1.3 cheusov 4: PKG_SUPPORTED_OPTIONS= dtrace pymalloc tkinter x11 readline
1.1 adam 5: PKG_SUGGESTED_OPTIONS= x11
6:
7: .include "../../mk/bsd.prefs.mk"
8: .include "../../mk/bsd.options.mk"
9:
1.3 cheusov 10: PLIST_VARS+= dtrace readline
1.1 adam 11:
12: .if !empty(PKG_OPTIONS:Mdtrace)
13: CONFIGURE_ARGS+= --with-dtrace
14: PLIST.dtrace= yes
15: .endif
16:
1.2 adam 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:
1.1 adam 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
1.3 cheusov 44:
45: # readline/editline
46: .if empty(PKG_OPTIONS:Mreadline)
47: CONFIGURE_ARGS+= --without-readline
48: .else
49: .include "../../mk/readline.buildlink3.mk"
50: .if ${READLINE_TYPE} == "editline"
51: CONFIGURE_ARGS+= --with-readline=editline
52: .else
53: CONFIGURE_ARGS+= --with-readline
54: .endif
55: PLIST.readline= yes
56: .endif
CVSweb <webmaster@jp.NetBSD.org>