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

1.1     ! kamil       1: # $NetBSD: Makefile,v 1.65 2016/07/23 21:12:48 kamil Exp $
        !             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.
        !            13: SUBST_CLASSES+=                        x11findlib
        !            14: SUBST_MESSAGE.x11findlib=      Fixing find_library() for native X11.
        !            15: SUBST_STAGE.x11findlib=                pre-configure
        !            16: SUBST_FILES.x11findlib=                Lib/ctypes/util.py
        !            17: SUBST_SED.x11findlib=          -e 's!\(-Wl,-t -o\)!${COMPILER_RPATH_FLAG}${X11BASE}/lib -L${X11BASE}/lib \1!'
        !            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>