freebsd-ports/multimedia/libva-vdpau-driver/Makefile
Guido Falsi aae78d5e6f - Remove STRIP option. The STRIP variable needs special handling
from bsd.port.mk. Using it as an option breaks DEBUG build and
  prevents installation of stripped binaries.
- Bump PORTREVISION due to change in installed binaries (stripped
  vs unstripped)

Thanks to Jan Beich <jbeich@tormail.org> for pointing this out.

Feature safe:   yes
2012-10-23 21:15:42 +00:00

49 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= libva-vdpau-driver
PORTVERSION= 0.7.4
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://www.freedesktop.org/software/vaapi/releases/${PORTNAME}/
MAINTAINER= madpilot@FreeBSD.org
COMMENT= 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
.include <bsd.port.options.mk>
.if empty(PORT_OPTIONS:MDEBUG)
CONFIGURE_ARGS+= --disable-debug
.endif
.include <bsd.port.pre.mk>
.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>