From patchwork Mon Apr 28 19:00:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 343511 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 692F11400BB for ; Tue, 29 Apr 2014 05:00:54 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1EB208B919; Mon, 28 Apr 2014 19:00:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EHfV4nHFwPB1; Mon, 28 Apr 2014 19:00:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id DADAE8B8FD; Mon, 28 Apr 2014 19:00:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 53FAF1CEA2F for ; Mon, 28 Apr 2014 19:00:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 505DB85634 for ; Mon, 28 Apr 2014 19:00:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hxKS35HgFwae for ; Mon, 28 Apr 2014 19:00:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by whitealder.osuosl.org (Postfix) with ESMTPS id 795018BB50 for ; Mon, 28 Apr 2014 19:00:40 +0000 (UTC) Received: from linux.local ([92.75.75.64]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Lxxw4-1Wzew31DW8-015JOu; Mon, 28 Apr 2014 21:00:35 +0200 From: Peter Seiderer To: buildroot@busybox.net Date: Mon, 28 Apr 2014 21:00:31 +0200 Message-Id: <1398711632-5831-4-git-send-email-ps.report@gmx.net> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1398711632-5831-1-git-send-email-ps.report@gmx.net> References: <1398711632-5831-1-git-send-email-ps.report@gmx.net> X-Provags-ID: V03:K0:vkj/Tn0RZewZsMnCCOB2wOWgPa58w5sAofjNDVFcv2cvFFra7Ll 4n4O5XLoN9yrizyW6qrsmw+wSTQyyqgpunNCok0MtiZ7BHN5CZh4/LdaZmWHj58PazGG1tG RwtWZmyAfKOAEwc6q4+aVq1IFEuOQsBSOJrQY60vgqQG8HdPnH2xvSRcaYQxVnxyZMI9J56 e9yXY+HCdKwdcmNnkTBVA== Cc: Peter Korsgaard Subject: [Buildroot] [PATCH 3/4] evemu: build python2 binding only if target python2 is enabled X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Peter Seiderer --- ...gure.ac-add-disable-python-binding-option.patch | 46 ++++++++++++++++++++++ package/evemu/evemu.mk | 8 ++++ 2 files changed, 54 insertions(+) create mode 100644 package/evemu/evemu-0006-configure.ac-add-disable-python-binding-option.patch diff --git a/package/evemu/evemu-0006-configure.ac-add-disable-python-binding-option.patch b/package/evemu/evemu-0006-configure.ac-add-disable-python-binding-option.patch new file mode 100644 index 0000000..f100b2e --- /dev/null +++ b/package/evemu/evemu-0006-configure.ac-add-disable-python-binding-option.patch @@ -0,0 +1,46 @@ +From 44f42cfa6b58a256d3b89bce1043b0efed7eeaeb Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Sun, 27 Apr 2014 13:23:41 +0200 +Subject: [PATCH 6/8] configure.ac: add '--disable-python-binding' option + +Signed-off-by: Peter Seiderer +--- + Makefile.am | 2 +- + configure.ac | 11 +++++++++++ + 2 files changed, 12 insertions(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index a83b35f..446ec4c 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,4 +1,4 @@ +-SUBDIRS = src tools python $(SUBDIR_TESTS) ++SUBDIRS = src tools $(SUBDIR_PYTHON_BINDING) $(SUBDIR_TESTS) + + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = evemu.pc +diff --git a/configure.ac b/configure.ac +index 4e0c3b8..bb49bbc 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -52,6 +52,17 @@ AS_IF([test "x$enable_tests" != "xno"], [ + + AC_SUBST([SUBDIR_TESTS]) + ++AC_ARG_ENABLE([python-binding], ++ AS_HELP_STRING([--disable-python-binding], ++ [Disable generation of python binding])) ++ ++AS_IF([test "x$enable_python_binding" != "xno"], [ ++ SUBDIR_PYTHON_BINDING=python ++]) ++ ++AC_SUBST([SUBDIR_PYTHON_BINDING]) ++ ++ + AC_SUBST(AM_CFLAGS, + "-Wall -Wextra -pedantic") + +-- +1.8.1.4 + diff --git a/package/evemu/evemu.mk b/package/evemu/evemu.mk index 07ad6f6..44b8b89 100644 --- a/package/evemu/evemu.mk +++ b/package/evemu/evemu.mk @@ -27,6 +27,14 @@ EVEMU_DEPENDENCIES = host-pkgconf libevdev # Needs Python for header file generation EVEMU_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python) +# Check for target python (python3 binding disabled because +# of build/byte-compile problems) +ifeq ($(BR2_PACKAGE_PYTHON),y) + EVEMU_DEPENDENCIES += python +else + EVEMU_CONF_OPT += --disable-python-binding +endif + # package source code coming from git, so it doesn't have generated # configure and Makefile.in EVEMU_AUTORECONF = YES