freebsd-ports/multimedia/libvdpau/Makefile
Guido Falsi 38da09bb48 These ports does use GNU configure.
Reported by:	bapt
2014-09-18 15:24:21 +00:00

45 lines
1,018 B
Makefile

# $FreeBSD$
PORTNAME= libvdpau
PORTVERSION= 0.8
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://cgit.freedesktop.org/~aplattner/libvdpau/snapshot/
MAINTAINER= madpilot@FreeBSD.org
COMMENT= VDPAU wrapper and tracing library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
USES= autoreconf libtool pkgconfig tar:xz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-documentation
USE_XORG= dri2proto xext
USE_LDCONFIG= yes
OPTIONS_DEFINE= DEBUG
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
CFLAGS+= -D_DEBUG
.else
CFLAGS+= -DNDEBUG
.endif
.include <bsd.port.pre.mk>
.if defined(STRIP) && ${STRIP} != ""
INSTALL_TARGET= install-strip
.endif
post-patch: .SILENT
${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \
${WRKSRC}/Makefile.am
${REINPLACE_CMD} '/^export /d' ${WRKSRC}/doc/Makefile.am
cd ${WRKSRC}/src && ${MV} vdpau_wrapper.cfg vdpau_wrapper.cfg.sample
${REINPLACE_CMD} 's/vdpau_wrapper.cfg/&.sample/' \
${WRKSRC}/src/Makefile.am
.include <bsd.port.post.mk>