diff options
author | madpilot <madpilot@FreeBSD.org> | 2012-10-24 05:13:33 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2012-10-24 05:13:33 +0800 |
commit | 9b8897c5b64b30597da0529a751823d42d9db73b (patch) | |
tree | c0567aa3f01f485552e11fc6fc7b83b92238e15e /multimedia | |
parent | 1fbfd3df88e9bb70b828ae5c535aaf3138a1d86d (diff) | |
download | freebsd-ports-gnome-9b8897c5b64b30597da0529a751823d42d9db73b.tar.gz freebsd-ports-gnome-9b8897c5b64b30597da0529a751823d42d9db73b.tar.zst freebsd-ports-gnome-9b8897c5b64b30597da0529a751823d42d9db73b.zip |
- 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
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/libvdpau/Makefile | 39 | ||||
-rw-r--r-- | multimedia/libvdpau/distinfo | 4 | ||||
-rw-r--r-- | multimedia/libvdpau/pkg-plist | 4 |
3 files changed, 32 insertions, 15 deletions
diff --git a/multimedia/libvdpau/Makefile b/multimedia/libvdpau/Makefile index 334bf17c47ba..7da9837b41c9 100644 --- a/multimedia/libvdpau/Makefile +++ b/multimedia/libvdpau/Makefile @@ -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> diff --git a/multimedia/libvdpau/distinfo b/multimedia/libvdpau/distinfo index 5b58b991e22e..08486a614574 100644 --- a/multimedia/libvdpau/distinfo +++ b/multimedia/libvdpau/distinfo @@ -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 diff --git a/multimedia/libvdpau/pkg-plist b/multimedia/libvdpau/pkg-plist index 6a926cffafd4..6fcf35729116 100644 --- a/multimedia/libvdpau/pkg-plist +++ b/multimedia/libvdpau/pkg-plist @@ -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 |