From ae7d5d2425137cd3e7da338a80bdcad3f50f4ce7 Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Tue, 13 Jan 2009 16:58:45 -0800 Subject: Add autoconf stuff. --- AUTHORS | 0 COPYING | 19 +++++++++++++++++++ INSTALL | 0 Makefile.am | 13 +++++++++++++ NEWS | 0 README | 0 autogen.sh | 12 ++++++++++++ configure.ac | 22 ++++++++++++++++++++++ src/Makefile.am | 15 +++++++++++++++ trace/Makefile.am | 15 +++++++++++++++ vdpau.pc.in | 11 +++++++++++ 11 files changed, 107 insertions(+) create mode 100644 AUTHORS create mode 100644 COPYING create mode 100644 INSTALL create mode 100644 Makefile.am create mode 100644 NEWS create mode 100644 README create mode 100755 autogen.sh create mode 100644 configure.ac create mode 100644 src/Makefile.am create mode 100644 trace/Makefile.am create mode 100644 vdpau.pc.in diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..e69de29 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 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 diff --git a/README b/README new file mode 100644 index 0000000..e69de29 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 -- cgit v1.2.3