Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / libXvMC / builtin.mk
blob657ee1da7033264e27070257eeadd6691f7c0e9b
1 # $NetBSD$
3 .include "../../mk/bsd.fast.prefs.mk"
5 BUILTIN_PKG:= libXvMC
7 BUILTIN_FIND_FILES_VAR:= PC_LIBXVMC LIB_XVMCW
8 BUILTIN_FIND_FILES.PC_LIBXVMC= ${X11BASE}/lib/pkgconfig/xvmc.pc
9 .if ${_OPSYS_SHLIB_TYPE} == "dylib"
10 BUILTIN_FIND_FILES.LIB_XVMCW= ${X11BASE}/lib/libXvMCW.dylib
11 .else
12 BUILTIN_FIND_FILES.LIB_XVMCW= ${X11BASE}/lib/libXvMCW.so
13 .endif
15 .include "../../mk/buildlink3/bsd.builtin.mk"
17 ###
18 ### Determine if there is a built-in implementation of the package and
19 ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
20 ###
21 .if ${X11BASE} == ${LOCALBASE}
22 IS_BUILTIN.libXvMC= no
23 .elif !defined(IS_BUILTIN.libXvMC)
24 IS_BUILTIN.libXvMC= no
25 . if empty(PC_LIBXVMC:M__nonexistent__) && \
26 empty(LIB_XVMCW:M__nonexistent__)
27 IS_BUILTIN.libXvMC= yes
28 . endif
29 .endif
30 MAKEVARS+= IS_BUILTIN.libXvMC
32 ###
33 ### Determine whether we should use the built-in implementation if it
34 ### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
35 ###
36 .if !defined(USE_BUILTIN.libXvMC)
37 . if ${PREFER.libXvMC} == "pkgsrc"
38 USE_BUILTIN.libXvMC= no
39 . else
40 USE_BUILTIN.libXvMC= ${IS_BUILTIN.libXvMC}
41 . if defined(BUILTIN_PKG.libXvMC) && \
42 !empty(IS_BUILTIN.libXvMC:M[yY][eE][sS])
43 USE_BUILTIN.libXvMC= yes
44 . for _dep_ in ${BUILDLINK_API_DEPENDS.libXvMC}
45 . if !empty(USE_BUILTIN.libXvMC:M[yY][eE][sS])
46 USE_BUILTIN.libXvMC!= \
47 if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libXvMC:Q}; then \
48 ${ECHO} yes; \
49 else \
50 ${ECHO} no; \
52 . endif
53 . endfor
54 . endif
55 . endif # PREFER.libXvMC
56 .endif
57 MAKEVARS+= USE_BUILTIN.libXvMC
59 .include "../../mk/x11.builtin.mk"