Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Sep 2012 01:34:38 +0100
From:      Jan Beich <jbeich@tormail.org>
To:        Eitan Adler <eadler@freebsd.org>
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org
Subject:   Re: svn commit: r304473 - head/multimedia/libvdpau
Message-ID:  <1TEUia-0001uh-7D@internal.tormail.org>
In-Reply-To: <1TER1p-0000cS-5c@internal.tormail.org> (Eitan Adler's message of "Wed, 19 Sep 2012 12:50:31 -0400")
References:  <201209182305.q8IN5hFU078960@svn.freebsd.org> <1TEL4D-0007qE-33@internal.tormail.org> <1TER1p-0000cS-5c@internal.tormail.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Eitan Adler <eadler@freebsd.org> writes:

> On 19 September 2012 10:16, Jan Beich <jbeich@tormail.org> wrote:
>
>> Eitan Adler <eadler@FreeBSD.org> writes:
>>
>>> Author: eadler
>>> Date: Tue Sep 18 23:05:43 2012
>>> New Revision: 304473
>>> URL: http://svn.freebsd.org/changeset/ports/304473
>>>
>>> Log:
>>>   Change back to the people.freedesktop url.
>>>   This service was unavailable before, but apperently the git. version
>>> returns multiple checksums.
>>
>> Just don't use gzip(1) for snapshots. cgit.freedesktop.org also offers
>> tar.xz and tar.bz2.
>
> Do these differ across downloads?

No, only gzip(1) stores timestamps in its headers that produce a
different checksum every time cgit/gitweb snapshot generated.

> I'd be willing to add an extra MASTER_SITE

Eh? people.fdo tarballs contain pre-generated configure/Makefile files.

Index: multimedia/libvdpau/pkg-plist
===================================================================
--- multimedia/libvdpau/pkg-plist	(revision 304557)
+++ multimedia/libvdpau/pkg-plist	(working copy)
@@ -1,4 +1,6 @@
-etc/vdpau_wrapper.cfg
+@unexec if cmp -s %D/etc/vdpau_wrapper.cfg.sample %D/etc/vdpau_wrapper.cfg; then rm -f %D/etc/vdpau_wrapper.cfg; fi
+etc/vdpau_wrapper.cfg.sample
+@exec if [ ! -f %D/etc/vdpau_wrapper.cfg ]; then cp -p %D/%F %B/vdpau_wrapper.cfg; fi
 include/vdpau/vdpau.h
 include/vdpau/vdpau_x11.h
 lib/libvdpau.la
Index: multimedia/libvdpau/Makefile
===================================================================
--- multimedia/libvdpau/Makefile	(revision 304557)
+++ multimedia/libvdpau/Makefile	(working copy)
@@ -3,7 +3,7 @@
 PORTNAME=	libvdpau
 PORTVERSION=	0.5
 CATEGORIES=	multimedia
-MASTER_SITES=	http://people.freedesktop.org/~aplattner/vdpau/
+MASTER_SITES=	http://cgit.freedesktop.org/~aplattner/libvdpau/snapshot/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	VDPAU wrapper and tracing library
@@ -11,10 +11,11 @@ COMMENT=	VDPAU wrapper and tracing library
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USE_AUTOTOOLS=	autoconf:env automake:env libtool:env
-GNU_CONFIGURE=	yes
+USE_XZ=		yes
+USE_AUTOTOOLS=	aclocal autoheader automake autoconf libtoolize
+ACLOCAL_ARGS=	-I.
+AUTOMAKE_ARGS=	--add-missing
 CONFIGURE_ARGS=	--disable-documentation
-USE_GMAKE=	yes
 USE_XORG=	dri2proto xext
 USE_LDCONFIG=	yes
 
@@ -28,11 +29,18 @@ CFLAGS+=	-DDEBUG
 INSTALL_TARGET=	install-strip
 .endif
 
-pre-configure:
-	@cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ./autogen.sh
-
-post-patch:
+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
 
+post-install:
+	if [ ! -f ${PREFIX}/etc/vdpau_wrapper.cfg ]; then \
+		${INSTALL_DATA} ${PREFIX}/etc/vdpau_wrapper.cfg.sample \
+			${PREFIX}/etc/vdpau_wrapper.cfg; \
+	fi
+
 .include <bsd.port.post.mk>
Index: multimedia/libvdpau/distinfo
===================================================================
--- multimedia/libvdpau/distinfo	(revision 304557)
+++ multimedia/libvdpau/distinfo	(working copy)
@@ -1,2 +1,2 @@
-SHA256 (libvdpau-0.5.tar.gz) = 1dba27b86c94c400d540df0cc5166fb683d1157794867627b5fe9febc96f5e4c
-SIZE (libvdpau-0.5.tar.gz) = 478945
+SHA256 (libvdpau-0.5.tar.xz) = d702305349e762efd56b2aa9fbaaeeb8d25836af6fb38cd20017e19637dcfe05
+SIZE (libvdpau-0.5.tar.xz) = 127188



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1TEUia-0001uh-7D>