aboutsummaryrefslogtreecommitdiff
path: root/multimedia/vdpau-video/Makefile
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2011-01-13 11:02:20 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2011-01-13 11:02:20 +0000
commite8db16b2142d0bc408dcb70be47f1970b32b9abc (patch)
tree749cea5aaddca849028e3f0e8f530265d6053474 /multimedia/vdpau-video/Makefile
parent9b191dbf46d5facaac9a96f4c14d62839f77cac7 (diff)
downloadports-e8db16b2142d0bc408dcb70be47f1970b32b9abc.tar.gz
ports-e8db16b2142d0bc408dcb70be47f1970b32b9abc.zip
Notes
Diffstat (limited to 'multimedia/vdpau-video/Makefile')
-rw-r--r--multimedia/vdpau-video/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/multimedia/vdpau-video/Makefile b/multimedia/vdpau-video/Makefile
new file mode 100644
index 000000000000..112bbcc7e68a
--- /dev/null
+++ b/multimedia/vdpau-video/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: vdpau-video
+# Date created: 5 Jan 2011
+# Whom: Anonymous
+#
+# $FreeBSD$
+#
+
+PORTNAME= vdpau-video
+DISTVERSION= 0.7.3.pre4
+CATEGORIES= multimedia
+MASTER_SITES= http://www.splitted-desktop.com/~gbeauchesne/${PORTNAME}/
+
+MAINTAINER= swell.k@gmail.com
+COMMENT= A VDPAU-based backend for VAAPI
+
+BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/libva.pc:${PORTSDIR}/multimedia/libva \
+ ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
+LIB_DEPENDS= vdpau.1:${PORTSDIR}/multimedia/libvdpau
+
+LICENSE= GPLv2 GPLv3
+LICENSE_COMB= dual
+LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
+
+USE_GMAKE= yes
+USE_GL= gl
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+
+CPPFLAGS+= -isystem${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+.include <bsd.port.pre.mk>
+
+VDPAU_PTHREAD_LIBS!= ${CC} -dumpspecs | ${GREP} -m 1 pthread: | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}
+
+.if !defined(WITH_DEBUG)
+CONFIGURE_ARGS+= --disable-debug
+.endif
+
+.if defined(STRIP) && ${STRIP} != ""
+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}|' \
+ ${WRKSRC}/configure
+ ${REINPLACE_CMD} 's/^vdpau.*LDFLAGS.*/& \
+ -Wl,-lc ${VDPAU_PTHREAD_LIBS:S/^/-Wl,/}/' \
+ ${WRKSRC}/src/Makefile.in
+
+.include <bsd.port.post.mk>