aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libva-vdpau-driver
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/libva-vdpau-driver')
-rw-r--r--multimedia/libva-vdpau-driver/Makefile46
-rw-r--r--multimedia/libva-vdpau-driver/distinfo2
-rw-r--r--multimedia/libva-vdpau-driver/pkg-descr3
-rw-r--r--multimedia/libva-vdpau-driver/pkg-plist5
4 files changed, 56 insertions, 0 deletions
diff --git a/multimedia/libva-vdpau-driver/Makefile b/multimedia/libva-vdpau-driver/Makefile
new file mode 100644
index 000000000000..78eca4a2b370
--- /dev/null
+++ b/multimedia/libva-vdpau-driver/Makefile
@@ -0,0 +1,46 @@
+# $FreeBSD$
+
+PORTNAME= libva-vdpau-driver
+PORTVERSION= 0.7.4
+CATEGORIES= multimedia
+MASTER_SITES= http://www.freedesktop.org/software/vaapi/releases/${PORTNAME}/
+
+MAINTAINER= madpilot@FreeBSD.org
+COMMENT= A VDPAU-based backend for VAAPI
+
+LICENSE= GPLv2 GPLv3
+LICENSE_COMB= dual
+
+LIB_DEPENDS= vdpau:${PORTSDIR}/multimedia/libvdpau
+BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/libva.pc:${PORTSDIR}/multimedia/libva \
+ ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
+
+LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_GL= gl
+
+GNU_CONFIGURE= yes
+CPPFLAGS+= -isystem${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+OPTIONS_DEFINE= DEBUG STRIP
+
+.include <bsd.port.options.mk>
+
+.if empty(PORT_OPTIONS:MDEBUG)
+CONFIGURE_ARGS+= --disable-debug
+.endif
+
+.if ${PORT_OPTIONS:MSTRIP}
+INSTALL_TARGET= install-strip
+.endif
+
+post-patch: .SILENT
+ ${REINPLACE_CMD} -e '/LIBS/{ s/-ldl//; \
+ s/-lrt//; s/-lpthread/${PTHREAD_LIBS}/; }' \
+ -e 's|driverdir|& --define-variable prefix=${PREFIX}|' \
+ -e '/\^vdpau_version/s|$$CC -E|& ${CPPFLAGS}|' \
+ ${WRKSRC}/configure
+
+.include <bsd.port.mk>
diff --git a/multimedia/libva-vdpau-driver/distinfo b/multimedia/libva-vdpau-driver/distinfo
new file mode 100644
index 000000000000..0b4a91c41969
--- /dev/null
+++ b/multimedia/libva-vdpau-driver/distinfo
@@ -0,0 +1,2 @@
+SHA256 (libva-vdpau-driver-0.7.4.tar.bz2) = 155c1982f0ac3f5435ba20b221bcaa11be212c37db548cd1f2a030ffa17e9bb9
+SIZE (libva-vdpau-driver-0.7.4.tar.bz2) = 316729
diff --git a/multimedia/libva-vdpau-driver/pkg-descr b/multimedia/libva-vdpau-driver/pkg-descr
new file mode 100644
index 000000000000..1d9e9ff29e0d
--- /dev/null
+++ b/multimedia/libva-vdpau-driver/pkg-descr
@@ -0,0 +1,3 @@
+A VDPAU-based backend for VAAPI.
+
+WWW: http://www.splitted-desktop.com/~gbeauchesne/
diff --git a/multimedia/libva-vdpau-driver/pkg-plist b/multimedia/libva-vdpau-driver/pkg-plist
new file mode 100644
index 000000000000..657c8fc4acaf
--- /dev/null
+++ b/multimedia/libva-vdpau-driver/pkg-plist
@@ -0,0 +1,5 @@
+lib/va/nvidia_drv_video.so
+lib/va/s3g_drv_video.so
+lib/va/vdpau_drv_video.la
+lib/va/vdpau_drv_video.so
+@dirrmtry lib/va