svn commit: r304473 - head/multimedia/libvdpau
Jan Beich
jbeich at tormail.org
Thu Sep 20 00:36:18 UTC 2012
Eitan Adler <eadler at freebsd.org> writes:
> On 19 September 2012 10:16, Jan Beich <jbeich at tormail.org> wrote:
>
>> Eitan Adler <eadler at 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
+ at 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
+ at 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 at 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
More information about the svn-ports-all
mailing list