aboutsummaryrefslogtreecommitdiff
path: root/package/libplist/libplist.mk
diff options
context:
space:
mode:
authorGravatar Samuel Martin <s.martin49@gmail.com>2014-10-05 11:40:07 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-10-05 14:06:59 +0200
commitc5fb6e17235a1ea47af7e85e640fb34a886aeb95 (patch)
treecfa31294052c8835532607e1debbc259bdc76e7d /package/libplist/libplist.mk
parent8e07296cb9947b18cf24ec980f313d1606485da0 (diff)
downloadbuildroot-c5fb6e17235a1ea47af7e85e640fb34a886aeb95.tar.gz
buildroot-c5fb6e17235a1ea47af7e85e640fb34a886aeb95.tar.bz2
package/libplist: fix python support
This patch: - fixes the python3 support detection in the libplist CMake code; - correctly sets the dependencies and configure options in libplist.mk. Fixes: http://autobuild.buildroot.net/results/efb/efba806b9a40a5e9c6bca7e591747ca2102fa1d5/ Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libplist/libplist.mk')
-rw-r--r--package/libplist/libplist.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/libplist/libplist.mk b/package/libplist/libplist.mk
index 87f09c6563..1e44ffff12 100644
--- a/package/libplist/libplist.mk
+++ b/package/libplist/libplist.mk
@@ -12,4 +12,17 @@ LIBPLIST_MAKE = $(MAKE1)
LIBPLIST_LICENSE = LGPLv2.1+
LIBPLIST_LICENSE_FILES = COPYING
+ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
+LIBPLIST_DEPENDENCIES += \
+ python$(if $(BR2_PACKAGE_PYTHON3),3) \
+ host-swig
+LIBPLIST_CONF_OPTS += \
+ -DENABLE_PYTHON=ON \
+ -DSWIG_EXECUTABLE=$(SWIG)
+else
+LIBPLIST_CONF_OPTS += \
+ -DENABLE_PYTHON=OFF \
+ -DSWIG_EXECUTABLE=SWIG_EXECUTABLE-NOTFOUND
+endif
+
$(eval $(cmake-package))