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

1.2     ! adam        1: # $NetBSD: options.mk,v 1.1 2016/07/26 16:44:28 kamil Exp $
1.1       kamil       2: 
                      3: PKG_OPTIONS_VAR=       PKG_OPTIONS.python27
                      4: PKG_SUPPORTED_OPTIONS+=        x11
                      5: PKG_SUGGESTED_OPTIONS= x11
                      6: 
                      7: .include "../../mk/bsd.prefs.mk"
                      8: .include "../../mk/bsd.options.mk"
                      9: 
                     10: .if !empty(PKG_OPTIONS:Mx11)
                     11: # Support for native X11 paths as an option
                     12: # This code is no-op for modular X11, however for simplicity don't make it conditional.
1.2     ! adam       13: SUBST_CLASSES+=                xfindlib
        !            14: SUBST_MESSAGE.xfindlib=        Fixing find_library() for native X11.
        !            15: SUBST_STAGE.xfindlib=  pre-configure
        !            16: SUBST_FILES.xfindlib=  Lib/ctypes/util.py
        !            17: SUBST_SED.xfindlib=    -e 's!\(-Wl,-t -o\)!${COMPILER_RPATH_FLAG}${X11BASE}/lib -L${X11BASE}/lib \1!'
1.1       kamil      18: 
                     19: # Required to get definition of X11BASE and retain X11 rpath paths for linker
                     20: # We need to pass rpath to _ctypes.so to get functional dlopen(3) for X11 libs
                     21: USE_X11=               yes
                     22: 
                     23: SUBST_CLASSES+=                cdlopen
                     24: SUBST_MESSAGE.cdlopen= Handle X11BASE paths in dlopen(3) calls of _ctypes.so
                     25: SUBST_STAGE.cdlopen=   pre-configure
                     26: SUBST_FILES.cdlopen=   setup.py
                     27: SUBST_SED.cdlopen=     -e "s!\(libraries=\[\],\)!\1 runtime_library_dirs=\['${X11BASE}/lib'\],!"
                     28: .endif

CVSweb <webmaster@jp.NetBSD.org>