Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / libXpm / builtin.mk
blob7dbd841a1cd6e4f8f639024958845e24d981f5a6
1 # $NetBSD$
3 BUILTIN_PKG:= libXpm
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"
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 ${X11BASE} == ${LOCALBASE}
15 IS_BUILTIN.libXpm= no
16 .elif !defined(IS_BUILTIN.libXpm)
17 IS_BUILTIN.libXpm= no
18 . if empty(H_XPM:M__nonexistent__)
19 IS_BUILTIN.libXpm= yes
20 . endif
21 .endif
22 MAKEVARS+= IS_BUILTIN.libXpm
24 ###
25 ### Determine whether we should use the built-in implementation if it
26 ### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
27 ###
28 .if !defined(USE_BUILTIN.libXpm)
29 . if ${PREFER.libXpm} == "pkgsrc"
30 USE_BUILTIN.libXpm= no
31 . else
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
36 . endif
37 . endif # PREFER.libXpm
38 .endif
39 MAKEVARS+= USE_BUILTIN.libXpm
41 .include "../../mk/x11.builtin.mk"