freebsd-ports/multimedia/libva-vdpau-driver/Makefile
Niclas Zeising 82f108df30 Add USES=xorg USES=gl, ports categories m
Add USES=xorg and USES=gl to ports in categories starting with 'm'
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-06 18:07:22 +00:00

38 lines
1,011 B
Makefile

# $FreeBSD$
PORTNAME= libva-vdpau-driver
PORTVERSION= 0.7.4
PORTREVISION= 9
CATEGORIES= multimedia
MASTER_SITES= http://www.freedesktop.org/software/vaapi/releases/${PORTNAME}/
MAINTAINER= madpilot@FreeBSD.org
COMMENT= VDPAU-based backend for VAAPI
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
LIB_DEPENDS= libvdpau.so:multimedia/libvdpau
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/libva.pc:multimedia/libva \
${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
USES= libtool gl gmake localbase pkgconfig tar:bzip2
USE_GL= gl
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
PLIST_FILES= lib/dri/nvidia_drv_video.so lib/dri/s3g_drv_video.so lib/dri/vdpau_drv_video.so
OPTIONS_DEFINE= DEBUG
DEBUG_CONFIGURE_ENABLE= debug
post-patch: .SILENT
${REINPLACE_CMD} -e '/LIBS/{ s/-ldl//; s/-lrt//; }' \
-e 's|driverdir|& --define-variable prefix=${PREFIX}|' \
-e '/\^vdpau_version/s|$$CC -E|& ${CPPFLAGS}|' \
${WRKSRC}/configure
.include <bsd.port.mk>