Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2012 21:13:33 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306328 - head/multimedia/libvdpau
Message-ID:  <201210232113.q9NLDXCx058190@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Tue Oct 23 21:13:33 2012
New Revision: 306328
URL: http://svn.freebsd.org/changeset/ports/306328

Log:
  - Switch back to cgit snapshot
  - Use xz format archive
  - Preserve configuraton file
  - Remove uneeded dependency on gmake
  - Properly USE_AUTOTOOLS which implies GNU_CONFIGURE
  - Convert to optionsng
  - Bump PORTREVISION due to diffs in installed files
  - Take maintainership (submitter declined)
  
  PR:		ports/171824
  Submmitted by:	Jan Beich <jbeich@tormail.org>
  Appproved by:	tabthorpe (portmgr)
  Feature safe:	yes

Modified:
  head/multimedia/libvdpau/Makefile   (contents, props changed)
  head/multimedia/libvdpau/distinfo   (contents, props changed)
  head/multimedia/libvdpau/pkg-plist   (contents, props changed)

Modified: head/multimedia/libvdpau/Makefile
==============================================================================
--- head/multimedia/libvdpau/Makefile	Tue Oct 23 20:53:48 2012	(r306327)
+++ head/multimedia/libvdpau/Makefile	Tue Oct 23 21:13:33 2012	(r306328)
@@ -2,37 +2,52 @@
 
 PORTNAME=	libvdpau
 PORTVERSION=	0.5
+PORTREVISION=	1
 CATEGORIES=	multimedia
-MASTER_SITES=	http://people.freedesktop.org/~aplattner/vdpau/
+MASTER_SITES=	http://cgit.freedesktop.org/~aplattner/libvdpau/snapshot/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	madpilot@FreeBSD.org
 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
 
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	DEBUG
+
+.include <bsd.port.options.mk>
 
-.if defined(WITH_DEBUG)
-CFLAGS+=	-DDEBUG
+.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
 
-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>

Modified: head/multimedia/libvdpau/distinfo
==============================================================================
--- head/multimedia/libvdpau/distinfo	Tue Oct 23 20:53:48 2012	(r306327)
+++ head/multimedia/libvdpau/distinfo	Tue Oct 23 21:13:33 2012	(r306328)
@@ -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

Modified: head/multimedia/libvdpau/pkg-plist
==============================================================================
--- head/multimedia/libvdpau/pkg-plist	Tue Oct 23 20:53:48 2012	(r306327)
+++ head/multimedia/libvdpau/pkg-plist	Tue Oct 23 21:13:33 2012	(r306328)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210232113.q9NLDXCx058190>