blob: 9ce3239dd195d6a20d67ff065f90a48bc6efe515 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $FreeBSD$
PORTNAME= libvdpau
PORTVERSION= 0.7
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= pkgconfig
USE_XZ= yes
USE_AUTOTOOLS= aclocal autoheader automake autoconf libtoolize
ACLOCAL_ARGS= -I.
AUTOMAKE_ARGS= --add-missing
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>
|