summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2009-01-13 16:58:45 -0800
committerAaron Plattner <aplattner@nvidia.com>2009-01-13 23:56:08 -0800
commitae7d5d2425137cd3e7da338a80bdcad3f50f4ce7 (patch)
tree23beeb1fe8ea5e7ea87f01acf617d6e934dff0eb
parentb11a35a13b478615d60fe1908665b8f4349aa780 (diff)
Add autoconf stuff.
-rw-r--r--AUTHORS0
-rw-r--r--COPYING19
-rw-r--r--INSTALL0
-rw-r--r--Makefile.am13
-rw-r--r--NEWS0
-rw-r--r--README0
-rwxr-xr-xautogen.sh12
-rw-r--r--configure.ac22
-rw-r--r--src/Makefile.am15
-rw-r--r--trace/Makefile.am15
-rw-r--r--vdpau.pc.in11
11 files changed, 107 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/AUTHORS
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..4e45611
--- /dev/null
+++ b/COPYING
@@ -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/INSTALL b/INSTALL
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/INSTALL
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/NEWS b/NEWS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/NEWS
diff --git a/README b/README
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/README
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