python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / libsepol / libsepol.mk
blob61d1e611de1c247671f80261111f26954b3a9bfe
1 ################################################################################
3 # libsepol
5 ################################################################################
7 LIBSEPOL_VERSION = 2.6
8 LIBSEPOL_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014
9 LIBSEPOL_LICENSE = LGPLv2.1+
10 LIBSEPOL_LICENSE_FILES = COPYING
12 LIBSEPOL_INSTALL_STAGING = YES
13 LIBSEPOL_DEPENDENCIES = host-flex
14 HOST_LIBSEPOL_DEPENDENCIES = host-flex
16 LIBSEPOL_MAKE_FLAGS = $(TARGET_CONFIGURE_OPTS)
18 ifeq ($(BR2_STATIC_LIBS),y)
19 LIBSEPOL_MAKE_FLAGS += STATIC=1
20 endif
22 define LIBSEPOL_BUILD_CMDS
23 # DESTDIR is needed during the compile to compute library and
24 # header paths.
25 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSEPOL_MAKE_FLAGS) DESTDIR=$(STAGING_DIR)
26 endef
28 define LIBSEPOL_INSTALL_STAGING_CMDS
29 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install $(LIBSEPOL_MAKE_FLAGS) DESTDIR=$(STAGING_DIR)
30 endef
32 define LIBSEPOL_INSTALL_TARGET_CMDS
33 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install $(LIBSEPOL_MAKE_FLAGS) DESTDIR=$(TARGET_DIR)
34 endef
36 define HOST_LIBSEPOL_BUILD_CMDS
37 $(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS) DESTDIR=$(HOST_DIR)
38 endef
40 define HOST_LIBSEPOL_INSTALL_CMDS
41 $(HOST_MAKE_ENV) $(MAKE) -C $(@D) install $(HOST_CONFIGURE_OPTS) DESTDIR=$(HOST_DIR)
42 mv $(HOST_DIR)/lib/libsepol.so.1 $(HOST_DIR)/usr/lib
43 (cd $(HOST_DIR)/usr/lib; rm -f libsepol.so; ln -s libsepol.so.1 libsepol.so)
44 -rmdir $(HOST_DIR)/lib
45 endef
47 $(eval $(generic-package))
48 $(eval $(host-generic-package))