summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Kreitman <stuart.kreitman@oracle.com>2009-11-23 16:41:59 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-21 18:29:10 -0700
commit0f8d2e6b1526de1558312c1b994318867d92f245 (patch)
tree88f25375f38f806bdf47016014bf8b95e20922c7
parentbb69f00c4876d80daf0c01706bbcc52dc30302d5 (diff)
Convert to autoconf/automake
-rw-r--r--AUTHORS0
-rw-r--r--COPYING19
-rw-r--r--ChangeLog6
-rw-r--r--Makefile16
-rw-r--r--Makefile.am22
-rwxr-xr-xautogen.sh3
-rw-r--r--configure.ac35
-rw-r--r--transset.118
8 files changed, 97 insertions, 22 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..2d6ef83
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,19 @@
+Copyright © 2003 Keith Packard
+
+Permission to use, copy, modify, distribute, and sell this software and its
+documentation for any purpose is hereby granted without fee, provided that
+the above copyright notice appear in all copies and that both that
+copyright notice and this permission notice appear in supporting
+documentation, and that the name of Keith Packard not be used in
+advertising or publicity pertaining to distribution of the software without
+specific, written prior permission. Keith Packard makes no
+representations about the suitability of this software for any purpose. It
+is provided "as is" without express or implied warranty.
+
+KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
diff --git a/ChangeLog b/ChangeLog
deleted file mode 100644
index bdc48cb..0000000
--- a/ChangeLog
+++ /dev/null
@@ -1,6 +0,0 @@
-2004-01-20 Keith Packard <keithp@keithp.com>
-
- * transSet.c: (main):
- Change property name to _NET_WM_WINDOW_OPACITY
- Report values as doubles.
- Delete property when opaque.
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 99da82c..0000000
--- a/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-PACKAGES=xcomposite xfixes xdamage xrender
-LIBS=`pkg-config --libs ${PACKAGES}` -lm
-INCS=`pkg-config --cflags ${PACKAGES}`
-
-.c.o:
- $(CC) $(CFLAGS) $(INCS) -c $*.c
-
-OBJS=transSet.o dsimple.o
-
-transset: $(OBJS)
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
-
-$(OBJS): dsimple.h
-
-clean:
- rm -f $(OBJS) transset
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..e84601d
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,22 @@
+bin_PROGRAMS = transset
+man_MANS = transset.1
+
+AM_CFLAGS = $(CWARNFLAGS) $(TRANSSET_CFLAGS)
+transset_LDADD = $(TRANSSET_LIBS) -lm
+
+transset_SOURCES = transSet.c dsimple.c dsimple.h
+
+EXTRA_DIST = \
+ autogen.sh \
+ ChangeLog \
+ ${man_MANS}
+
+MAINTAINERCLEANFILES=ChangeLog
+
+.PHONY: ChangeLog
+
+ChangeLog:
+ $(CHANGELOG_CMD)
+
+dist-hook: ChangeLog
+
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..d68a142
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,3 @@
+#! /bin/sh
+autoreconf -v --install || exit 1
+./configure "$@"
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..03dfbe6
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,35 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.57)
+AC_INIT([transset], [0.9.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg])
+AC_CONFIG_SRCDIR([transSet.c])
+AM_INIT_AUTOMAKE([dist-bzip2 foreign])
+AM_MAINTAINER_MODE
+
+# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
+m4_ifndef([XORG_MACROS_VERSION],
+ [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.3)
+
+AC_CONFIG_HEADER([config.h])
+
+# Checks for programs.
+AC_PROG_CC
+XORG_DEFAULT_OPTIONS
+
+# Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS([stdlib.h sys/time.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_HEADER_TIME
+AC_STRUCT_TM
+
+# Checks for library functions.
+
+PKG_CHECK_MODULES(TRANSSET, xcomposite xfixes xdamage xrender)
+AC_SUBST(TRANSSET_CFLAGS)
+AC_SUBST(TRANSSET_LIBS)
+
+AC_OUTPUT([Makefile])
diff --git a/transset.1 b/transset.1
new file mode 100644
index 0000000..3fd8b13
--- /dev/null
+++ b/transset.1
@@ -0,0 +1,18 @@
+.ds q \N'34'
+.TH transset 1
+.SH NAME
+transset \- Set transparency on a window
+.SH SYNOPSIS
+.BI "transset [\-d " display "] n
+.SH DESCRIPTION
+.B transset
+is a simple program for X servers supporting the XFIXES, DAMAGE,
+and COMPOSITE extensions. It lets the user set the transparency on a window.
+.SH OPTIONS
+.TP
+.BI n
+Where n is a number from 0 to 1, zero being transparent and 1 being opaque
+.SH BUGS
+Probably. Please report any you find to http://bugs.freedesktop.org/.
+.SH AUTHORS
+Matthew Hawn