blob: ccd4f8dd9ffe032a3c814d7554c507c007a1b1bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $FreeBSD$
PORTNAME= media-driver
DISTVERSIONPREFIX= intel-media-
DISTVERSION= 18.4.pre5-23
DISTVERSIONSUFFIX= -g7e4ee705
CATEGORIES= multimedia
PKGNAMEPREFIX= libva-intel-
MAINTAINER= jbeich@FreeBSD.org
COMMENT= VAAPI driver for Intel HD 5000 (Gen8) or newer
LICENSE= MIT BSD3CLAUSE
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/LICENSE.md
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= Only Intel GPUs on x86 are supported
BUILD_DEPENDS= gmmlib>=${PORTVERSION:C/([^.]*\.[^.]).*/\1/}:multimedia/gmmlib \
libva>=2.3.0_3:multimedia/libva
LIB_DEPENDS= libpciaccess.so:devel/libpciaccess \
libigdgmm.so:multimedia/gmmlib \
libva.so:multimedia/libva
USES= cmake compiler:c++11-lib localbase pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= intel
ARCH_SUFX= ${ARCH:S/i386/32/:S/amd//:S/x86_//}
CMAKE_OFF= MEDIA_BUILD_FATAL_WARNINGS BUILD_CMRTLIB
CMAKE_ARGS= -DBUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \
-DARCH:STRING="${ARCH_SUFX}" \
-DUFO_MARCH:STRING="${CPUTYPE}"
PLIST_FILES= lib/dri/iHD_drv_video.so
OPTIONS_DEFINE= TEST
# XXX Unbundle googletest
TEST_CMAKE_BOOL= MEDIA_RUN_TEST_SUITE
TEST_TEST_TARGET= RunULT
post-patch:
@${REINPLACE_CMD} -e '/-D__linux__/d' \
${WRKSRC}/media_driver/cmake/linux/media_compile_flags_linux.cmake
@if [ ${CHOSEN_COMPILER_TYPE} != gcc ]; then \
${REINPLACE_CMD} -i .gcc.bak '/-fno-tree-pre/d' \
${WRKSRC}/media_driver/cmake/linux/media_compile_flags_linux.cmake; \
fi
# Silence -Wmacro-redefined
@${REINPLACE_CMD} -e '/__fastcall/d' \
${WRKSRC}/media_driver/linux/common/cm/cm_mem_os.h
.include <bsd.port.mk>
|