[BACK]Return to builtin.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / MesaLib

Annotation of pkgsrc/graphics/MesaLib/builtin.mk, Revision 1.2

1.2     ! jlam        1: # $NetBSD: builtin.mk,v 1.1 2004/03/10 17:57:14 jlam Exp $
1.1       jlam        2:
                      3: _GL_GLX_H=     ${X11BASE}/include/GL/glx.h
                      4: _X11_TMPL=     ${X11BASE}/lib/X11/config/X11.tmpl
                      5:
                      6: # Distill the MESA_REQD list into a single _MESA_REQD value that is the
                      7: # highest version of MESA required.
                      8: #
                      9: _MESA_STRICTEST_REQD?= none
                     10: .  for _version_ in ${MESA_REQD}
1.2     ! jlam       11: .    for _pkg_ in MesaLib-${_version_}
1.1       jlam       12: .      if ${_MESA_STRICTEST_REQD} == "none"
                     13: _MESA_PKG_SATISFIES_DEP=       yes
                     14: .        for _vers_ in ${MESA_REQD}
                     15: .          if !empty(_MESA_PKG_SATISFIES_DEP:M[yY][eE][sS])
                     16: _MESA_PKG_SATISFIES_DEP!=      \
1.2     ! jlam       17:        if ${PKG_ADMIN} pmatch 'MesaLib>=${_vers_}' ${_pkg_}; then      \
1.1       jlam       18:                ${ECHO} "yes";                                          \
                     19:        else                                                            \
                     20:                ${ECHO} "no";                                           \
                     21:        fi
                     22: .          endif
                     23: .        endfor
                     24: .        if !empty(_MESA_PKG_SATISFIES_DEP:M[yY][eE][sS])
                     25: _MESA_STRICTEST_REQD=  ${_version_}
                     26: .        endif
                     27: .      endif
                     28: .    endfor
                     29: .  endfor
                     30: _MESA_REQD=    ${_MESA_STRICTEST_REQD}
                     31:
                     32: .if !defined(IS_BUILTIN.MesaLib)
                     33: IS_BUILTIN.MesaLib=    no
                     34: .  if exists(${_GL_GLX_H}) && exists(${_X11_TMPL})
                     35: IS_BUILTIN.MesaLib!=                                                   \
                     36:        if ${GREP} -q BuildGLXLibrary ${_X11_TMPL}; then                \
                     37:                ${ECHO} "yes";                                          \
                     38:        else                                                            \
                     39:                ${ECHO} "no";                                           \
                     40:        fi
                     41: .    if !empty(IS_BUILTIN.MesaLib:M[yY][eE][sS])
                     42: #
                     43: # Create an appropriate package name for the built-in Mesa/GLX distributed
                     44: # with the system.  This package name can be used to check against
                     45: # BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc version
                     46: # or if the built-in one is sufficient.
                     47: #
                     48: .      include "../../graphics/Mesa/version.mk"
                     49: BUILTIN_PKG.MesaLib=   MesaLib-${_MESA_VERSION}
                     50: MAKEFLAGS+=            BUILTIN_PKG.MesaLib=${BUILTIN_PKG.MesaLib}
                     51: .    endif
                     52: .  endif
                     53: MAKEFLAGS+=    IS_BUILTIN.MesaLib=${IS_BUILTIN.MesaLib}
                     54: .endif
                     55:
                     56: CHECK_BUILTIN.MesaLib?=        no
                     57: .if !empty(CHECK_BUILTIN.MesaLib:M[yY][eE][sS])
                     58: USE_BUILTIN.MesaLib=   yes
                     59: .endif
                     60:
                     61: .if !defined(USE_BUILTIN.MesaLib)
                     62: USE_BUILTIN.MesaLib?=  ${IS_BUILTIN.MesaLib}
                     63:
                     64: .  if defined(BUILTIN_PKG.MesaLib)
                     65: USE_BUILTIN.MesaLib=   yes
                     66: .    for _depend_ in ${BUILDLINK_DEPENDS.MesaLib}
                     67: .      if !empty(USE_BUILTIN.MesaLib:M[yY][eE][sS])
                     68: USE_BUILTIN.MesaLib!=  \
                     69:        if ${PKG_ADMIN} pmatch '${_depend_}' ${BUILTIN_PKG.MesaLib}; then \
                     70:                ${ECHO} "yes";                                          \
                     71:        else                                                            \
                     72:                ${ECHO} "no";                                           \
                     73:        fi
                     74: .      endif
                     75: .    endfor
                     76: .  endif
                     77: .endif # USE_BUILTIN.MesaLib
                     78:
                     79: .if !empty(USE_BUILTIN.MesaLib:M[nN][oO])
                     80: BUILDLINK_DEPENDS.MesaLib+=    MesaLib>=6.0
                     81: .endif
                     82:
                     83: .if !empty(USE_BUILTIN.MesaLib:M[yY][eE][sS])
                     84: BUILDLINK_PREFIX.MesaLib=      ${X11BASE}
                     85: USE_X11=                       yes
                     86: _MESA_REQD=                    ${_MESA_VERSION}
                     87: .endif

CVSweb <webmaster@jp.NetBSD.org>