1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/multimedia/libva-intel-hybrid-driver/Makefile
Jan Beich 1d4b5c3aee multimedia/libva-intel-hybrid-driver: unbreak with Clang 11
ld: error: duplicate symbol: ME_CURBE_INIT_DATA
>>> defined at media_drv_common.c
>>>            .libs/hybrid_drv_video_la-media_drv_common.o:(ME_CURBE_INIT_DATA)
>>> defined at media_drv_hw_g75.c
>>>            .libs/hybrid_drv_video_la-media_drv_hw_g75.o:(.bss+0x0)

ld: error: duplicate symbol: SEARCH_PATH_TABLE
>>> defined at media_drv_common.c
>>>            .libs/hybrid_drv_video_la-media_drv_common.o:(SEARCH_PATH_TABLE)
>>> defined at media_drv_hw_g75.c
>>>            .libs/hybrid_drv_video_la-media_drv_hw_g75.o:(.bss+0x80)

Reported by:	pkg-fallout
2020-08-23 14:31:47 +00:00

48 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= intel-hybrid-driver
DISTVERSION= 1.0.2
PORTREVISION= 2
CATEGORIES= multimedia
PKGNAMEPREFIX= libva-
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= dfa9c8eba295.patch:-p1
PATCHFILES+= b3b4d9a3a08d.patch:-p1 # https://github.com/intel/intel-hybrid-driver/pull/26
PATCHFILES+= 821f87129662.patch:-p1 # https://github.com/intel/intel-hybrid-driver/pull/28
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Hybrid VP8 encoder and VP9 decoder for Intel GPUs
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= Only Intel GPUs on x86 are supported
LIB_DEPENDS= libdrm_intel.so:graphics/libdrm \
libcmrt.so:multimedia/cmrt \
libva.so:multimedia/libva
USES= autoreconf compiler:c11 gmake libtool pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= intel
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
.include <bsd.port.mk>