pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38020: x11/inputproto OpenSolaris



>Number:         38020
>Category:       pkg
>Synopsis:       x11/inputproto OpenSolaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 13 18:10:01 +0000 2008
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_120012-14 i86pc


>Description:


missing builtin.mk
see fix


>How-To-Repeat:





>Fix:


--- builtin.mk begins here ---
# $NetBSD: builtin.mk,v 1.5 2007/02/22 19:27:28 wiz Exp $

BUILTIN_PKG:=   inputproto

BUILTIN_FIND_FILES_VAR:=                H_INPUTPROTO
BUILTIN_FIND_FILES.H_INPUTPROTO=        \
        ${X11BASE}/include/X11/extensions/XIproto.h

.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 ${X11BASE} == ${LOCALBASE}
IS_BUILTIN.inputproto=  no
.elif !defined(IS_BUILTIN.inputproto)
IS_BUILTIN.inputproto=  no
#
# Here, we skip checking whether the files are under ${LOCALBASE} since
# we'll consider this X11 package to be built-in even if it's a part
# of one of the pkgsrc-installed X11 distributions.
#
.  if empty(H_INPUTPROTO:M__nonexistent__)
IS_BUILTIN.inputproto=  yes
.  endif
.endif
MAKEVARS+=      IS_BUILTIN.inputproto

###
### 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.inputproto)
.  if ${PREFER.inputproto} == "pkgsrc"
USE_BUILTIN.inputproto= no
.  else
USE_BUILTIN.inputproto= ${IS_BUILTIN.inputproto}
.    if defined(BUILTIN_PKG.inputproto) && \
        !empty(IS_BUILTIN.inputproto:M[yY][eE][sS])
USE_BUILTIN.inputproto= yes
.      for _dep_ in ${BUILDLINK_API_DEPENDS.inputproto}
.        if !empty(USE_BUILTIN.inputproto:M[yY][eE][sS])
USE_BUILTIN.inputproto!=                                                \
        if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.inputproto:Q}; then \
                ${ECHO} yes;                                            \
        else                                                            \
                ${ECHO} no;                                             \
        fi
.        endif
.      endfor
.    endif
.  endif  # PREFER.inputproto
.endif
MAKEVARS+=      USE_BUILTIN.inputproto

###
### The section below only applies if we are not including this file
### solely to determine whether a built-in implementation exists.
###
CHECK_BUILTIN.inputproto?=      no
.if !empty(CHECK_BUILTIN.inputproto:M[nN][oO])

.  if !empty(USE_BUILTIN.inputproto:M[yY][eE][sS])
BUILDLINK_PREFIX.inputproto=    ${X11BASE}
.    include "../../mk/x11.buildlink3.mk"
.    include "../../mk/x11.builtin.mk"
.  endif

# If we are using the builtin version, check whether it has a inputproto.pc
# file or not.  If the latter, generate a fake one.
.  if !empty(USE_BUILTIN.inputproto:M[Yy][Ee][Ss])
BUILDLINK_TARGETS+=     inputproto-fake-pc

inputproto-fake-pc:
        ${_PKG_SILENT}${_PKG_DEBUG} \
        src=${BUILDLINK_PREFIX.inputproto}/lib/pkgconfig/inputproto.pc \
        dst=${BUILDLINK_DIR}/lib/pkgconfig/inputproto.pc; \
        ${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \
        if ${TEST} -f $${src}; then \
                ${LN} -sf $${src} $${dst}; \
        else \
                { ${ECHO} "Name: XExtensions"; \
                ${ECHO} "Description: Sundry X extension headers"; \
                ${ECHO} "Version: 1.0.1"; \
                ${ECHO} "Cflags: -I${BUILDLINK_PREFIX.inputproto}/include"; \
                } >$${dst}; \
        fi
.  endif

.endif  # CHECK_BUILTIN.inputproto
--- builtin.mk ends here ---





Home | Main Index | Thread Index | Old Index