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

Annotation of pkgsrc/devel/argp/builtin.mk, Revision 1.1

1.1     ! joerg       1: # $NetBSD: builtin.mk,v 1.6 2007/08/03 11:53:27 joerg Exp $
        !             2:
        !             3: BUILTIN_PKG:=  argp
        !             4:
        !             5: BUILTIN_FIND_FILES_VAR:=       H_ARGP
        !             6: BUILTIN_FIND_FILES.H_ARGP=     /usr/include/argp.h
        !             7:
        !             8: .include "../../mk/buildlink3/bsd.builtin.mk"
        !             9:
        !            10: ###
        !            11: ### Determine if there is a built-in implementation of the package and
        !            12: ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
        !            13: ###
        !            14: .if !defined(IS_BUILTIN.argp)
        !            15: IS_BUILTIN.argp=       no
        !            16: .  if empty(H_ARGP:M__nonexistent__) && empty(H_ARGP:M${LOCALBASE}/*)
        !            17: IS_BUILTIN.argp=       yes
        !            18: .  endif
        !            19: .endif
        !            20: MAKEVARS+=     IS_BUILTIN.argp
        !            21:
        !            22: ###
        !            23: ### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to
        !            24: ### a package name to represent the built-in package.
        !            25: ###
        !            26: .if !defined(BUILTIN_PKG.argp) && \
        !            27:     !empty(IS_BUILTIN.argp:M[yY][eE][sS]) && \
        !            28:     empty(H_ARGP:M__nonexistent__)
        !            29:
        !            30: ###
        !            31: ### Determine whether we should use the built-in implementation if it
        !            32: ### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
        !            33: ###
        !            34: .if !defined(USE_BUILTIN.argp)
        !            35: .  if ${PREFER.argp} == "pkgsrc"
        !            36: USE_BUILTIN.argp=      no
        !            37: .  else
        !            38: USE_BUILTIN.argp=      ${IS_BUILTIN.argp}
        !            39: .    if defined(BUILTIN_PKG.argp) && \
        !            40:         !empty(IS_BUILTIN.argp:M[yY][eE][sS])
        !            41: USE_BUILTIN.argp=      yes
        !            42: .    endif
        !            43: .  endif  # PREFER.argp
        !            44: .endif
        !            45: MAKEVARS+=     USE_BUILTIN.argp
        !            46: .endif

CVSweb <webmaster@jp.NetBSD.org>