Bug 150368 - [new port] multimedia/libvdpau: VDPAU wrapper and a tracing library
Summary: [new port] multimedia/libvdpau: VDPAU wrapper and a tracing library
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Max Brazhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 02:10 UTC by swell.k
Modified: 2010-09-24 20:13 UTC (History)
0 users

See Also:


Attachments
a.diff (2.86 KB, patch)
2010-09-08 02:10 UTC, swell.k
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description swell.k 2010-09-08 02:05:26 UTC
Anonymous <swell.k@gmail.com> writes:

> @@ -318,6 +319,7 @@
>      SUBDIR += vcdimager
>      SUBDIR += vcdpad
>      SUBDIR += vcdtools
> +    SUBDIR += vdpauinfo
>      SUBDIR += vlc
>      SUBDIR += vlconwooztalk
>      SUBDIR += vodcatcher

Oops, I've got this bit mixed up with another PR.
Comment 1 swell.k 2010-09-08 02:10:02 UTC
Nvidia finally kicked out VDPAU headers from their latest driver.
Below is a quote from NVIDIA-FreeBSD-x86_64-260.19.04/NVIDIA_Changelog:

    * Stopped packaging and installing OpenGL and VDPAU header files
      with the driver.  Those interested in these files can get them from
      their distributions' packages, where available, or upstream from:

        OpenGL header files (gl.h, glext.h glx.h, glxext.h):
            http://www.opengl.org/registry/

        VDPAU header files (vdpau.h and vdpau_x11.h):
            http://freedesktop.org/wiki/Software/VDPAU

      Note that while libvdpau.so is still included in 260.xx drivers,
      it will be removed from a future release series in early 2011.
      Distributors are encouraged to package libvdpau.so from
      http://freedesktop.org/wiki/Software/VDPAU
Comment 2 swell.k 2010-09-08 02:34:11 UTC
Obviously, at the end of plist there should be

  @dirrmtry lib/vdpau
Comment 3 Max Brazhnikov freebsd_committer freebsd_triage 2010-09-09 16:12:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->makc

I'll take it.
Comment 4 swell.k 2010-09-10 14:39:38 UTC
- update to 0.4.1 (only comments in vdpau headers were changed)
- fix bits mentioned in two previos posts
- correct spelling a bit by removing `a' article, "library" refers to
  both "wrapper" and "tracing" *and* they're both VDPAU libraries

Not sure if there is any point to make description more verbose,
e.g. like in pkgsrc. The user is gonna install it only as dependency on
mplayer/mythtv/gstreamer or vlc (via libva).

BTW, doxygen docs dependencies are pretty heavy for NOPORTDOCS. I think
they're better suited for a -reference port.

--- a.diff begins here ---
Index: multimedia/Makefile
===================================================================
RCS file: /a/.cvsup/ports/multimedia/Makefile,v
retrieving revision 1.390
diff -u -p -r1.390 Makefile
--- multimedia/Makefile	9 Sep 2010 07:43:33 -0000	1.390
+++ multimedia/Makefile	9 Sep 2010 14:28:07 -0000
@@ -160,6 +160,7 @@
     SUBDIR += libtheora
     SUBDIR += libtuner
     SUBDIR += libv4l
+    SUBDIR += libvdpau
     SUBDIR += libvpx
     SUBDIR += libxine
     SUBDIR += libxspf
Index: multimedia/libvdpau/Makefile
===================================================================
RCS file: multimedia/libvdpau/Makefile
diff -N multimedia/libvdpau/Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ multimedia/libvdpau/Makefile	10 Sep 2010 13:26:18 -0000
@@ -0,0 +1,26 @@
+# New ports collection makefile for:	libvdpau
+# Date created:				8 Sep 2010
+# Whom:					Anonymous
+#
+# $FreeBSD$
+#
+
+PORTNAME=	libvdpau
+PORTVERSION=	0.4.1
+CATEGORIES=	multimedia
+MASTER_SITES=	http://people.freedesktop.org/~aplattner/vdpau/
+
+MAINTAINER=	swell.k@gmail.com
+COMMENT=	VDPAU wrapper and tracing library
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-documentation
+USE_GMAKE=	yes
+USE_XORG=	dri2proto xext
+USE_LDCONFIG=	yes
+
+post-patch:	.SILENT
+	${REINPLACE_CMD} 's|$$(libdir)/\(pkgconfig\)|$$(prefix)/libdata/\1|' \
+		${WRKSRC}/Makefile.in
+
+.include <bsd.port.mk>
Index: multimedia/libvdpau/distinfo
===================================================================
RCS file: multimedia/libvdpau/distinfo
diff -N multimedia/libvdpau/distinfo
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ multimedia/libvdpau/distinfo	10 Sep 2010 12:41:25 -0000
@@ -0,0 +1,3 @@
+MD5 (libvdpau-0.4.1.tar.gz) = 8e1f0639bea4e4a842aee93ab64406cc
+SHA256 (libvdpau-0.4.1.tar.gz) = 061b6f86c64912f79851bfefcac4f77b401e9a939dbbb7b1ec795bc7d5aaf59b
+SIZE (libvdpau-0.4.1.tar.gz) = 456607
Index: multimedia/libvdpau/pkg-descr
===================================================================
RCS file: multimedia/libvdpau/pkg-descr
diff -N multimedia/libvdpau/pkg-descr
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ multimedia/libvdpau/pkg-descr	8 Sep 2010 00:02:34 -0000
@@ -0,0 +1,5 @@
+VDPAU is the Video Decode and Presentation API for UNIX. It provides
+an interface to video decode acceleration and presentation hardware
+present in modern GPUs.
+
+WWW: http://freedesktop.org/wiki/Software/VDPAU
Index: multimedia/libvdpau/pkg-plist
===================================================================
RCS file: multimedia/libvdpau/pkg-plist
diff -N multimedia/libvdpau/pkg-plist
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ multimedia/libvdpau/pkg-plist	8 Sep 2010 01:22:40 -0000
@@ -0,0 +1,11 @@
+include/vdpau/vdpau.h
+include/vdpau/vdpau_x11.h
+lib/libvdpau.la
+lib/libvdpau.so
+lib/libvdpau.so.1
+lib/vdpau/libvdpau_trace.la
+lib/vdpau/libvdpau_trace.so
+lib/vdpau/libvdpau_trace.so.1
+libdata/pkgconfig/vdpau.pc
+@dirrm include/vdpau
+@dirrmtry lib/vdpau
--- a.diff ends here ---
Comment 5 swell.k 2010-09-10 15:12:16 UTC
You can add license stuff. But our dialog(1) sucks, it mangles `(c)'
copyright character when viewing license contents.

Same license and license file can be applied to vdpauinfo (ports/150370).

--- b.diff begins here ---
diff --git multimedia/libvdpau/Makefile multimedia/libvdpau/Makefile
index 06df051..c6569af 100644
--- multimedia/libvdpau/Makefile
+++ multimedia/libvdpau/Makefile
@@ -13,6 +13,9 @@ MASTER_SITES=	http://people.freedesktop.org/~aplattner/vdpau/
 MAINTAINER=	swell.k@gmail.com
 COMMENT=	VDPAU wrapper and tracing library
 
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-documentation
 USE_GMAKE=	yes
--- b.diff ends here ---
Comment 6 dfilter service freebsd_committer freebsd_triage 2010-09-24 20:06:06 UTC
makc        2010-09-24 19:06:00 UTC

  FreeBSD ports repository

  Added files:
    multimedia/libvdpau  Makefile distinfo pkg-descr pkg-plist 
  Log:
  Add new port multimedia/libvdpau:
  
  VDPAU is the Video Decode and Presentation API for UNIX. It provides
  an interface to video decode acceleration and presentation hardware
  present in modern GPUs.
  
  WWW:    http://freedesktop.org/wiki/Software/VDPAU
  
  PR:             ports/150368
  Submitted by:   Anonymous <swell.k at gmail.com>
  
  Revision  Changes    Path
  1.1       +29 -0     ports/multimedia/libvdpau/Makefile (new)
  1.1       +3 -0      ports/multimedia/libvdpau/distinfo (new)
  1.1       +5 -0      ports/multimedia/libvdpau/pkg-descr (new)
  1.1       +11 -0     ports/multimedia/libvdpau/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 7 Max Brazhnikov freebsd_committer freebsd_triage 2010-09-24 20:13:58 UTC
State Changed
From-To: open->closed

Committed. Thanks!