3 .
include "../../mk/bsd.fast.prefs.mk"
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
12 BUILTIN_FIND_FILES.LIB_XVMCW
= ${X11BASE}/lib
/libXvMCW.so
15 .
include "../../mk/buildlink3/bsd.builtin.mk"
18 ### Determine if there is a built-in implementation of the package and
19 ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
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
30 MAKEVARS
+= IS_BUILTIN.libXvMC
33 ### Determine whether we should use the built-in implementation if it
34 ### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
36 .if
!defined
(USE_BUILTIN.libXvMC
)
37 . if
${PREFER.libXvMC
} == "pkgsrc"
38 USE_BUILTIN.libXvMC
= no
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 \
55 .
endif # PREFER.libXvMC
57 MAKEVARS
+= USE_BUILTIN.libXvMC
59 .
include "../../mk/x11.builtin.mk"