pkgsrc/multimedia/intel-vaapi-driver/Makefile
2020-10-20 11:41:37 +00:00

47 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2020/10/20 11:41:37 nia Exp $
DISTNAME= intel-vaapi-driver-2.4.0
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GITHUB:=intel/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/intel/intel-vaapi-driver/
COMMENT= VA-API user mode driver for Intel GEN Graphics family
LICENSE= mit
.include "../../multimedia/libva/available.mk"
.if ${VAAPI_AVAILABLE} == "no"
NOT_FOR_PLATFORM+= ${MACHINE_PLATFORM}
.endif
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= autoconf automake gmake pkg-config
ONLY_FOR_PLATFORM+= *-*-i386 *-*-x86_64
CONFIGURE_ARGS+= --disable-wayland
# XXX: Force installation in PREFIX.
# XXX: LIBVA_DRIVERS_PATH - if undefined - is obtained via
# XXX: `pkg-config libva --variable driverdir'. This is not desiderable
# XXX: for native X.org so handle installation similarly to graphics/MesaLib
# XXX: in order to be X11_TYPE agnostic.
CONFIGURE_ENV+= LIBVA_DRIVERS_PATH=${PREFIX}/lib/dri/
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Linux"
BUILDLINK_TRANSFORM+= rm:-ldl
.endif
pre-configure:
${RUN} cd ${WRKSRC} && ${SH} ./autogen.sh
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../multimedia/libva/buildlink3.mk"
.include "../../sysutils/libpciaccess/buildlink3.mk"
.include "../../x11/libdrm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"