logrotate: fix build with gcc 6
[buildroot-gz.git] / package / checkpolicy / checkpolicy.mk
blobf1b76d0a20e2d77a0d7fafc5e099964dfee9f09a
1 ################################################################################
3 # checkpolicy
5 ################################################################################
7 CHECKPOLICY_VERSION = 2.5
8 CHECKPOLICY_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223
9 CHECKPOLICY_LICENSE = GPLv2
10 CHECKPOLICY_LICENSE_FILES = COPYING
12 HOST_CHECKPOLICY_DEPENDENCIES = host-libselinux host-flex host-bison
14 HOST_CHECKPOLICY_MAKE_OPTS = $(HOST_CONFIGURE_OPTS) \
15 LEX="$(HOST_DIR)/usr/bin/flex" \
16 YACC="$(HOST_DIR)/usr/bin/bison -y"
18 # DESTDIR is used at build time to find host-libselinux
19 define HOST_CHECKPOLICY_BUILD_CMDS
20 $(MAKE) -C $(@D) $(HOST_CHECKPOLICY_MAKE_OPTS) DESTDIR=$(HOST_DIR)
21 endef
23 define HOST_CHECKPOLICY_INSTALL_CMDS
24 $(MAKE) -C $(@D) $(HOST_CHECKPOLICY_MAKE_OPTS) DESTDIR=$(HOST_DIR) install
25 endef
27 $(eval $(host-generic-package))