All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] xinput_calibrator: switch to autotools
       [not found] <hj5604g6@ger.gmane.org>
@ 2010-01-19 21:04 ` Petr Štetiar
  2010-01-19 21:21   ` Rolf Leggewie
  2010-01-20  6:56   ` Marcin Juszkiewicz
  0 siblings, 2 replies; 7+ messages in thread
From: Petr Štetiar @ 2010-01-19 21:04 UTC (permalink / raw)
  To: openembedded-devel


Signed-off-by: Petr Štetiar <ynezz@true.cz>
---
 ...01-switch-to-autotools-based-build-system.patch |  162 ++++++++++++++++++++
 .../use-proper-compiler.patch                      |   20 ---
 .../xinput-calibrator/xinput-calibrator_0.5.0.bb   |    7 +-
 3 files changed, 166 insertions(+), 23 deletions(-)
 create mode 100644 recipes/xinput-calibrator/xinput-calibrator-0.5.0/0001-switch-to-autotools-based-build-system.patch
 delete mode 100644 recipes/xinput-calibrator/xinput-calibrator-0.5.0/use-proper-compiler.patch

diff --git a/recipes/xinput-calibrator/xinput-calibrator-0.5.0/0001-switch-to-autotools-based-build-system.patch b/recipes/xinput-calibrator/xinput-calibrator-0.5.0/0001-switch-to-autotools-based-build-system.patch
new file mode 100644
index 0000000..adec403
--- /dev/null
+++ b/recipes/xinput-calibrator/xinput-calibrator-0.5.0/0001-switch-to-autotools-based-build-system.patch
@@ -0,0 +1,162 @@
+From 1a85be450fba4585c64b3178316603a5ad7dd4e6 Mon Sep 17 00:00:00 2001
+From: =?utf-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
+Date: Tue, 19 Jan 2010 18:59:52 +0100
+Subject: [PATCH] switch to autotools based build system
+MIME-Version: 1.0
+Content-Type: text/plain; charset=utf-8
+Content-Transfer-Encoding: 8bit
+
+This patch autotoolize xinput_calibrator for easier (cross)compiling.
+
+Signed-off-by: Petr Štetiar <ynezz@true.cz>
+---
+ Makefile     |   11 -----------
+ Makefile.am  |   41 +++++++++++++++++++++++++++++++++++++++++
+ autogen.sh   |   12 ++++++++++++
+ configure.ac |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
+ 4 files changed, 102 insertions(+), 11 deletions(-)
+ delete mode 100644 Makefile
+ create mode 100644 Makefile.am
+ create mode 100755 autogen.sh
+ create mode 100644 configure.ac
+
+diff --git a/Makefile b/Makefile
+deleted file mode 100644
+index c6eabed..0000000
+--- a/Makefile
++++ /dev/null
+@@ -1,11 +0,0 @@
+-all: x11 gtkmm
+-
+-x11: main_x11.cpp gui_x11.cpp
+-	g++ -Wall main_x11.cpp -lX11 -lXi -o xinput_calibrator.x11
+-	cp xinput_calibrator.x11 xinput_calibrator
+-
+-gtkmm: main_gtkmm.cpp gui_gtkmm.cpp
+-	g++ -Wall main_gtkmm.cpp `pkg-config --cflags --libs gtkmm-2.4` -o xinput_calibrator.gtkmm
+-
+-clean:
+-	rm -f xinput_calibrator xinput_calibrator.x11 xinput_calibrator.gtkmm
+diff --git a/Makefile.am b/Makefile.am
+new file mode 100644
+index 0000000..ef8f531
+--- /dev/null
++++ b/Makefile.am
+@@ -0,0 +1,41 @@
++#
++# Copyright (c) 2010 Petr Stetiar <ynezz@true.cz>
++#
++# 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 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.
++#
++
++#AM_CFLAGS = -Wall -ansi -pedantic -W -Wmissing-prototypes -Wmissing-declarations -Werror -std=gnu99
++
++if BUILD_GTKMM
++bin_PROGRAMS = xinput_calibrator_x11 xinput_calibrator_gtkmm
++xinput_calibrator_gtkmm_SOURCES = main_gtkmm.cpp
++xinput_calibrator_gtkmm_CXXFLAGS = $(GTKMM_CFLAGS)
++xinput_calibrator_gtkmm_LDADD = $(GTKMM_LIBS)
++else
++bin_PROGRAMS = xinput_calibrator_x11
++endif
++
++xinput_calibrator_x11_LDADD = $(XORG_LIBS)
++xinput_calibrator_x11_CFLAGS = $(XORG_CFLAGS)
++xinput_calibrator_x11_SOURCES = main_x11.cpp
++
++EXTRA_DIST = autogen.sh
+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..13257b4
+--- /dev/null
++++ b/configure.ac
+@@ -0,0 +1,49 @@
++#
++# Copyright (c) 2010 Petr Stetiar <ynezz@true.cz>
++#
++# 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 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.
++#
++
++AC_PREREQ([2.57])
++AC_INIT(xinput_calibrator,[0.5.0], [http://github.com/tias/xinput_calibrator])
++AM_INIT_AUTOMAKE([foreign dist-bzip2])
++AM_MAINTAINER_MODE
++
++AC_PROG_CC
++AC_PROG_CXX
++AC_PROG_INSTALL
++
++AC_ARG_ENABLE([gtkmm], AS_HELP_STRING([--enable-gtkmm], [Enable GTKMM GUI]))
++AS_IF([test "x$enable_gtkmm" = "xyes"], [
++	PKG_CHECK_MODULES(GTKMM, [gtkmm-2.4])
++	AC_SUBST(GTKMM_CFLAGS)
++	AC_SUBST(GTKMM_LIBS)
++])
++
++AM_CONDITIONAL([BUILD_GTKMM], [test "x$enable_gtkmm" = "xyes"])
++
++PKG_CHECK_MODULES(XORG, [x11 xi])
++AC_SUBST(XORG_CFLAGS)
++AC_SUBST(XORG_LIBS)
++
++AC_CONFIG_FILES(Makefile)
++AC_OUTPUT
+-- 
+1.6.0.4
+
diff --git a/recipes/xinput-calibrator/xinput-calibrator-0.5.0/use-proper-compiler.patch b/recipes/xinput-calibrator/xinput-calibrator-0.5.0/use-proper-compiler.patch
deleted file mode 100644
index a7912fb..0000000
--- a/recipes/xinput-calibrator/xinput-calibrator-0.5.0/use-proper-compiler.patch
+++ /dev/null
@@ -1,20 +0,0 @@
----
- Makefile |    4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
---- git.orig/Makefile
-+++ git/Makefile
-@@ -1,11 +1,11 @@
- all: x11 gtkmm
- 
- x11: main_x11.cpp gui_x11.cpp
--	g++ -Wall main_x11.cpp -lX11 -lXi -o xinput_calibrator.x11
-+	$(CXX) $(CFLAGS) $(LDFLAGS) -Wall main_x11.cpp -lX11 -lXi -o xinput_calibrator.x11
- 	cp xinput_calibrator.x11 xinput_calibrator
- 
- gtkmm: main_gtkmm.cpp gui_gtkmm.cpp
--	g++ -Wall main_gtkmm.cpp `pkg-config --cflags --libs gtkmm-2.4` -o xinput_calibrator.gtkmm
-+	$(CXX) $(CFLAGS) $(LDFLAGS) -Wall main_gtkmm.cpp `pkg-config --cflags --libs gtkmm-2.4` -o xinput_calibrator.gtkmm
- 
- clean:
- 	rm -f xinput_calibrator xinput_calibrator.x11 xinput_calibrator.gtkmm
diff --git a/recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb b/recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb
index 59a2856..2d69247 100644
--- a/recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb
+++ b/recipes/xinput-calibrator/xinput-calibrator_0.5.0.bb
@@ -2,12 +2,13 @@ DEPENDS = "virtual/libx11 libxi"
 
 SRCREV  = "6af268f1b435f7bdd83335092ddc684054df2110"
 SRC_URI = "git://github.com/tias/xinput_calibrator.git;protocol=git \
-           file://use-proper-compiler.patch;patch=1"
+           file://0001-switch-to-autotools-based-build-system.patch;patch=1"
 
+PR = "r1"
+inherit autotools
 S = "${WORKDIR}/git/"
-EXTRA_OEMAKE = "x11"
 
 do_install() {
 	install -d ${D}${bindir}
-	install -m 0755 xinput_calibrator ${D}${bindir}
+	install -m 0755 xinput_calibrator_x11 ${D}${bindir}/xinput_calibrator
 }
-- 
1.6.0.4




^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] xinput_calibrator: switch to autotools
  2010-01-19 21:04 ` [PATCH v2] xinput_calibrator: switch to autotools Petr Štetiar
@ 2010-01-19 21:21   ` Rolf Leggewie
  2010-01-20  6:56   ` Marcin Juszkiewicz
  1 sibling, 0 replies; 7+ messages in thread
From: Rolf Leggewie @ 2010-01-19 21:21 UTC (permalink / raw)
  To: openembedded-devel

Petr Štetiar wrote:
> Signed-off-by: Petr Štetiar <ynezz@true.cz>
> ---
>  ...01-switch-to-autotools-based-build-system.patch |  162 ++++++++++++++++++++
>  .../use-proper-compiler.patch                      |   20 ---
>  .../xinput-calibrator/xinput-calibrator_0.5.0.bb   |    7 +-
>  3 files changed, 166 insertions(+), 23 deletions(-)
>  create mode 100644 recipes/xinput-calibrator/xinput-calibrator-0.5.0/0001-switch-to-autotools-based-build-system.patch
>  delete mode 100644 recipes/xinput-calibrator/xinput-calibrator-0.5.0/use-proper-compiler.patch

please actually test your patches next time




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] xinput_calibrator: switch to autotools
  2010-01-19 21:04 ` [PATCH v2] xinput_calibrator: switch to autotools Petr Štetiar
  2010-01-19 21:21   ` Rolf Leggewie
@ 2010-01-20  6:56   ` Marcin Juszkiewicz
  2010-01-20  8:02     ` Petr Štetiar
  2010-01-20  8:08     ` Marco Cavallini
  1 sibling, 2 replies; 7+ messages in thread
From: Marcin Juszkiewicz @ 2010-01-20  6:56 UTC (permalink / raw)
  To: openembedded-devel

Dnia wtorek, 19 stycznia 2010 o 22:04:33 Petr Štetiar napisał(a):
> Signed-off-by: Petr Štetiar <ynezz@true.cz>

imported, build tested, acked, pushed

Thanks Petr for this patch.

Regards, 
-- 
JID:      hrw@jabber.org
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] xinput_calibrator: switch to autotools
  2010-01-20  6:56   ` Marcin Juszkiewicz
@ 2010-01-20  8:02     ` Petr Štetiar
  2010-01-20  8:08     ` Marco Cavallini
  1 sibling, 0 replies; 7+ messages in thread
From: Petr Štetiar @ 2010-01-20  8:02 UTC (permalink / raw)
  To: openembedded-devel

Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> [2010-01-20 07:56:01]:

> Dnia wtorek, 19 stycznia 2010 o 22:04:33 Petr Štetiar napisał(a):
> > Signed-off-by: Petr Štetiar <ynezz@true.cz>
> 
> imported, build tested, acked, pushed

Thanks.

Now it builds and packages only X11 frontend and I see no reason to
build/package gtkmm frontend if they're almost the same. Well gtkmm one drags
in gtkmm dependency. Or do you think, that we need both frontends packaged?

-- ynezz



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] xinput_calibrator: switch to autotools
  2010-01-20  6:56   ` Marcin Juszkiewicz
  2010-01-20  8:02     ` Petr Štetiar
@ 2010-01-20  8:08     ` Marco Cavallini
  2010-01-20  8:28       ` Petr Štetiar
  2010-01-20 10:35       ` Marcin Juszkiewicz
  1 sibling, 2 replies; 7+ messages in thread
From: Marco Cavallini @ 2010-01-20  8:08 UTC (permalink / raw)
  To: openembedded-devel

Marcin Juszkiewicz ha scritto, Il 20/01/2010 07:56:

> imported, build tested, acked, pushed
> 

are you sure it was pushed?



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] xinput_calibrator: switch to autotools
  2010-01-20  8:08     ` Marco Cavallini
@ 2010-01-20  8:28       ` Petr Štetiar
  2010-01-20 10:35       ` Marcin Juszkiewicz
  1 sibling, 0 replies; 7+ messages in thread
From: Petr Štetiar @ 2010-01-20  8:28 UTC (permalink / raw)
  To: openembedded-devel

Marco Cavallini <koansoftware@gmail.com> [2010-01-20 09:08:21]:

> Marcin Juszkiewicz ha scritto, Il 20/01/2010 07:56:
> 
> > imported, build tested, acked, pushed
> 
> are you sure it was pushed?

Indeed, but in the temp[1] branch :-)

1. http://lists.linuxtogo.org/pipermail/openembedded-commits/2010-January/041115.html

-- ynezz



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] xinput_calibrator: switch to autotools
  2010-01-20  8:08     ` Marco Cavallini
  2010-01-20  8:28       ` Petr Štetiar
@ 2010-01-20 10:35       ` Marcin Juszkiewicz
  1 sibling, 0 replies; 7+ messages in thread
From: Marcin Juszkiewicz @ 2010-01-20 10:35 UTC (permalink / raw)
  To: openembedded-devel

Dnia środa, 20 stycznia 2010 o 09:08:21 Marco Cavallini napisał(a):
> Marcin Juszkiewicz ha scritto, Il 20/01/2010 07:56:
> > imported, build tested, acked, pushed
> 
> are you sure it was pushed?

Now they are in .dev - sorry.

Regards, 
-- 
JID:      hrw@jabber.org
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-01-20 10:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <hj5604g6@ger.gmane.org>
2010-01-19 21:04 ` [PATCH v2] xinput_calibrator: switch to autotools Petr Štetiar
2010-01-19 21:21   ` Rolf Leggewie
2010-01-20  6:56   ` Marcin Juszkiewicz
2010-01-20  8:02     ` Petr Štetiar
2010-01-20  8:08     ` Marco Cavallini
2010-01-20  8:28       ` Petr Štetiar
2010-01-20 10:35       ` Marcin Juszkiewicz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.