1 ################################################################################
5 ################################################################################
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
22 define LIBSEPOL_BUILD_CMDS
23 # DESTDIR is needed during the compile to compute library and
25 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(LIBSEPOL_MAKE_FLAGS
) DESTDIR
=$(STAGING_DIR
)
28 define LIBSEPOL_INSTALL_STAGING_CMDS
29 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) install $(LIBSEPOL_MAKE_FLAGS
) DESTDIR
=$(STAGING_DIR
)
32 define LIBSEPOL_INSTALL_TARGET_CMDS
33 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) install $(LIBSEPOL_MAKE_FLAGS
) DESTDIR
=$(TARGET_DIR
)
36 define HOST_LIBSEPOL_BUILD_CMDS
37 $(HOST_MAKE_ENV
) $(MAKE
) -C
$(@D
) $(HOST_CONFIGURE_OPTS
) DESTDIR
=$(HOST_DIR
)
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
47 $(eval
$(generic-package
))
48 $(eval
$(host-generic-package
))