5 BUILTIN_FIND_FILES_VAR
:= H_XPM
6 BUILTIN_FIND_FILES.H_XPM
= ${X11BASE}/include/X11
/xpm.h
8 .
include "../../mk/buildlink3/bsd.builtin.mk"
11 ### Determine if there is a built-in implementation of the package and
12 ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
14 .if
${X11BASE} == ${LOCALBASE}
16 .elif
!defined
(IS_BUILTIN.libXpm
)
18 . if empty
(H_XPM
:M__nonexistent__
)
19 IS_BUILTIN.libXpm
= yes
22 MAKEVARS
+= IS_BUILTIN.libXpm
25 ### Determine whether we should use the built-in implementation if it
26 ### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
28 .if
!defined
(USE_BUILTIN.libXpm
)
29 . if
${PREFER.libXpm
} == "pkgsrc"
30 USE_BUILTIN.libXpm
= no
32 USE_BUILTIN.libXpm
= ${IS_BUILTIN.libXpm
}
33 . if defined
(BUILTIN_PKG.libXpm
) && \
34 !empty
(IS_BUILTIN.libXpm
:M
[yY
][eE
][sS
])
35 USE_BUILTIN.libX11
= yes
37 .
endif # PREFER.libXpm
39 MAKEVARS
+= USE_BUILTIN.libXpm
41 .
include "../../mk/x11.builtin.mk"