1 ################################################################################
5 ################################################################################
7 LIBSEMANAGE_VERSION
= 2.6
8 LIBSEMANAGE_SITE
= https
://raw.githubusercontent.com
/wiki
/SELinuxProject
/selinux
/files
/releases
/20161014
9 LIBSEMANAGE_LICENSE
= LGPLv2.1
+
10 LIBSEMANAGE_LICENSE_FILES
= COPYING
11 LIBSEMANAGE_DEPENDENCIES
= host-bison host-flex audit libselinux ustr bzip2
12 LIBSEMANAGE_INSTALL_STAGING
= YES
14 LIBSEMANAGE_MAKE_OPTS
= $(TARGET_CONFIGURE_OPTS
)
16 define LIBSEMANAGE_BUILD_CMDS
17 # DESTDIR is needed during the compile to compute library and
19 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(LIBSEMANAGE_MAKE_OPTS
) DESTDIR
=$(STAGING_DIR
) all
22 define LIBSEMANAGE_INSTALL_STAGING_CMDS
23 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(LIBSEMANAGE_MAKE_OPTS
) DESTDIR
=$(STAGING_DIR
) install
26 define LIBSEMANAGE_INSTALL_TARGET_CMDS
27 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(LIBSEMANAGE_MAKE_OPTS
) DESTDIR
=$(TARGET_DIR
) install
30 HOST_LIBSEMANAGE_DEPENDENCIES
= host-bison host-audit host-libsepol host-libselinux \
31 host-ustr host-bzip2 host-swig
32 HOST_LIBSEMANAGE_MAKE_OPTS
+= $(HOST_CONFIGURE_OPTS
) \
33 SWIG_LIB
="$(HOST_DIR)/usr/share/swig/$(SWIG_VERSION)/"
35 ifeq ($(BR2_PACKAGE_PYTHON3
),y
)
36 HOST_LIBSEMANAGE_DEPENDENCIES
+= host-python3
37 HOST_LIBSEMANAGE_MAKE_OPTS
+= \
38 PYINC
="-I$(HOST_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)m/" \
39 PYTHONLIBDIR
="-L$(HOST_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/" \
40 PYLIBVER
="python$(PYTHON3_VERSION_MAJOR)"
42 HOST_LIBSEMANAGE_DEPENDENCIES
+= host-python
43 HOST_LIBSEMANAGE_MAKE_OPTS
+= \
44 PYINC
="-I$(HOST_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)/" \
45 PYTHONLIBDIR
="-L$(HOST_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/" \
46 PYLIBVER
="python$(PYTHON_VERSION_MAJOR)"
49 define HOST_LIBSEMANAGE_BUILD_CMDS
50 # DESTDIR is needed during the compile to compute library and
52 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(HOST_CONFIGURE_OPTS
) DESTDIR
=$(HOST_DIR
) all
53 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(HOST_LIBSEMANAGE_MAKE_OPTS
) DESTDIR
=$(HOST_DIR
) swigify pywrap
56 define HOST_LIBSEMANAGE_INSTALL_CMDS
57 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(HOST_CONFIGURE_OPTS
) DESTDIR
=$(HOST_DIR
) install
58 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(HOST_LIBSEMANAGE_MAKE_OPTS
) DESTDIR
=$(HOST_DIR
) install-pywrap
61 $(eval
$(generic-package
))
62 $(eval
$(host-generic-package
))