A generic touchscreen calibration program for X.Org
修訂 | 754d23d7b043b2d3a5b70f9a15c3054296b7892a (tree) |
---|---|
時間 | 2010-01-20 03:10:37 |
作者 | Petr Štetiar <ynezz@true...> |
Commiter | Petr Štetiar |
switch to autotools based build system
This patch autotoolize xinput_calibrator for easier (cross)compiling.
@@ -1,11 +0,0 @@ | ||
1 | -all: x11 gtkmm | |
2 | - | |
3 | -x11: main_x11.cpp gui_x11.cpp | |
4 | - g++ -Wall main_x11.cpp -lX11 -lXi -o xinput_calibrator.x11 | |
5 | - cp xinput_calibrator.x11 xinput_calibrator | |
6 | - | |
7 | -gtkmm: main_gtkmm.cpp gui_gtkmm.cpp | |
8 | - g++ -Wall main_gtkmm.cpp `pkg-config --cflags --libs gtkmm-2.4` -o xinput_calibrator.gtkmm | |
9 | - | |
10 | -clean: | |
11 | - rm -f xinput_calibrator xinput_calibrator.x11 xinput_calibrator.gtkmm |
@@ -0,0 +1,41 @@ | ||
1 | +# | |
2 | +# Copyright (c) 2010 Petr Stetiar <ynezz@true.cz> | |
3 | +# | |
4 | +# Permission is hereby granted, free of charge, to any person | |
5 | +# obtaining a copy of this software and associated documentation | |
6 | +# files (the "Software"), to deal in the Software without | |
7 | +# restriction, including without limitation the rights to use, | |
8 | +# copy, modify, merge, publish, distribute, sublicense, and/or sell | |
9 | +# copies of the Software, and to permit persons to whom the | |
10 | +# Software is furnished to do so, subject to the following | |
11 | +# conditions: | |
12 | +# | |
13 | +# The above copyright notice and this permission notice shall be | |
14 | +# included in all copies or substantial portions of the Software. | |
15 | +# | |
16 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
17 | +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
18 | +# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
19 | +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
20 | +# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
21 | +# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
22 | +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
23 | +# OTHER DEALINGS IN THE SOFTWARE. | |
24 | +# | |
25 | + | |
26 | +#AM_CFLAGS = -Wall -ansi -pedantic -W -Wmissing-prototypes -Wmissing-declarations -Werror -std=gnu99 | |
27 | + | |
28 | +if BUILD_GTKMM | |
29 | +bin_PROGRAMS = xinput_calibrator_x11 xinput_calibrator_gtkmm | |
30 | +xinput_calibrator_gtkmm_SOURCES = main_gtkmm.cpp | |
31 | +xinput_calibrator_gtkmm_CXXFLAGS = $(GTKMM_CFLAGS) | |
32 | +xinput_calibrator_gtkmm_LDADD = $(GTKMM_LIBS) | |
33 | +else | |
34 | +bin_PROGRAMS = xinput_calibrator_x11 | |
35 | +endif | |
36 | + | |
37 | +xinput_calibrator_x11_LDADD = $(XORG_LIBS) | |
38 | +xinput_calibrator_x11_CFLAGS = $(XORG_CFLAGS) | |
39 | +xinput_calibrator_x11_SOURCES = main_x11.cpp | |
40 | + | |
41 | +EXTRA_DIST = autogen.sh |
@@ -0,0 +1,12 @@ | ||
1 | +#! /bin/sh | |
2 | + | |
3 | +srcdir=`dirname $0` | |
4 | +test -z "$srcdir" && srcdir=. | |
5 | + | |
6 | +ORIGDIR=`pwd` | |
7 | +cd $srcdir | |
8 | + | |
9 | +autoreconf -v --install || exit 1 | |
10 | +cd $ORIGDIR || exit $? | |
11 | + | |
12 | +$srcdir/configure --enable-maintainer-mode "$@" |
@@ -0,0 +1,49 @@ | ||
1 | +# | |
2 | +# Copyright (c) 2010 Petr Stetiar <ynezz@true.cz> | |
3 | +# | |
4 | +# Permission is hereby granted, free of charge, to any person | |
5 | +# obtaining a copy of this software and associated documentation | |
6 | +# files (the "Software"), to deal in the Software without | |
7 | +# restriction, including without limitation the rights to use, | |
8 | +# copy, modify, merge, publish, distribute, sublicense, and/or sell | |
9 | +# copies of the Software, and to permit persons to whom the | |
10 | +# Software is furnished to do so, subject to the following | |
11 | +# conditions: | |
12 | +# | |
13 | +# The above copyright notice and this permission notice shall be | |
14 | +# included in all copies or substantial portions of the Software. | |
15 | +# | |
16 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
17 | +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
18 | +# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
19 | +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
20 | +# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
21 | +# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
22 | +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
23 | +# OTHER DEALINGS IN THE SOFTWARE. | |
24 | +# | |
25 | + | |
26 | +AC_PREREQ([2.57]) | |
27 | +AC_INIT(xinput_calibrator,[0.5.0], [http://github.com/tias/xinput_calibrator]) | |
28 | +AM_INIT_AUTOMAKE([foreign dist-bzip2]) | |
29 | +AM_MAINTAINER_MODE | |
30 | + | |
31 | +AC_PROG_CC | |
32 | +AC_PROG_CXX | |
33 | +AC_PROG_INSTALL | |
34 | + | |
35 | +AC_ARG_ENABLE([gtkmm], AS_HELP_STRING([--enable-gtkmm], [Enable GTKMM GUI])) | |
36 | +AS_IF([test "x$enable_gtkmm" = "xyes"], [ | |
37 | + PKG_CHECK_MODULES(GTKMM, [gtkmm-2.4]) | |
38 | + AC_SUBST(GTKMM_CFLAGS) | |
39 | + AC_SUBST(GTKMM_LIBS) | |
40 | +]) | |
41 | + | |
42 | +AM_CONDITIONAL([BUILD_GTKMM], [test "x$enable_gtkmm" = "xyes"]) | |
43 | + | |
44 | +PKG_CHECK_MODULES(XORG, [x11 xi]) | |
45 | +AC_SUBST(XORG_CFLAGS) | |
46 | +AC_SUBST(XORG_LIBS) | |
47 | + | |
48 | +AC_CONFIG_FILES(Makefile) | |
49 | +AC_OUTPUT |