2013-09-11 23:59:21 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libsepol
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-01-04 23:02:40 +01:00
|
|
|
LIBSEPOL_VERSION = 3.3
|
2021-05-20 19:46:39 +02:00
|
|
|
LIBSEPOL_SITE = https://github.com/SELinuxProject/selinux/releases/download/$(LIBSEPOL_VERSION)
|
2017-03-30 15:43:34 +02:00
|
|
|
LIBSEPOL_LICENSE = LGPL-2.1+
|
2013-09-11 23:59:21 +02:00
|
|
|
LIBSEPOL_LICENSE_FILES = COPYING
|
2020-12-04 16:46:01 +01:00
|
|
|
LIBSEPOL_CPE_ID_VENDOR = selinuxproject
|
2013-09-11 23:59:21 +02:00
|
|
|
|
|
|
|
LIBSEPOL_INSTALL_STAGING = YES
|
2016-07-02 00:24:55 +02:00
|
|
|
LIBSEPOL_DEPENDENCIES = host-flex
|
2019-12-18 21:39:07 +01:00
|
|
|
HOST_LIBSEPOL_DEPENDENCIES = $(BR2_COREUTILS_HOST_DEPENDENCY) host-flex
|
2013-09-11 23:59:21 +02:00
|
|
|
|
2014-02-20 22:42:36 +01:00
|
|
|
LIBSEPOL_MAKE_FLAGS = $(TARGET_CONFIGURE_OPTS)
|
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2014-02-20 22:42:36 +01:00
|
|
|
LIBSEPOL_MAKE_FLAGS += STATIC=1
|
|
|
|
endif
|
|
|
|
|
2013-09-11 23:59:21 +02:00
|
|
|
define LIBSEPOL_BUILD_CMDS
|
2018-01-16 09:22:18 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSEPOL_MAKE_FLAGS)
|
2013-09-11 23:59:21 +02:00
|
|
|
endef
|
|
|
|
|
2018-10-11 21:37:01 +02:00
|
|
|
# Set SHLIBDIR to /usr/lib so it has the same value than LIBDIR, as a result
|
|
|
|
# we won't have to use a relative path in 0002-revert-ln-relative.patch
|
2013-09-11 23:59:21 +02:00
|
|
|
define LIBSEPOL_INSTALL_STAGING_CMDS
|
2018-10-11 21:37:01 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install $(LIBSEPOL_MAKE_FLAGS) \
|
|
|
|
DESTDIR=$(STAGING_DIR) SHLIBDIR=/usr/lib
|
2013-09-11 23:59:21 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBSEPOL_INSTALL_TARGET_CMDS
|
2018-10-11 21:37:01 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install $(LIBSEPOL_MAKE_FLAGS) \
|
|
|
|
DESTDIR=$(TARGET_DIR) SHLIBDIR=/usr/lib
|
2013-09-11 23:59:21 +02:00
|
|
|
endef
|
|
|
|
|
2017-07-03 14:44:56 +02:00
|
|
|
HOST_LIBSEPOL_MAKE_ENV = \
|
|
|
|
$(HOST_MAKE_ENV) \
|
2018-10-11 21:37:01 +02:00
|
|
|
PREFIX=$(HOST_DIR) \
|
|
|
|
SHLIBDIR=$(HOST_DIR)/lib
|
2017-07-03 14:44:56 +02:00
|
|
|
|
2013-09-11 23:59:21 +02:00
|
|
|
define HOST_LIBSEPOL_BUILD_CMDS
|
2017-07-03 14:44:56 +02:00
|
|
|
$(HOST_LIBSEPOL_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS)
|
2013-09-11 23:59:21 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_LIBSEPOL_INSTALL_CMDS
|
2017-07-03 14:44:56 +02:00
|
|
|
$(HOST_LIBSEPOL_MAKE_ENV) $(MAKE) -C $(@D) install $(HOST_CONFIGURE_OPTS)
|
2013-09-11 23:59:21 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|
|
|
|
$(eval $(host-generic-package))
|