aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libva/Makefile
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2011-01-13 19:02:02 +0800
committermakc <makc@FreeBSD.org>2011-01-13 19:02:02 +0800
commitb89048bbd6dea30c8a9cefebfc02752fdc226612 (patch)
tree26c6b5eb61228f5ccf1446edde48e11b703a459e /multimedia/libva/Makefile
parentd7a8ad722bebdf3a45e5f7469797c1fba843b385 (diff)
downloadfreebsd-ports-gnome-b89048bbd6dea30c8a9cefebfc02752fdc226612.tar.gz
freebsd-ports-gnome-b89048bbd6dea30c8a9cefebfc02752fdc226612.tar.zst
freebsd-ports-gnome-b89048bbd6dea30c8a9cefebfc02752fdc226612.zip
Add new port multimedia/libva:
The main motivation for VAAPI (Video Acceleration API) is to enable hardware accelerated video decode/encode at various entry-points (VLD, IDCT, Motion Compensation etc.) for the prevailing coding standards today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3). WWW: http://freedesktop.org/wiki/Software/vaapi PR: ports/153725 Submitted by: Anonymous <swell.k at gmail.com> Feature safe: yes
Diffstat (limited to 'multimedia/libva/Makefile')
-rw-r--r--multimedia/libva/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/multimedia/libva/Makefile b/multimedia/libva/Makefile
new file mode 100644
index 000000000000..9292679c616a
--- /dev/null
+++ b/multimedia/libva/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: libva
+# Date created: 5 Jan 2011
+# Whom: Anonymous
+#
+# $FreeBSD$
+#
+
+PORTNAME= libva
+PORTVERSION= 1.0.7
+CATEGORIES= multimedia
+MASTER_SITES= http://cgit.freedesktop.org/${PORTNAME}/snapshot/
+
+MAINTAINER= swell.k@gmail.com
+COMMENT= VAAPI wrapper and dummy driver
+
+BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
+LIB_DEPENDS= drm.2:${PORTSDIR}/graphics/libdrm
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USE_BZIP2= yes
+USE_XORG= xext xfixes
+USE_GL= gl
+USE_AUTOTOOLS= aclocal autoheader automake autoconf libtoolize
+ACLOCAL_ARGS= -I.
+AUTOMAKE_ARGS= --add-missing
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS= --program-prefix=va
+USE_LDCONFIG= yes
+
+CPPFLAGS+= -isystem${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+# prevent types conflict: videodev2.h vs. drm.h
+CFLAGS+= -DHAVE_LINUX_INTEGER_TYPES
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITH_DEBUG)
+CFLAGS+= -DNDEBUG
+.else
+CFLAGS+= -D_DEBUG
+.endif
+
+.if defined(STRIP) && ${STRIP} != ""
+INSTALL_TARGET= install-strip
+.endif
+
+post-patch: .SILENT
+ ${REINPLACE_CMD} -e 's|\($$libdir\)/dri|\1/va|' \
+ -e 's|$${libdir}/\(pkgconfig\)|$${prefix}/libdata/\1|' \
+ ${WRKSRC}/configure.ac
+ ${REINPLACE_CMD} 's/va\(info\)/\1/' ${WRKSRC}/test/Makefile.am
+ ${REINPLACE_CMD} 's/-ldl//' ${WRKSRC}/va/Makefile.am
+ ${REINPLACE_CMD} 's/dummy.*LDFLAGS.*/& -Wl,-lc/' \
+ ${WRKSRC}/dummy_drv_video/Makefile.am
+ ${REINPLACE_CMD} 's/-pthread/${PTHREAD_LIBS}/' \
+ ${WRKSRC}/i965_drv_video/Makefile.am \
+ ${WRKSRC}/test/putsurface/Makefile.am
+
+.include <bsd.port.post.mk>