pkgsrc/multimedia/libva/Makefile
ryoon a178e406d0 Update to 2.6.1
Changelog:
    adjust call sequence to ensure authenticate operation is executed
    this patch is not needed for media-driver, but needed for
    i965 driver which check authentication.
2020-02-05 14:14:49 +00:00

55 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.22 2020/02/05 14:14:49 ryoon Exp $
DISTNAME= libva-2.6.1
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GITHUB:=01org/}
EXTRACT_SUFX= .tar.gz
GITHUB_TAG= 2.6.1
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/01org/libva
COMMENT= Video Acceleration API
LICENSE= mit
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= autoreconf autoconf automake gmake pkg-config
.include "../../mk/bsd.prefs.mk"
#
# vaapi drivers (e.g. intel-vaapi-driver) can be installed under
# ${PREFIX}/lib/dri and linked against native X.org. Instruct libva's
# DRIVER_SEARCH_PATH to look at them too for native X.org.
#
.if ${X11_TYPE} == "native"
DRIVER_SEARCH_PATH= ${X11BASE}/lib/dri:${PREFIX}/lib/dri
.else
DRIVER_SEARCH_PATH= ${X11BASE}/lib/dri
.endif
CONFIGURE_ARGS+= --enable-shared
CONFIGURE_ARGS+= --with-drivers-path=${DRIVER_SEARCH_PATH:Q}
LIBS+= ${BUILDLINK_LDADD.dl}
PKGCONFIG_OVERRIDE+= libva-drm.pc.in
PKGCONFIG_OVERRIDE+= libva-egl.pc.in
PKGCONFIG_OVERRIDE+= libva-glx.pc.in
PKGCONFIG_OVERRIDE+= libva-tpi.pc.in
PKGCONFIG_OVERRIDE+= libva-x11.pc.in
PKGCONFIG_OVERRIDE+= libva.pc.in
pre-configure:
cd ${WRKSRC} && autoreconf -i
# To avoid a PLIST mismatch with base Xorg
CONFIGURE_ARGS+= --disable-glx
.include "../../x11/libXfixes/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libdrm/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"