Skip to content

Commit

Permalink
Add autotools installation files
Browse files Browse the repository at this point in the history
Currently installs unstable protocols under an unstable/ subdirectory
in $prefix/share/wayland-protocols/.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
  • Loading branch information
jadahl committed Oct 9, 2015
1 parent a24f0ff commit f548e99
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore
@@ -0,0 +1,11 @@
Makefile
Makefile.in
configure
config.log
config.status
compile
install-sh
missing
*.pc
autom4te.cache
aclocal.m4
29 changes: 29 additions & 0 deletions COPYING
@@ -0,0 +1,29 @@
Copyright © 2008-2012 Kristian Høgsberg
Copyright © 2010-2012 Intel Corporation
Copyright © 2011 Benjamin Franzke
Copyright © 2012 Collabora, Ltd.

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.

---

The above is the version of the MIT "Expat" License used by X.org:

http://cgit.freedesktop.org/xorg/xserver/tree/COPYING
6 changes: 6 additions & 0 deletions Makefile.am
@@ -0,0 +1,6 @@
nobase_dist_pkgdata_DATA = \
unstable/pointer-gestures/pointer-gestures-unstable-v1.xml \
$(NULL)

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = wayland-protocols.pc
9 changes: 9 additions & 0 deletions autogen.sh
@@ -0,0 +1,9 @@
#!/bin/sh

test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
(
cd "$srcdir" &&
autoreconf --force -v --install
) || exit
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
34 changes: 34 additions & 0 deletions configure.ac
@@ -0,0 +1,34 @@
AC_PREREQ([2.64])

m4_define([wayland_protocols_major_version], [0])
m4_define([wayland_protocols_minor_version], [1])
m4_define([wayland_protocols_micro_version], [0])
m4_define([wayland_protocols_version],
[wayland_protocols_major_version.wayland_protocols_minor_version.wayland_protocols_micro_version])

AC_INIT([wayland-protocols],
[wayland_protocols_version],
[https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=protocols&version=wayland-protocols_version],
[wayland-protocols],
[http://wayland.freedesktop.org/])

AC_SUBST([WAYLAND_PROTOCOLS_VERSION_MAJOR], [wayland_protocols_major_version])
AC_SUBST([WAYLAND_PROTOCOLS_VERSION_MINOR], [wayland_protocols_minor_version])
AC_SUBST([WAYLAND_PROTOCOLS_VERSION_MICRO], [wayland_protocols_micro_version])
AC_SUBST([WAYLAND_PROTOCOLS_VERSION], [wayland_protocols_version])

AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])

AM_SILENT_RULES([yes])

PKG_PROG_PKG_CONFIG()

AC_CONFIG_FILES([
Makefile
wayland-protocols.pc
])
AC_OUTPUT

AC_MSG_RESULT([
Prefix ${prefix}
])
7 changes: 7 additions & 0 deletions wayland-protocols.pc.in
@@ -0,0 +1,7 @@
prefix=@prefix@
datarootdir=@datarootdir@
pkgdatadir=@datadir@/@PACKAGE@

Name: Wayland Protocols
Description: Wayland protocol files
Version: @WAYLAND_PROTOCOLS_VERSION@

0 comments on commit f548e99

Please sign in to comment.