freebsd-ports/multimedia/vdpau-video/Makefile

51 lines
1.2 KiB
Makefile

# New ports collection makefile for: vdpau-video
# Date created: 5 Jan 2011
# Whom: Anonymous
#
# $FreeBSD$
#
PORTNAME= vdpau-video
DISTVERSION= 0.7.3
CATEGORIES= multimedia
MASTER_SITES= http://www.splitted-desktop.com/~gbeauchesne/${PORTNAME}/
MAINTAINER= ports@FreeBSD.org
COMMENT= A VDPAU-based backend for VAAPI
DEPRECATED= No more public distfiles
EXPIRATION_DATE= 2012-10-20
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
LIB_DEPENDS= vdpau.1:${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_GMAKE= yes
USE_GL= gl
GNU_CONFIGURE= yes
CPPFLAGS+= -isystem${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
.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}|' \
-e '/\^vdpau_version/s|$$CC -E|& ${CPPFLAGS}|' \
${WRKSRC}/configure
.include <bsd.port.post.mk>