forked from Lainports/opnsense-ports
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# Created by: Manuel Creach <manuel.creach@me.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libva-intel-driver
|
|
PORTVERSION= 2.2.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= multimedia
|
|
|
|
MAINTAINER= madpilot@FreeBSD.org
|
|
COMMENT= VAAPI intel driver
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libva.so:multimedia/libva \
|
|
libdrm.so:graphics/libdrm
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= alias autoreconf compiler:c11 gmake libtool localbase \
|
|
pkgconfig tar:bzip2
|
|
USE_GL= gl
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= 01org
|
|
GH_PROJECT= intel-vaapi-driver
|
|
|
|
PLIST_FILES= lib/dri/i915_drv_video.so lib/dri/i965_drv_video.so
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
ONLY_FOR_ARCHS_REASON= Driver for hardware present only on intel i386 and amd64 CPUs
|
|
|
|
post-patch: .SILENT
|
|
${REINPLACE_CMD} -e 's/-ldl//' \
|
|
${WRKSRC}/src/Makefile.am
|
|
${REINPLACE_CMD} -e 's|driverdir|& --define-variable prefix=${PREFIX}|' \
|
|
${WRKSRC}/configure.ac
|
|
|
|
post-install:
|
|
${LN} -sf i965_drv_video.so ${STAGEDIR}${PREFIX}/lib/dri/i915_drv_video.so
|
|
|
|
.include <bsd.port.mk>
|