diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2009-01-13 16:58:45 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2009-01-13 23:56:08 -0800 |
commit | ae7d5d2425137cd3e7da338a80bdcad3f50f4ce7 (patch) | |
tree | 23beeb1fe8ea5e7ea87f01acf617d6e934dff0eb | |
parent | b11a35a13b478615d60fe1908665b8f4349aa780 (diff) |
Add autoconf stuff.
-rw-r--r-- | AUTHORS | 0 | ||||
-rw-r--r-- | COPYING | 19 | ||||
-rw-r--r-- | INSTALL | 0 | ||||
-rw-r--r-- | Makefile.am | 13 | ||||
-rw-r--r-- | NEWS | 0 | ||||
-rw-r--r-- | README | 0 | ||||
-rwxr-xr-x | autogen.sh | 12 | ||||
-rw-r--r-- | configure.ac | 22 | ||||
-rw-r--r-- | src/Makefile.am | 15 | ||||
-rw-r--r-- | trace/Makefile.am | 15 | ||||
-rw-r--r-- | vdpau.pc.in | 11 |
11 files changed, 107 insertions, 0 deletions
@@ -0,0 +1,19 @@ +Copyright (c) 2008 NVIDIA, Corporation + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice (including the next +paragraph) shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..57b2a86 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,13 @@ +SUBDIRS = src trace + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = vdpau.pc + +EXTRA_DIST = vdpau.pc.in autogen.sh ChangeLog + +.PHONY: ChangeLog + +ChangeLog: + (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) + +dist-hook: ChangeLog diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..904cd67 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +autoreconf -v --install || exit 1 +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..7aaa596 --- /dev/null +++ b/configure.ac @@ -0,0 +1,22 @@ +AC_PREREQ(2.57) + +AC_INIT(libvdpau, 0.1, [xorg@lists.freedesktop.org], libvdpau) +AM_INIT_AUTOMAKE([dist-bzip2 foreign]) +AM_MAINTAINER_MODE + +AM_CONFIG_HEADER(config.h) + +# Check for programs. +AC_PROG_CC +AC_PROG_CXX +AC_PROG_LIBTOOL + +# Checks for dependencies. +PKG_CHECK_MODULES(X11, x11) +AC_SUBST(X11_CFLAGS) +AC_SUBST(X11_LIBS) + +AC_OUTPUT([Makefile + src/Makefile + trace/Makefile + vdpau.pc]) diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..b857fd3 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,15 @@ +AM_CFLAGS = \ + -I$(top_srcdir)/include \ + $(X11_CFLAGS) + +lib_LTLIBRARIES = libvdpau.la + +libvdpau_la_SOURCES = \ + vdpau_wrapper.c + +libvdpau_la_LDFLAGS = -version-info 1:0:0 -no-undefined + +libvdpauincludedir = $(includedir)/vdpau +libvdpauinclude_HEADERS = \ + $(top_srcdir)/include/vdpau/vdpau.h \ + $(top_srcdir)/include/vdpau/vdpau_x11.h diff --git a/trace/Makefile.am b/trace/Makefile.am new file mode 100644 index 0000000..06d4518 --- /dev/null +++ b/trace/Makefile.am @@ -0,0 +1,15 @@ +AM_CXXFLAGS = \ + -I$(top_srcdir)/include \ + $(X11_CFLAGS) + +lib_LTLIBRARIES = libvdpau_trace.la + +libvdpau_trace_la_SOURCES = \ + vdpau_trace.cpp + +libvdpau_trace_la_LDFLAGS = -version-info 1:0:0 -no-undefined + +libvdpau_traceincludedir = $(includedir)/vdpau +libvdpau_traceinclude_HEADERS = \ + $(top_srcdir)/include/vdpau/vdpau.h \ + $(top_srcdir)/include/vdpau/vdpau_x11.h diff --git a/vdpau.pc.in b/vdpau.pc.in new file mode 100644 index 0000000..1ebf57f --- /dev/null +++ b/vdpau.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: VDPAU +Description: The Video Decode and Presentation API for UNIX +Version: @PACKAGE_VERSION@ +Requires.private: x11 +Cflags: -I${includedir} +Libs: -L${libdir} -lvdpau |