View | Details | Raw Unified | Return to bug 171824 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-11 / +21 lines)
Lines 3-9 Link Here
3
PORTNAME=	libvdpau
3
PORTNAME=	libvdpau
4
PORTVERSION=	0.5
4
PORTVERSION=	0.5
5
CATEGORIES=	multimedia
5
CATEGORIES=	multimedia
6
MASTER_SITES=	http://people.freedesktop.org/~aplattner/vdpau/
6
MASTER_SITES=	http://cgit.freedesktop.org/~aplattner/libvdpau/snapshot/
7
7
8
MAINTAINER=	ports@FreeBSD.org
8
MAINTAINER=	ports@FreeBSD.org
9
COMMENT=	VDPAU wrapper and tracing library
9
COMMENT=	VDPAU wrapper and tracing library
Lines 11-38 Link Here
11
LICENSE=	MIT
11
LICENSE=	MIT
12
LICENSE_FILE=	${WRKSRC}/COPYING
12
LICENSE_FILE=	${WRKSRC}/COPYING
13
13
14
USE_AUTOTOOLS=	autoconf:env automake:env libtool:env
14
USE_XZ=		yes
15
GNU_CONFIGURE=	yes
15
USE_AUTOTOOLS=	aclocal autoheader automake autoconf libtoolize
16
ACLOCAL_ARGS=	-I.
17
AUTOMAKE_ARGS=	--add-missing
16
CONFIGURE_ARGS=	--disable-documentation
18
CONFIGURE_ARGS=	--disable-documentation
17
USE_GMAKE=	yes
18
USE_XORG=	dri2proto xext
19
USE_XORG=	dri2proto xext
19
USE_LDCONFIG=	yes
20
USE_LDCONFIG=	yes
20
21
21
.include <bsd.port.pre.mk>
22
OPTIONS_DEFINE=	DEBUG STRIP
22
23
23
.if defined(WITH_DEBUG)
24
.include <bsd.options.mk>
25
26
.if ${PORT_OPTIONS:MDEBUG
24
CFLAGS+=	-DDEBUG
27
CFLAGS+=	-DDEBUG
25
.endif
28
.endif
26
29
27
.if defined(STRIP) && ${STRIP} != ""
30
.if {PORT_OPTIONS:MSTRIP}
28
INSTALL_TARGET=	install-strip
31
INSTALL_TARGET=	install-strip
29
.endif
32
.endif
30
33
31
pre-configure:
34
post-patch:	.SILENT
32
	@cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ./autogen.sh
33
34
post-patch:
35
	${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \
35
	${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \
36
		${WRKSRC}/Makefile.am
36
		${WRKSRC}/Makefile.am
37
	${REINPLACE_CMD} '/^export /d' ${WRKSRC}/doc/Makefile.am
38
	cd ${WRKSRC}/src && ${MV} vdpau_wrapper.cfg vdpau_wrapper.cfg.sample
39
	${REINPLACE_CMD} 's/vdpau_wrapper.cfg/&.sample/' \
40
		${WRKSRC}/src/Makefile.am
37
41
42
post-install:
43
	if [ ! -f ${PREFIX}/etc/vdpau_wrapper.cfg ]; then \
44
		${INSTALL_DATA} ${PREFIX}/etc/vdpau_wrapper.cfg.sample \
45
			${PREFIX}/etc/vdpau_wrapper.cfg; \
46
	fi
47
38
.include <bsd.port.post.mk>
48
.include <bsd.port.post.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (libvdpau-0.5.tar.gz) = 1dba27b86c94c400d540df0cc5166fb683d1157794867627b5fe9febc96f5e4c
1
SHA256 (libvdpau-0.5.tar.xz) = d702305349e762efd56b2aa9fbaaeeb8d25836af6fb38cd20017e19637dcfe05
2
SIZE (libvdpau-0.5.tar.gz) = 478945
2
SIZE (libvdpau-0.5.tar.xz) = 127188
(-)pkg-plist (-1 / +3 lines)
Lines 1-4 Link Here
1
etc/vdpau_wrapper.cfg
1
@unexec if cmp -s %D/etc/vdpau_wrapper.cfg.sample %D/etc/vdpau_wrapper.cfg; then rm -f %D/etc/vdpau_wrapper.cfg; fi
2
etc/vdpau_wrapper.cfg.sample
3
@exec if [ ! -f %D/etc/vdpau_wrapper.cfg ]; then cp -p %D/%F %B/vdpau_wrapper.cfg; fi
2
include/vdpau/vdpau.h
4
include/vdpau/vdpau.h
3
include/vdpau/vdpau_x11.h
5
include/vdpau/vdpau_x11.h
4
lib/libvdpau.la
6
lib/libvdpau.la

Return to bug 171824