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

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/graphics/MesaLib/builtin.mk between version 1.1 and 1.13

version 1.1, 2004/03/10 17:57:14 version 1.13, 2006/03/30 18:06:17
Line 1 
Line 1 
 # $NetBSD$  # $NetBSD$
   
 _GL_GLX_H=      ${X11BASE}/include/GL/glx.h  BUILTIN_PKG:=   MesaLib
 _X11_TMPL=      ${X11BASE}/lib/X11/config/X11.tmpl  
   
 # Distill the MESA_REQD list into a single _MESA_REQD value that is the  BUILTIN_FIND_FILES_VAR:=        H_MESALIB
 # highest version of MESA required.  BUILTIN_FIND_FILES.H_MESALIB=   ${X11BASE}/include/GL/glx.h
 #  
 _MESA_STRICTEST_REQD?=  none  
 .  for _version_ in ${MESA_REQD}  
 .    for _pkg_ in gcc-${_version_}  
 .      if ${_MESA_STRICTEST_REQD} == "none"  
 _MESA_PKG_SATISFIES_DEP=        yes  
 .        for _vers_ in ${MESA_REQD}  
 .          if !empty(_MESA_PKG_SATISFIES_DEP:M[yY][eE][sS])  
 _MESA_PKG_SATISFIES_DEP!=       \  
         if ${PKG_ADMIN} pmatch 'gcc>=${_vers_}' ${_pkg_}; then          \  
                 ${ECHO} "yes";                                          \  
         else                                                            \  
                 ${ECHO} "no";                                           \  
         fi  
 .          endif  
 .        endfor  
 .        if !empty(_MESA_PKG_SATISFIES_DEP:M[yY][eE][sS])  
 _MESA_STRICTEST_REQD=   ${_version_}  
 .        endif  
 .      endif  
 .    endfor  
 .  endfor  
 _MESA_REQD=     ${_MESA_STRICTEST_REQD}  
   
   .include "../../mk/buildlink3/bsd.builtin.mk"
   
   ###
   ### Determine if there is a built-in implementation of the package and
   ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
   ###
 .if !defined(IS_BUILTIN.MesaLib)  .if !defined(IS_BUILTIN.MesaLib)
 IS_BUILTIN.MesaLib=     no  IS_BUILTIN.MesaLib=     no
 .  if exists(${_GL_GLX_H}) && exists(${_X11_TMPL})  .  if empty(H_MESALIB:M__nonexistent__)
 IS_BUILTIN.MesaLib!=                                                    \  BUILTIN_IMAKE_CHECK:=   MesaLib:BuildGLXLibrary
         if ${GREP} -q BuildGLXLibrary ${_X11_TMPL}; then                \  .    include "../../mk/buildlink3/imake-check.mk"
                 ${ECHO} "yes";                                          \  IS_BUILTIN.MesaLib=     ${BUILTIN_IMAKE_CHECK.MesaLib}
         else                                                            \  
                 ${ECHO} "no";                                           \  
         fi  
 .    if !empty(IS_BUILTIN.MesaLib:M[yY][eE][sS])  
 #  
 # Create an appropriate package name for the built-in Mesa/GLX distributed  
 # with the system.  This package name can be used to check against  
 # BUILDLINK_DEPENDS.<pkg> to see if we need to install the pkgsrc version  
 # or if the built-in one is sufficient.  
 #  
 .      include "../../graphics/Mesa/version.mk"  
 BUILTIN_PKG.MesaLib=    MesaLib-${_MESA_VERSION}  
 MAKEFLAGS+=             BUILTIN_PKG.MesaLib=${BUILTIN_PKG.MesaLib}  
 .    endif  
 .  endif  .  endif
 MAKEFLAGS+=     IS_BUILTIN.MesaLib=${IS_BUILTIN.MesaLib}  
 .endif  .endif
   MAKEVARS+=      IS_BUILTIN.MesaLib
   
 CHECK_BUILTIN.MesaLib?= no  ###
 .if !empty(CHECK_BUILTIN.MesaLib:M[yY][eE][sS])  ### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to
 USE_BUILTIN.MesaLib=    yes  ### a package name to represent the built-in package.
   ###
   .if !defined(BUILTIN_PKG.MesaLib) && \
       !empty(IS_BUILTIN.MesaLib:M[yY][eE][sS]) && \
       empty(H_MESALIB:M__nonexistent__)
   .  include "../../graphics/Mesa/version.mk"
   BUILTIN_PKG.MesaLib=    MesaLib-${BUILTIN_VERSION.Mesa}
 .endif  .endif
   MAKEVARS+=      BUILTIN_PKG.MesaLib
   
   ###
   ### Determine whether we should use the built-in implementation if it
   ### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
   ###
 .if !defined(USE_BUILTIN.MesaLib)  .if !defined(USE_BUILTIN.MesaLib)
 USE_BUILTIN.MesaLib?=   ${IS_BUILTIN.MesaLib}  .  if ${PREFER.MesaLib} == "pkgsrc"
   USE_BUILTIN.MesaLib=    no
 .  if defined(BUILTIN_PKG.MesaLib)  .  else
   USE_BUILTIN.MesaLib=    ${IS_BUILTIN.MesaLib}
   .    if defined(BUILTIN_PKG.MesaLib) && \
           !empty(IS_BUILTIN.MesaLib:M[yY][eE][sS])
 USE_BUILTIN.MesaLib=    yes  USE_BUILTIN.MesaLib=    yes
 .    for _depend_ in ${BUILDLINK_DEPENDS.MesaLib}  .      for dep in ${BUILDLINK_DEPENDS.MesaLib}
 .      if !empty(USE_BUILTIN.MesaLib:M[yY][eE][sS])  .        if !empty(USE_BUILTIN.MesaLib:M[yY][eE][sS])
 USE_BUILTIN.MesaLib!=   \  USE_BUILTIN.MesaLib!=                                                   \
         if ${PKG_ADMIN} pmatch '${_depend_}' ${BUILTIN_PKG.MesaLib}; then \          if ${PKG_ADMIN} pmatch ${dep:Q} ${BUILTIN_PKG.MesaLib:Q}; then \
                 ${ECHO} "yes";                                          \                  ${ECHO} yes;                                            \
         else                                                            \          else                                                            \
                 ${ECHO} "no";                                           \                  ${ECHO} no;                                             \
         fi          fi
 .      endif  .        endif
 .    endfor  .      endfor
 .  endif  .    endif
 .endif  # USE_BUILTIN.MesaLib  .  endif  # PREFER.MesaLib
   
 .if !empty(USE_BUILTIN.MesaLib:M[nN][oO])  
 BUILDLINK_DEPENDS.MesaLib+=     MesaLib>=6.0  
 .endif  .endif
   MAKEVARS+=      USE_BUILTIN.MesaLib
   
   ###
   ### The section below only applies if we are not including this file
   ### solely to determine whether a built-in implementation exists.
   ###
   CHECK_BUILTIN.MesaLib?= no
   .if !empty(CHECK_BUILTIN.MesaLib:M[nN][oO])
   
 .if !empty(USE_BUILTIN.MesaLib:M[yY][eE][sS])  .  if !empty(USE_BUILTIN.MesaLib:M[nN][oO])
   BUILDLINK_DEPTH:=               ${BUILDLINK_DEPTH}+
   .    include "../../mk/pthread.buildlink3.mk"
   .    include "../../mk/pthread.builtin.mk"
   BUILDLINK_DEPTH:=               ${BUILDLINK_DEPTH:S/+$//}
   .  endif
   
   .  if !empty(USE_BUILTIN.MesaLib:M[yY][eE][sS])
 BUILDLINK_PREFIX.MesaLib=       ${X11BASE}  BUILDLINK_PREFIX.MesaLib=       ${X11BASE}
 USE_X11=                        yes  BUILDLINK_DEPTH:=               ${BUILDLINK_DEPTH}+
 _MESA_REQD=                     ${_MESA_VERSION}  .    include "../../mk/x11.buildlink3.mk"
 .endif  .    include "../../mk/x11.builtin.mk"
   BUILDLINK_DEPTH:=               ${BUILDLINK_DEPTH:S/+$//}
   .  endif
   
   .endif  # CHECK_BUILTIN.MesaLib

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.13

CVSweb <webmaster@jp.NetBSD.org>