mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
multimedia/libva-intel*driver: allow disabling Wayland/X11 independently of libva
PR: 236376 Submitted by: Dries Michiels (based on)
This commit is contained in:
parent
6863e1376a
commit
250cdde253
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495470
@ -27,12 +27,19 @@ GH_ACCOUNT= intel
|
||||
GH_PROJECT= intel-vaapi-driver
|
||||
PLIST_FILES= lib/dri/i915_drv_video.so lib/dri/i965_drv_video.so
|
||||
|
||||
OPTIONS_DEFINE= HYBRID
|
||||
OPTIONS_DEFINE= HYBRID WAYLAND X11
|
||||
OPTIONS_DEFAULT= WAYLAND X11
|
||||
|
||||
HYBRID_DESC= Hybrid VP8 encoding on Gen7/8 and VP9 decoding on Gen7/8/9
|
||||
HYBRID_RUN_DEPENDS= ${LOCALBASE}/lib/dri/hybrid_drv_video.so:multimedia/libva-intel-hybrid-driver
|
||||
HYBRID_MESON_TRUE= enable_hybrid_codec
|
||||
|
||||
WAYLAND_LIB_DEPENDS= libva-wayland.so:multimedia/libva
|
||||
WAYLAND_MESON_YES= with_wayland
|
||||
|
||||
X11_LIB_DEPENDS= libva-x11.so:multimedia/libva
|
||||
X11_MESON_YES= with_x11
|
||||
|
||||
post-install:
|
||||
${LN} -sf i965_drv_video.so ${STAGEDIR}${PREFIX}/lib/dri/i915_drv_video.so
|
||||
|
||||
|
@ -29,6 +29,15 @@ GNU_CONFIGURE= yes
|
||||
INSTALL_TARGET= install-strip
|
||||
PLIST_FILES= lib/dri/hybrid_drv_video.so
|
||||
|
||||
OPTIONS_DEFINE= WAYLAND X11
|
||||
OPTIONS_DEFAULT=WAYLAND X11
|
||||
|
||||
WAYLAND_LIB_DEPENDS= libva-wayland.so:multimedia/libva
|
||||
WAYLAND_CONFIGURE_ENABLE= wayland
|
||||
|
||||
X11_LIB_DEPENDS= libva-x11.so:multimedia/libva
|
||||
X11_CONFIGURE_ENABLE= x11
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/__linux__/d; /LINUX/d' \
|
||||
${WRKSRC}/src/vp9hdec/Makefile.am
|
||||
|
@ -6,6 +6,9 @@ DISTVERSION= 18.4.1
|
||||
CATEGORIES= multimedia
|
||||
PKGNAMEPREFIX= libva-intel-
|
||||
|
||||
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
|
||||
PATCHFILES= 95549679029d.patch:-p1
|
||||
|
||||
MAINTAINER= jbeich@FreeBSD.org
|
||||
COMMENT= VAAPI driver for Intel HD 5000 (Gen8) or newer
|
||||
|
||||
@ -32,12 +35,15 @@ CMAKE_ARGS= -DBUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \
|
||||
-DUFO_MARCH:STRING="${CPUTYPE}"
|
||||
PLIST_FILES= lib/dri/iHD_drv_video.so
|
||||
|
||||
OPTIONS_DEFINE= TEST
|
||||
OPTIONS_DEFINE= TEST X11
|
||||
OPTIONS_DEFAULT=X11
|
||||
|
||||
# XXX Unbundle googletest
|
||||
TEST_CMAKE_BOOL= MEDIA_RUN_TEST_SUITE
|
||||
TEST_TEST_TARGET= RunULT
|
||||
|
||||
X11_LIB_DEPENDS= libva-x11.so:multimedia/libva
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/-D__linux__/d' \
|
||||
${WRKSRC}/media_driver/cmake/linux/media_compile_flags_linux.cmake
|
||||
@ -49,4 +55,8 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e '/__fastcall/d' \
|
||||
${WRKSRC}/media_driver/linux/common/cm/cm_mem_os.h
|
||||
|
||||
post-patch-X11-off:
|
||||
@${REINPLACE_CMD} -i .nox11 '/find_package.*X11/d' \
|
||||
${WRKSRC}/media_driver/media_top_cmake.cmake
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,5 @@
|
||||
TIMESTAMP = 1549187390
|
||||
SHA256 (intel-media-driver-intel-media-18.4.1_GH0.tar.gz) = f04467e725a530c2fb80e081a45d5b7910d1b3ccbf89ff2d0b1ea7996dd93ce1
|
||||
SIZE (intel-media-driver-intel-media-18.4.1_GH0.tar.gz) = 14657816
|
||||
SHA256 (95549679029d.patch) = 348ec62564031f994669da4f70c735061bbedbe7057db68185798826989cf75b
|
||||
SIZE (95549679029d.patch) = 1005
|
||||
|
Loading…
Reference in New Issue
Block a user