Annotation of pkgsrc/lang/python311/options.mk, revision 1.2
1.2 ! cheusov 1: # $NetBSD: options.mk,v 1.1 2022/10/31 09:50:40 adam Exp $
1.1 adam 2:
3: PKG_OPTIONS_VAR= PKG_OPTIONS.python311
1.2 ! cheusov 4: PKG_SUPPORTED_OPTIONS= dtrace pymalloc x11 readline
! 5: PKG_SUGGESTED_OPTIONS= x11 readline
1.1 adam 6:
7: .include "../../mk/bsd.prefs.mk"
8: .include "../../mk/bsd.options.mk"
9:
1.2 ! 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:
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
1.2 ! cheusov 42:
! 43: # readline/editline
! 44: .if empty(PKG_OPTIONS:Mreadline)
! 45: CONFIGURE_ARGS+= --without-readline
! 46: .else
! 47: .include "../../mk/readline.buildlink3.mk"
! 48: .if ${READLINE_TYPE} == "editline"
! 49: CONFIGURE_ARGS+= --with-readline=editline
! 50: .else
! 51: CONFIGURE_ARGS+= --with-readline
! 52: .endif
! 53: PLIST.readline= yes
! 54: .endif
CVSweb <webmaster@jp.NetBSD.org>