package/libplist: fix python support
[buildroot-gz.git] / package / libplist / libplist.mk
blob1e44ffff123612f8d8ade90e6949350f3f0a16ce
1 ################################################################################
3 # libplist
5 ################################################################################
7 LIBPLIST_VERSION = 1.6
8 LIBPLIST_SITE = http://cgit.sukimashita.com/libplist.git/snapshot
9 LIBPLIST_DEPENDENCIES = libxml2
10 LIBPLIST_INSTALL_STAGING = YES
11 LIBPLIST_MAKE = $(MAKE1)
12 LIBPLIST_LICENSE = LGPLv2.1+
13 LIBPLIST_LICENSE_FILES = COPYING
15 ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
16 LIBPLIST_DEPENDENCIES += \
17 python$(if $(BR2_PACKAGE_PYTHON3),3) \
18 host-swig
19 LIBPLIST_CONF_OPTS += \
20 -DENABLE_PYTHON=ON \
21 -DSWIG_EXECUTABLE=$(SWIG)
22 else
23 LIBPLIST_CONF_OPTS += \
24 -DENABLE_PYTHON=OFF \
25 -DSWIG_EXECUTABLE=SWIG_EXECUTABLE-NOTFOUND
26 endif
28 $(eval $(cmake-package))